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;
Definition: dynamic_array.h:79
bool Erase(const T &object)
Definition: dynamic_array.h:414
unsigned Count() const
Definition: dynamic_array.h:218
unsigned PushBack(const T &object)
Definition: dynamic_array.h:340
Definition: gls_render_view_change_manager.h:54
virtual ~GlsRenderViewChangeListener()
Definition: gls_render_view_change_manager.h:63
virtual void OnViewChanged(const GlsMatrixType &modelViewMatrix)=0
Definition: gls_render_view_change_manager.h:68
static void RemoveRenderViewChangeListener(GlsRenderViewChangeListener *listener)
Definition: gls_render_view_change_manager.h:82
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
The disti::DynamicArray class. A templated array of objects capable of dynamically growing.
A file for all GL Studio files to include.
#define GLS_EXPORT
Macro denoting which functions should be visible from the runtime library.
Definition: gls_include.h:52
Force inclusion of the DirectShow library.
Definition: bmpimage.h:47