23 if(&a_from==
this)
return *
this;
31 unsigned int _id =
_find(&a_mgr);
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;
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));
61 unsigned int _id =
_find(&a_mgr);
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));
90 std::vector< std::pair<unsigned int,render_manager*> >::iterator it;
92 (*it).second->delete_gsto((*it).first);
97 std::vector< std::pair<unsigned int,render_manager*> >::iterator it;
99 if((*it).second==a_mgr) {
100 (*it).second->delete_gsto((*it).first);
109 std::vector< std::pair<unsigned int,render_manager*> >::iterator it;
111 if((*it).second==a_mgr)
return (*it).first;
117 std::vector< std::pair<unsigned int,render_manager*> >
m_gstos;