Definition at line 16 of file gstos.
◆ gstos() [1/2]
tools::sg::gstos::gstos |
( |
| ) |
|
|
inlineprotected |
Definition at line 18 of file gstos.
◆ ~gstos()
virtual tools::sg::gstos::~gstos |
( |
| ) |
|
|
inlineprotectedvirtual |
Definition at line 19 of file gstos.
◆ gstos() [2/2]
tools::sg::gstos::gstos |
( |
const gstos & |
| ) |
|
|
inlineprotected |
Definition at line 21 of file gstos.
◆ _find()
Definition at line 108 of file gstos.
109 std::vector< std::pair<unsigned int,render_manager*> >::iterator it;
111 if((*it).second==a_mgr)
return (*it).first;
◆ clean_gstos() [1/2]
void tools::sg::gstos::clean_gstos |
( |
| ) |
|
|
inlineprotected |
Definition at line 89 of file gstos.
90 std::vector< std::pair<unsigned int,render_manager*> >::iterator it;
92 (*it).second->delete_gsto((*it).first);
◆ clean_gstos() [2/2]
Definition at line 96 of file gstos.
97 std::vector< std::pair<unsigned int,render_manager*> >::iterator it;
99 if((*it).second==a_mgr) {
100 (*it).second->delete_gsto((*it).first);
◆ create_gsto()
virtual unsigned int tools::sg::gstos::create_gsto |
( |
std::ostream & |
, |
|
|
render_manager & |
|
|
) |
| |
|
inlineprotectedvirtual |
◆ get_gsto_id()
unsigned int tools::sg::gstos::get_gsto_id |
( |
std::ostream & |
a_out, |
|
|
render_manager & |
a_mgr |
|
) |
| |
|
inlineprotected |
Definition at line 60 of file gstos.
61 unsigned int _id =
_find(&a_mgr);
62 if(_id && !a_mgr.is_gsto_id_valid(_id)){
63 #ifdef TOOLS_SG_GSTOS_DEBUG
64 a_out <<
"debug : tools::sg::gstos::get_gsto_id : " << _id <<
" not valid." << std::endl;
70 #ifdef TOOLS_SG_GSTOS_DEBUG
71 a_out <<
"debug : tools::sg::gstos::get_gsto_id : create_gsto ..." << std::endl;
74 #ifdef TOOLS_SG_GSTOS_DEBUG
75 a_out <<
"debug : tools::sg::gstos::get_gsto_id : create_gsto : _id " << _id <<
"." << std::endl;
83 m_gstos.push_back(std::pair<unsigned int,render_manager*>(_id,&a_mgr));
◆ get_tex_id()
unsigned int tools::sg::gstos::get_tex_id |
( |
std::ostream & |
a_out, |
|
|
render_manager & |
a_mgr, |
|
|
const img_byte & |
a_img, |
|
|
bool |
a_NEAREST |
|
) |
| |
|
inlineprotected |
Definition at line 30 of file gstos.
31 unsigned int _id =
_find(&a_mgr);
32 if(_id && !a_mgr.is_gsto_id_valid(_id)){
33 #ifdef TOOLS_SG_GSTOS_DEBUG
34 a_out <<
"debug : tools::sg::gstos::get_tex_id : " << _id <<
" not valid." << std::endl;
40 #ifdef TOOLS_SG_GSTOS_DEBUG
41 a_out <<
"debug : tools::sg::gstos::get_tex_id : create_texture ... " << std::endl;
43 _id = a_mgr.create_texture(a_img,a_NEAREST);
44 #ifdef TOOLS_SG_GSTOS_DEBUG
45 a_out <<
"debug : tools::sg::gstos::get_tex_id : create_texture : _id " << _id <<
"." << std::endl;
48 a_out <<
"tools::sg::gstos::get_tex_id :"
49 <<
" render_manager.create_texture() failed."
52 m_gstos.push_back(std::pair<unsigned int,render_manager*>(_id,&a_mgr));
◆ num_gstos()
size_t tools::sg::gstos::num_gstos |
( |
| ) |
const |
|
inline |
Definition at line 28 of file gstos.
◆ operator=()
gstos& tools::sg::gstos::operator= |
( |
const gstos & |
a_from | ) |
|
|
inlineprotected |
Definition at line 22 of file gstos.
23 if(&a_from==
this)
return *
this;
◆ m_gstos
std::vector< std::pair<unsigned int,render_manager*> > tools::sg::gstos::m_gstos |
|
protected |
The documentation for this class was generated from the following file:
- /Users/barrand/private/dev/softinex/g4tools/g4tools/tools/sg/gstos