43 #ifndef GLS_RENDER_VIEW_CHANGE_MANAGER_H
44 #define GLS_RENDER_VIEW_CHANGE_MANAGER_H
84 GetListeners().
Erase( listener );
93 for(
unsigned int i = 0; i < listeners.
Count(); ++i )
95 listeners[ i ]->OnViewChanged( modelViewMatrix );
106 static Listeners& GetListeners()
108 static Listeners s_renderViewChangeListeners;
109 return s_renderViewChangeListeners;
unsigned Count() const
Definition: dynamic_array.h:204
Definition: dynamic_array.h:66
The disti::DynamicArray class. A templated array of objects capable of dynamically growing...
A file for all GL Studio files to include.
virtual ~GlsRenderViewChangeListener()
Definition: gls_render_view_change_manager.h:63
Definition: gls_render_view_change_manager.h:53
bool Erase(const T &object)
Definition: dynamic_array.h:396
static void RemoveRenderViewChangeListener(GlsRenderViewChangeListener *listener)
Definition: gls_render_view_change_manager.h:82
unsigned PushBack(const T &object)
Definition: dynamic_array.h:325
virtual void OnViewChanged(const GlsMatrixType &modelViewMatrix)=0
Definition: bmpimage.h:46
static void AddRenderViewChangeListener(GlsRenderViewChangeListener *listener)
Definition: gls_render_view_change_manager.h:74
static void NotifyRenderViewChanged(const GlsMatrixType &modelViewMatrix)
Definition: gls_render_view_change_manager.h:90
Definition: gls_render_view_change_manager.h:67