40 #ifndef INCLUDED_DISTI_GLOBAL_LIGHT_MGR_H
41 #define INCLUDED_DISTI_GLOBAL_LIGHT_MGR_H
52 class GlobalLightMgrThreadMap;
71 static GLS_EXPORT
unsigned int MAX_OPENGL_LIGHTS;
78 bool _enableNormalize;
90 static unsigned int GlMaxLights() {
return MAX_OPENGL_LIGHTS; }
121 #if defined( DISTI_HAS_RVAL_REFS )
127 _currentState = std::move( newState );
friend class GlobalLightMgrThreadMap
Definition: global_light_mgr.h:69
void SetLightingState(LightingState &&newState)
Definition: global_light_mgr.h:125
unsigned int GetNumActiveLights()
void SetLightingState(const LightingState &newState)
The disti::DynamicArray class. A templated array of objects capable of dynamically growing...
const LightingState & GetLightingState() const
bool * GetActiveLightsMask()
void RestoreOpenGLState()
void ReapplyLights()
Definition: global_light_mgr.h:104
A file for all GL Studio files to include.
bool _reapplyLights
Definition: global_light_mgr.h:77
DynamicArray< LightingState > _lightingStateStack
Definition: global_light_mgr.h:75
DynamicArray< GlsLightSource * > _tempOpenGLLights
Definition: global_light_mgr.h:74
void SetupLighting(GlsEyePoint *relativeToEyepoint=NULL)
LightingState _currentOpenGLState
Definition: global_light_mgr.h:72
Generally useful defines, macros, enumerations and function prototypes.
void InitializeStateFromOpenGL()
static GlobalLightMgr & Instance()
static unsigned int GlMaxLights()
Definition: global_light_mgr.h:90
Definition: gls_eyepoint.h:115
unsigned int GetActiveLightsBitMask()
Definition: global_light_mgr.h:59
DynamicArray< GlsLightSource * > LightingState
Definition: global_light_mgr.h:65
Macros and helper code to determine what subset of C++11/14/17 is available.
static bool EnableNormalize()
Definition: bmpimage.h:46
LightingState _currentState
Definition: global_light_mgr.h:73