11 gl_listeners_iterating( false ),
12 gl_enabled( gl_enabled )
22 return this->_render_target;
27 if( this->gl_enabled )
30 this->gl_enabled =
true;
32 this->gl_listeners_iterating =
true;
33 for(
auto listener : this->gl_listeners )
35 this->gl_listeners_iterating =
false;
40 if( !this->gl_enabled )
43 this->gl_listeners_iterating =
true;
44 for(
auto listener : this->gl_listeners )
46 this->gl_listeners_iterating =
false;
48 this->gl_enabled =
false;
53 if( !this->gl_enabled )
56 this->gl_enabled =
false;
58 this->gl_listeners_iterating =
true;
59 for(
auto listener : this->gl_listeners )
61 this->gl_listeners_iterating =
false;
66 return this->gl_enabled;
71 if( this->gl_listeners_iterating )
72 this->
warning(
SRC_INFO,
"Can not add gl listener when notifying gl listeners," );
74 this->gl_listeners.insert( listener );
79 if( this->gl_listeners_iterating )
80 this->
warning(
SRC_INFO,
"Can not add gl listener when notifying gl listeners," );
82 this->gl_listeners.erase( listener );