40#ifndef DISTI_GLS_STATE_MANAGER_INTERFACE_H_INCLUDED
41#define DISTI_GLS_STATE_MANAGER_INTERFACE_H_INCLUDED
52#ifndef LESS_MAX_LIGHTS
92 GLS_TEXTURE_MAP_MODE_MODULATE = 0x2100,
93 GLS_TEXTURE_MAP_MODE_DECAL = 0x2101,
94 GLS_TEXTURE_MAP_MODE_BLEND = 0x0BE2,
95 GLS_TEXTURE_MAP_MODE_REPLACE = 0x1E01
102 GLS_EXPORT virtual void SetDefaultState(
bool forceResetUnmanagedState =
false ) = 0;
110 MATRIX_STACK_DEPTH = 64u,
111 PROJECTION_STACK_DEPTH = 64u,
112 TEXTURE_STACK_DEPTH = 64u,
113 CUSTOM_SHADER_PROGRAM_STACK_DEPTH = 64u
124 GLS_EXPORT virtual void LoadProjectionIdentityMatrix() = 0;
129 GLS_EXPORT virtual void PushProjectionMatrix() = 0;
134 GLS_EXPORT virtual void PopProjectionMatrix() = 0;
143 GLS_EXPORT virtual void LoadModelViewIdentityMatrix() = 0;
158 GLS_EXPORT virtual void TranslateModelViewMatrixf( GLfloat x, GLfloat y, GLfloat z ) = 0;
163 GLS_EXPORT virtual void PushModelViewMatrix() = 0;
168 GLS_EXPORT virtual void PopModelViewMatrix() = 0;
177 GLS_EXPORT virtual void LoadTextureIdentityMatrix() = 0;
183 GLS_EXPORT virtual void ScaleTextureMatrixf( GLfloat x, GLfloat y, GLfloat z ) = 0;
189 GLS_EXPORT virtual void TranslateTextureMatrixf( GLfloat x, GLfloat y, GLfloat z ) = 0;
194 GLS_EXPORT virtual void PushTextureMatrix() = 0;
199 GLS_EXPORT virtual void PopTextureMatrix() = 0;
209 GLS_EXPORT virtual void AlphaBlendEnabled(
bool val ) = 0;
215 GLS_EXPORT virtual void AlphaTestEnabled(
bool val ) = 0;
220 GLS_EXPORT virtual void AlphaTestFunc( GLenum func, GLfloat val ) = 0;
222 GLS_EXPORT virtual void StencilTestEnabled(
bool enabled ) = 0;
223 GLS_EXPORT virtual bool StencilTestEnabled()
const = 0;
229 GLS_EXPORT virtual void StencilFunc( GLenum stencilFunction, GLint reference, GLuint mask ) = 0;
233 GLS_EXPORT virtual void StencilMask( GLuint mask ) = 0;
239 GLS_EXPORT virtual void StencilOp( GLenum sFail, GLenum dpFail, GLenum dpPass ) = 0;
244 GLS_EXPORT virtual void DepthTestEnabled(
bool val ) = 0;
248 GLS_EXPORT virtual void DepthMaskEnabled(
bool val ) = 0;
251 GLS_EXPORT virtual bool IsDepthMaskEnabled() = 0;
255 GLS_EXPORT virtual void DepthFunc( GLenum func ) = 0;
260 GLS_EXPORT virtual void DepthRange( GLfloat min, GLfloat max ) = 0;
265 GLS_EXPORT virtual void BackfaceCullingEnabled(
bool val ) = 0;
269 GLS_EXPORT virtual void Texture2DEnabled(
bool val ) = 0;
273 GLS_EXPORT virtual void ActiveTexture( GLenum textureUnit ) = 0;
277 GLS_EXPORT virtual void BindTexture( IFontImage* texture ) = 0;
281 GLS_EXPORT virtual void DeleteTexture( IFontImage* texture ) = 0;
285 GLS_EXPORT virtual void SetTextureWrapS( GLenum mode ) = 0;
289 GLS_EXPORT virtual void SetTextureWrapT( GLenum mode ) = 0;
296 GLS_EXPORT virtual void SetTextureEnvMode( GLenum mode ) = 0;
300 GLS_EXPORT virtual void SetTextureBlendColor( GLfloat* color ) = 0;
305 GLS_EXPORT virtual void SetTextureMinFilter( GLenum mode ) = 0;
309 GLS_EXPORT virtual void SetTextureMagFilter( GLenum mode ) = 0;
313 GLS_EXPORT virtual void BindIndexBuffer(
unsigned int handle ) = 0;
317 GLS_EXPORT virtual void BindVertexBuffer(
unsigned int handle ) = 0;
321 GLS_EXPORT virtual void VertexArrayEnabled(
bool val ) = 0;
325 GLS_EXPORT virtual void NormalArrayEnabled(
bool val ) = 0;
329 GLS_EXPORT virtual void TextureArrayEnabled(
bool val ) = 0;
333 GLS_EXPORT virtual void ColorArrayEnabled(
bool val ) = 0;
340 GLS_EXPORT virtual void VertexPointer( GLint size, GLenum type, GLsizei stride,
const GLvoid* pointer ) = 0;
347 GLS_EXPORT virtual void TexCoordPointer( GLint size, GLenum type, GLsizei stride,
const GLvoid* pointer ) = 0;
353 GLS_EXPORT virtual void NormalPointer( GLenum type, GLsizei stride,
const GLvoid* pointer ) = 0;
360 GLS_EXPORT virtual void ColorPointer( GLint size, GLenum type, GLsizei stride,
const GLvoid* pointer ) = 0;
364 GLS_EXPORT virtual void LineSmoothEnabled(
bool val ) = 0;
369 GLS_EXPORT virtual void LineWidth(
float width ) = 0;
372 GLS_EXPORT virtual float GetMaximumLineWidth() = 0;
376 GLS_EXPORT virtual void PointSize(
float size ) = 0;
379 GLS_EXPORT virtual void LineStippleEnabled(
bool val ) = 0;
385 GLS_EXPORT virtual void LineStipple(
unsigned short pattern,
unsigned int multiplier ) = 0;
395 GLS_EXPORT virtual void Normal3f(
float x,
float y,
float z ) = 0;
415 GLS_EXPORT virtual void ShininessMaterial(
float shininess ) = 0;
419 GLS_EXPORT virtual void LightingEnabled(
bool val ) = 0;
424 GLS_EXPORT virtual void GouraudShadingEnabled(
bool val ) = 0;
427 GLS_EXPORT virtual bool IsLightingEnabled() = 0;
431 GLS_EXPORT virtual bool IsLightSourceEnabled(
unsigned int index ) = 0;
434 GLS_EXPORT virtual unsigned int GetMaxNumLights() = 0;
439 GLS_EXPORT virtual void SetLightEnabled(
unsigned int index,
bool enabled ) = 0;
444 GLS_EXPORT virtual void SetLightAmbientColor(
unsigned int index, GLfloat* color ) = 0;
449 GLS_EXPORT virtual void GetLightAmbientColor(
unsigned int index, GLfloat* color ) = 0;
454 GLS_EXPORT virtual void SetLightDiffuseColor(
unsigned int index, GLfloat* color ) = 0;
459 GLS_EXPORT virtual void GetLightDiffuseColor(
unsigned int index, GLfloat* color ) = 0;
464 GLS_EXPORT virtual void SetLightSpecularColor(
unsigned int index, GLfloat* color ) = 0;
469 GLS_EXPORT virtual void GetLightSpecularColor(
unsigned int index, GLfloat* color ) = 0;
474 GLS_EXPORT virtual void SetLightPosition(
unsigned int index, GLfloat* position ) = 0;
480 GLS_EXPORT virtual void GetLightPosition(
unsigned int index, GLfloat* position ) = 0;
486 GLS_EXPORT virtual void SetSpotlightDirection(
unsigned int index, GLfloat* direction ) = 0;
492 GLS_EXPORT virtual void GetSpotlightDirection(
unsigned int index, GLfloat* direction ) = 0;
497 GLS_EXPORT virtual void SetSpotlightCutoff(
unsigned int index, GLfloat cutoff ) = 0;
501 GLS_EXPORT virtual GLfloat GetSpotlightCutoff(
unsigned int index ) = 0;
507 GLS_EXPORT virtual void SetSpotlightExponent(
unsigned int index, GLfloat exponent ) = 0;
511 GLS_EXPORT virtual GLfloat GetSpotlightExponent(
unsigned int index ) = 0;
518 GLS_EXPORT virtual void SetLightAttenuation(
unsigned int index, GLfloat constant, GLfloat linear, GLfloat quadratic ) = 0;
525 GLS_EXPORT virtual void GetLightAttenuation(
unsigned int index, GLfloat& constant, GLfloat& linear, GLfloat& quadratic ) = 0;
528 GLS_EXPORT virtual unsigned int GetMaxClipPlanes() = 0;
534 GLS_EXPORT virtual void ClipPlanef(
unsigned int index,
float* equation ) = 0;
539 GLS_EXPORT virtual void GetClipPlanef(
unsigned int index,
float* equation ) = 0;
543 GLS_EXPORT virtual void EnableClipPlane(
unsigned int index ) = 0;
547 GLS_EXPORT virtual void DisableClipPlane(
unsigned int index ) = 0;
551 GLS_EXPORT virtual bool IsClipPlaneEnabled(
unsigned int index ) = 0;
561 GLS_EXPORT virtual void DrawArrays(
const GLenum mode,
const GLint first,
const GLsizei count ) = 0;
573 GLS_EXPORT virtual void DrawElements(
const GLenum mode,
const GLsizei count,
const GLenum type,
const GLvoid* indices ) = 0;
Definition: gls_state_manager_interface.h:65
virtual ~IGlsStateManager()
Definition: gls_state_manager_interface.h:583
virtual void SetDefaultAlphaBlendFunc()=0
Sets the default blend function for GL Studio.
IGlsStateManager()
Definition: gls_state_manager_interface.h:578
virtual void PushAlphaBlendFunc()=0
Pushes the current alpha blend func onto an internal stack. Can restore the pushed alpha blend func b...
virtual void AlphaBlendFuncSeparate(GLenum srcColor, GLenum dstColor, GLenum srcAlpha, GLenum dstAlpha)=0
virtual void AlphaBlendFunc(GLenum src, GLenum dst)=0
virtual void PopAlphaBlendFunc()=0
Pops the previously pushed alpha blend func from the stack and restores its state to the opengl conte...
Definition: non_copyable.h:46
Definition: scoped_ptr.h:53
The Color class: Implements a 4 component RGBA color.
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:50
The GlsMatrixAffine class.
Definition: bmpimage.h:46
GlsColor glsColor
Alias for backwards compatibility.
Definition: gls_color.h:277
GlsMatrixAffineD GlsMatrixType
Typedef for a generic (float or double elements) matrix.
Definition: gls_matrix_affine.h:773
A base class for objects that are not copyable via the standard C++ copy constructor.
A smart pointer with unique ownership – poor man's std::unique_ptr.