OGRE  2.0
Object-Oriented Graphics Rendering Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Ogre::GLStateCacheManagerImp Class Reference

An in memory cache of the OpenGL state. More...

#include <OgreGLNullStateCacheManagerImp.h>

+ Inheritance diagram for Ogre::GLStateCacheManagerImp:
+ Collaboration diagram for Ogre::GLStateCacheManagerImp:

Classes

struct  TexGenParams
 
struct  TextureUnitParams
 

Public Member Functions

 GLStateCacheManagerImp (void)
 
 GLStateCacheManagerImp (void)
 
 ~GLStateCacheManagerImp (void)
 
 ~GLStateCacheManagerImp (void)
 
bool activateGLTextureUnit (size_t unit)
 See GLStateCacheManager.activateGLTextureUnit. More...
 
bool activateGLTextureUnit (size_t unit)
 See GLStateCacheManager.activateGLTextureUnit. More...
 
void bindGLBuffer (GLenum target, GLuint buffer, bool force=false)
 See GLStateCacheManager.bindGLBuffer. More...
 
void bindGLBuffer (GLenum target, GLuint buffer, GLenum attach=0, bool force=false)
 See GLStateCacheManager.bindGLBuffer. More...
 
void bindGLTexture (GLenum target, GLuint texture)
 See GLStateCacheManager.bindGLTexture. More...
 
void bindGLTexture (GLenum target, GLuint texture)
 See GLStateCacheManager.bindGLTexture. More...
 
void clearCache ()
 See GLStateCacheManager.clearCache. More...
 
void clearCache ()
 See GLStateCacheManager.clearCache. More...
 
void deleteGLBuffer (GLenum target, GLuint buffer, bool force=false)
 See GLStateCacheManager.deleteGLBuffer. More...
 
void deleteGLBuffer (GLenum target, GLuint buffer, GLenum attach=0, bool force=false)
 See GLStateCacheManager.deleteGLBuffer. More...
 
void disableTextureCoordGen (GLenum type)
 Disable the specified texture coordinate generation option for the currently active texture unit. More...
 
void disableTextureCoordGen (GLenum type)
 Disable the specified texture coordinate generation option for the currently active texture unit. More...
 
void enableTextureCoordGen (GLenum type)
 Enable the specified texture coordinate generation option for the currently active texture unit. More...
 
void enableTextureCoordGen (GLenum type)
 Enable the specified texture coordinate generation option for the currently active texture unit. More...
 
GLenum getBlendEquation (void) const
 See GLStateCacheManager.getBlendEquation. More...
 
GLenum getBlendEquation (void) const
 See GLStateCacheManager.getBlendEquation. More...
 
GLclampf getClearDepth (void) const
 See GLStateCacheManager.getClearDepth. More...
 
GLclampf getClearDepth (void) const
 See GLStateCacheManager.getClearDepth. More...
 
vector< GLboolean >::type & getColourMask (void)
 See GLStateCacheManager.getColourMask. More...
 
vector< GLboolean >::type & getColourMask (void)
 See GLStateCacheManager.getColourMask. More...
 
GLenum getCullFace (void) const
 See GLStateCacheManager.getCullFace. More...
 
GLenum getCullFace (void) const
 See GLStateCacheManager.getCullFace. More...
 
GLenum getDepthFunc (void) const
 See GLStateCacheManager.getDepthFunc. More...
 
GLenum getDepthFunc (void) const
 See GLStateCacheManager.getDepthFunc. More...
 
GLboolean getDepthMask (void) const
 See GLStateCacheManager.getDepthMask. More...
 
GLboolean getDepthMask (void) const
 See GLStateCacheManager.getDepthMask. More...
 
unsigned int getDiscardBuffers (void) const
 See GLStateCacheManager.getDiscardBuffers. More...
 
unsigned int getDiscardBuffers (void) const
 See GLStateCacheManager.getDiscardBuffers. More...
 
GLenum getPolygonMode (void) const
 See GLStateCacheManager.getPolygonMode. More...
 
GLenum getPolygonMode (void) const
 See GLStateCacheManager.getPolygonMode. More...
 
GLuint getStencilMask (void) const
 See GLStateCacheManager.getStencilMask. More...
 
GLuint getStencilMask (void) const
 See GLStateCacheManager.getStencilMask. More...
 
void getViewport (int *array)
 Get viewport parameters. More...
 
void getViewport (int *array)
 Get viewport parameters. More...
 
void initializeCache ()
 See GLStateCacheManager.initializeCache. More...
 
void initializeCache ()
 See GLStateCacheManager.initializeCache. More...
 
void invalidateStateForTexture (GLuint texture)
 See GLStateCacheManager.invalidateStateForTexture. More...
 
void invalidateStateForTexture (GLuint texture)
 See GLStateCacheManager.invalidateStateForTexture. More...
 
void operator delete (void *ptr)
 
void operator delete (void *ptr, void *)
 
void operator delete (void *ptr, const char *, int, const char *)
 
void operator delete[] (void *ptr)
 
void operator delete[] (void *ptr, const char *, int, const char *)
 
void * operator new (size_t sz, const char *file, int line, const char *func)
 operator new, with debug line info More...
 
void * operator new (size_t sz)
 
void * operator new (size_t sz, void *ptr)
 placement operator new More...
 
void * operator new[] (size_t sz, const char *file, int line, const char *func)
 array operator new, with debug line info More...
 
void * operator new[] (size_t sz)
 
void setBlendEquation (GLenum eq)
 See GLStateCacheManager.setBlendEquation. More...
 
void setBlendEquation (GLenum eqRGB, GLenum eqA)
 Set the blend equation for RGB and alpha separately. More...
 
void setBlendEquation (GLenum eq)
 See GLStateCacheManager.setBlendEquation. More...
 
void setBlendEquation (GLenum eqRGB, GLenum eqA)
 Set the blend equation for RGB and alpha separately. More...
 
void setBlendFunc (GLenum source, GLenum dest)
 See GLStateCacheManager.setBlendFunc. More...
 
void setBlendFunc (GLenum source, GLenum dest)
 See GLStateCacheManager.setBlendFunc. More...
 
void setClearColour (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
 See GLStateCacheManager.setClearColour. More...
 
void setClearColour (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
 See GLStateCacheManager.setClearColour. More...
 
void setClearDepth (GLclampf depth)
 See GLStateCacheManager.setClearDepth. More...
 
void setClearDepth (GLclampf depth)
 See GLStateCacheManager.setClearDepth. More...
 
void setColourMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
 See GLStateCacheManager.setColourMask. More...
 
void setColourMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
 See GLStateCacheManager.setColourMask. More...
 
void setCullFace (GLenum face)
 See GLStateCacheManager.setCullFace. More...
 
void setCullFace (GLenum face)
 See GLStateCacheManager.setCullFace. More...
 
void setDepthFunc (GLenum func)
 See GLStateCacheManager.setDepthFunc. More...
 
void setDepthFunc (GLenum func)
 See GLStateCacheManager.setDepthFunc. More...
 
void setDepthMask (GLboolean mask)
 See GLStateCacheManager.setDepthMask. More...
 
void setDepthMask (GLboolean mask)
 See GLStateCacheManager.setDepthMask. More...
 
void setDiscardBuffers (unsigned int flags)
 See GLStateCacheManager.setDiscardBuffers. More...
 
void setDiscardBuffers (unsigned int flags)
 See GLStateCacheManager.setDiscardBuffers. More...
 
void setEnabled (GLenum flag, bool enabled)
 See GLStateCacheManager.setEnabled. More...
 
void setEnabled (GLenum flag, bool enabled)
 See GLStateCacheManager.setEnabled. More...
 
void setLightAmbient (GLfloat r, GLfloat g, GLfloat b)
 See GLStateCacheManager.setLightAmbient. More...
 
void setLightAmbient (GLfloat r, GLfloat g, GLfloat b)
 See GLStateCacheManager.setLightAmbient. More...
 
void setMaterialAmbient (GLfloat r, GLfloat g, GLfloat b, GLfloat a)
 
void setMaterialAmbient (GLfloat r, GLfloat g, GLfloat b, GLfloat a)
 
void setMaterialDiffuse (GLfloat r, GLfloat g, GLfloat b, GLfloat a)
 
void setMaterialDiffuse (GLfloat r, GLfloat g, GLfloat b, GLfloat a)
 
void setMaterialEmissive (GLfloat r, GLfloat g, GLfloat b, GLfloat a)
 
void setMaterialEmissive (GLfloat r, GLfloat g, GLfloat b, GLfloat a)
 
void setMaterialShininess (GLfloat shininess)
 
void setMaterialShininess (GLfloat shininess)
 
void setMaterialSpecular (GLfloat r, GLfloat g, GLfloat b, GLfloat a)
 
void setMaterialSpecular (GLfloat r, GLfloat g, GLfloat b, GLfloat a)
 
void setPointParameters (GLfloat *attenuation, float minSize, float maxSize)
 
void setPointParameters (GLfloat *attenuation, float minSize, float maxSize)
 
void setPointSize (GLfloat size)
 
void setPointSize (GLfloat size)
 
void setPolygonMode (GLenum mode)
 See GLStateCacheManager.setPolygonMode. More...
 
void setPolygonMode (GLenum mode)
 See GLStateCacheManager.setPolygonMode. More...
 
void setShadeModel (GLenum model)
 See GLStateCacheManager.setShadeModel. More...
 
void setShadeModel (GLenum model)
 See GLStateCacheManager.setShadeModel. More...
 
void setStencilMask (GLuint mask)
 See GLStateCacheManager.setStencilMask. More...
 
void setStencilMask (GLuint mask)
 See GLStateCacheManager.setStencilMask. More...
 
void setTexParameteri (GLenum target, GLenum pname, GLint param)
 See GLStateCacheManager.setTexParameteri. More...
 
void setTexParameteri (GLenum target, GLenum pname, GLint param)
 See GLStateCacheManager.setTexParameteri. More...
 
void setViewport (GLint x, GLint y, GLsizei width, GLsizei height)
 Set viewport parameters. More...
 
void setViewport (GLint x, GLint y, GLsizei width, GLsizei height)
 Set viewport parameters. More...
 

Private Types

typedef HashMap< GLenum, GLuint > BindBufferMap
 
typedef HashMap< GLenum, bool > GLbooleanStateMap
 
typedef HashMap< GLenum, GLint > TexParameteriMap
 
typedef HashMap< GLuint,
TextureUnitParams
TexUnitsMap
 

Private Attributes

BindBufferMap mActiveBufferMap
 A map of different buffer types and the currently bound buffer for each type. More...
 
size_t mActiveTextureUnit
 Stores the currently active texture unit. More...
 
GLfloat mAmbient [4]
 
GLenum mBlendEquation
 Stores the current blend equation. More...
 
GLenum mBlendEquationAlpha
 
GLenum mBlendEquationRGB
 
GLenum mBlendFuncDest
 Stores the current blend destination function. More...
 
GLenum mBlendFuncSource
 Stores the current blend source function. More...
 
GLbooleanStateMap mBoolStateMap
 Array of each OpenGL feature that is enabled i.e. blending, depth test, etc. More...
 
HashMap< GLenum, GLuint > mBoundTextures
 Stores textures currently bound to each texture stage. More...
 
vector< GLclampf >::type mClearColour
 Stores the current clear colour. More...
 
GLclampf mClearDepth
 Stores the current depth clearing colour. More...
 
vector< GLboolean >::type mColourMask
 Stores the current colour write mask. More...
 
GLenum mCullFace
 Stores the current face culling setting. More...
 
GLenum mDepthFunc
 Stores the current depth test function. More...
 
GLboolean mDepthMask
 Stores the current depth write mask. More...
 
GLfloat mDiffuse [4]
 
unsigned int mDiscardBuffers
 Mask of buffers who contents can be discarded if GL_EXT_discard_framebuffer is supported. More...
 
GLfloat mEmissive [4]
 
GLuint mLastBoundTexID
 Stores the last bound texture id. More...
 
GLfloat mLightAmbient [4]
 
GLfloat mPointAttenuation [3]
 
GLfloat mPointSize
 
GLfloat mPointSizeMax
 
GLfloat mPointSizeMin
 
GLenum mPolygonMode
 Stores the current polygon rendering mode. More...
 
GLenum mShadeModel
 
GLfloat mShininess
 
GLfloat mSpecular [4]
 
GLuint mStencilMask
 Stores the current stencil mask. More...
 
HashMap< GLenum, TexGenParamsmTextureCoordGen
 Stores the currently enabled texcoord generation types per texture unit. More...
 
TexUnitsMap mTexUnitsMap
 A map of texture parameters for each texture unit. More...
 
int mViewport [4]
 Viewport origin and size. More...
 

Detailed Description

An in memory cache of the OpenGL state.

See also
GLStateCacheManager

Definition at line 41 of file OgreGLNullStateCacheManagerImp.h.

Member Typedef Documentation

typedef HashMap<GLenum, GLuint> Ogre::GLStateCacheManagerImp::BindBufferMap
private

Definition at line 44 of file OgreGLStateCacheManagerImp.h.

Definition at line 46 of file OgreGLStateCacheManagerImp.h.

Definition at line 45 of file OgreGLStateCacheManagerImp.h.

Constructor & Destructor Documentation

Ogre::GLStateCacheManagerImp::GLStateCacheManagerImp ( void  )
Ogre::GLStateCacheManagerImp::~GLStateCacheManagerImp ( void  )
Ogre::GLStateCacheManagerImp::GLStateCacheManagerImp ( void  )
Ogre::GLStateCacheManagerImp::~GLStateCacheManagerImp ( void  )

Member Function Documentation

bool Ogre::GLStateCacheManagerImp::activateGLTextureUnit ( size_t  unit)
bool Ogre::GLStateCacheManagerImp::activateGLTextureUnit ( size_t  unit)
void Ogre::GLStateCacheManagerImp::bindGLBuffer ( GLenum  target,
GLuint  buffer,
bool  force = false 
)
void Ogre::GLStateCacheManagerImp::bindGLBuffer ( GLenum  target,
GLuint  buffer,
GLenum  attach = 0,
bool  force = false 
)
void Ogre::GLStateCacheManagerImp::bindGLTexture ( GLenum  target,
GLuint  texture 
)
void Ogre::GLStateCacheManagerImp::bindGLTexture ( GLenum  target,
GLuint  texture 
)
void Ogre::GLStateCacheManagerImp::clearCache ( )
void Ogre::GLStateCacheManagerImp::clearCache ( )
void Ogre::GLStateCacheManagerImp::deleteGLBuffer ( GLenum  target,
GLuint  buffer,
bool  force = false 
)
void Ogre::GLStateCacheManagerImp::deleteGLBuffer ( GLenum  target,
GLuint  buffer,
GLenum  attach = 0,
bool  force = false 
)
void Ogre::GLStateCacheManagerImp::disableTextureCoordGen ( GLenum  type)

Disable the specified texture coordinate generation option for the currently active texture unit.

void Ogre::GLStateCacheManagerImp::disableTextureCoordGen ( GLenum  type)

Disable the specified texture coordinate generation option for the currently active texture unit.

void Ogre::GLStateCacheManagerImp::enableTextureCoordGen ( GLenum  type)

Enable the specified texture coordinate generation option for the currently active texture unit.

void Ogre::GLStateCacheManagerImp::enableTextureCoordGen ( GLenum  type)

Enable the specified texture coordinate generation option for the currently active texture unit.

GLenum Ogre::GLStateCacheManagerImp::getBlendEquation ( void  ) const
inline
GLenum Ogre::GLStateCacheManagerImp::getBlendEquation ( void  ) const
inline
GLclampf Ogre::GLStateCacheManagerImp::getClearDepth ( void  ) const
inline
GLclampf Ogre::GLStateCacheManagerImp::getClearDepth ( void  ) const
inline
vector<GLboolean>::type& Ogre::GLStateCacheManagerImp::getColourMask ( void  )
inline
vector<GLboolean>::type& Ogre::GLStateCacheManagerImp::getColourMask ( void  )
inline
GLenum Ogre::GLStateCacheManagerImp::getCullFace ( void  ) const
inline

See GLStateCacheManager.getCullFace.

Definition at line 184 of file OgreGLNullStateCacheManagerImp.h.

References mCullFace.

GLenum Ogre::GLStateCacheManagerImp::getCullFace ( void  ) const
inline
GLenum Ogre::GLStateCacheManagerImp::getDepthFunc ( void  ) const
inline
GLenum Ogre::GLStateCacheManagerImp::getDepthFunc ( void  ) const
inline
GLboolean Ogre::GLStateCacheManagerImp::getDepthMask ( void  ) const
inline
GLboolean Ogre::GLStateCacheManagerImp::getDepthMask ( void  ) const
inline
unsigned int Ogre::GLStateCacheManagerImp::getDiscardBuffers ( void  ) const
inline
unsigned int Ogre::GLStateCacheManagerImp::getDiscardBuffers ( void  ) const
inline
GLenum Ogre::GLStateCacheManagerImp::getPolygonMode ( void  ) const
inline
GLenum Ogre::GLStateCacheManagerImp::getPolygonMode ( void  ) const
inline
GLuint Ogre::GLStateCacheManagerImp::getStencilMask ( void  ) const
inline
GLuint Ogre::GLStateCacheManagerImp::getStencilMask ( void  ) const
inline
void Ogre::GLStateCacheManagerImp::getViewport ( int *  array)

Get viewport parameters.

void Ogre::GLStateCacheManagerImp::getViewport ( int *  array)

Get viewport parameters.

void Ogre::GLStateCacheManagerImp::initializeCache ( )

See GLStateCacheManager.initializeCache.

void Ogre::GLStateCacheManagerImp::initializeCache ( )

See GLStateCacheManager.initializeCache.

void Ogre::GLStateCacheManagerImp::invalidateStateForTexture ( GLuint  texture)
void Ogre::GLStateCacheManagerImp::invalidateStateForTexture ( GLuint  texture)
template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr)
inlineinherited

Definition at line 96 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr,
void *   
)
inlineinherited

Definition at line 102 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr,
const char *  ,
int  ,
const char *   
)
inlineinherited

Definition at line 108 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void *  ptr)
inlineinherited

Definition at line 113 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void *  ptr,
const char *  ,
int  ,
const char *   
)
inlineinherited

Definition at line 119 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz,
const char *  file,
int  line,
const char *  func 
)
inlineinherited

operator new, with debug line info

Definition at line 68 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz)
inlineinherited

Definition at line 73 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz,
void *  ptr 
)
inlineinherited

placement operator new

Definition at line 79 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new[] ( size_t  sz,
const char *  file,
int  line,
const char *  func 
)
inlineinherited

array operator new, with debug line info

Definition at line 86 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new[] ( size_t  sz)
inlineinherited

Definition at line 91 of file OgreMemoryAllocatedObject.h.

void Ogre::GLStateCacheManagerImp::setBlendEquation ( GLenum  eq)
void Ogre::GLStateCacheManagerImp::setBlendEquation ( GLenum  eqRGB,
GLenum  eqA 
)

Set the blend equation for RGB and alpha separately.

void Ogre::GLStateCacheManagerImp::setBlendEquation ( GLenum  eq)
void Ogre::GLStateCacheManagerImp::setBlendEquation ( GLenum  eqRGB,
GLenum  eqA 
)

Set the blend equation for RGB and alpha separately.

void Ogre::GLStateCacheManagerImp::setBlendFunc ( GLenum  source,
GLenum  dest 
)
void Ogre::GLStateCacheManagerImp::setBlendFunc ( GLenum  source,
GLenum  dest 
)
void Ogre::GLStateCacheManagerImp::setClearColour ( GLclampf  red,
GLclampf  green,
GLclampf  blue,
GLclampf  alpha 
)
void Ogre::GLStateCacheManagerImp::setClearColour ( GLclampf  red,
GLclampf  green,
GLclampf  blue,
GLclampf  alpha 
)
void Ogre::GLStateCacheManagerImp::setClearDepth ( GLclampf  depth)
void Ogre::GLStateCacheManagerImp::setClearDepth ( GLclampf  depth)
void Ogre::GLStateCacheManagerImp::setColourMask ( GLboolean  red,
GLboolean  green,
GLboolean  blue,
GLboolean  alpha 
)
void Ogre::GLStateCacheManagerImp::setColourMask ( GLboolean  red,
GLboolean  green,
GLboolean  blue,
GLboolean  alpha 
)
void Ogre::GLStateCacheManagerImp::setCullFace ( GLenum  face)
void Ogre::GLStateCacheManagerImp::setCullFace ( GLenum  face)
void Ogre::GLStateCacheManagerImp::setDepthFunc ( GLenum  func)
void Ogre::GLStateCacheManagerImp::setDepthFunc ( GLenum  func)
void Ogre::GLStateCacheManagerImp::setDepthMask ( GLboolean  mask)
void Ogre::GLStateCacheManagerImp::setDepthMask ( GLboolean  mask)
void Ogre::GLStateCacheManagerImp::setDiscardBuffers ( unsigned int  flags)
inline
void Ogre::GLStateCacheManagerImp::setDiscardBuffers ( unsigned int  flags)
inline
void Ogre::GLStateCacheManagerImp::setEnabled ( GLenum  flag,
bool  enabled 
)
void Ogre::GLStateCacheManagerImp::setEnabled ( GLenum  flag,
bool  enabled 
)
void Ogre::GLStateCacheManagerImp::setLightAmbient ( GLfloat  r,
GLfloat  g,
GLfloat  b 
)
void Ogre::GLStateCacheManagerImp::setLightAmbient ( GLfloat  r,
GLfloat  g,
GLfloat  b 
)
void Ogre::GLStateCacheManagerImp::setMaterialAmbient ( GLfloat  r,
GLfloat  g,
GLfloat  b,
GLfloat  a 
)
void Ogre::GLStateCacheManagerImp::setMaterialAmbient ( GLfloat  r,
GLfloat  g,
GLfloat  b,
GLfloat  a 
)
void Ogre::GLStateCacheManagerImp::setMaterialDiffuse ( GLfloat  r,
GLfloat  g,
GLfloat  b,
GLfloat  a 
)
void Ogre::GLStateCacheManagerImp::setMaterialDiffuse ( GLfloat  r,
GLfloat  g,
GLfloat  b,
GLfloat  a 
)
void Ogre::GLStateCacheManagerImp::setMaterialEmissive ( GLfloat  r,
GLfloat  g,
GLfloat  b,
GLfloat  a 
)
void Ogre::GLStateCacheManagerImp::setMaterialEmissive ( GLfloat  r,
GLfloat  g,
GLfloat  b,
GLfloat  a 
)
void Ogre::GLStateCacheManagerImp::setMaterialShininess ( GLfloat  shininess)
void Ogre::GLStateCacheManagerImp::setMaterialShininess ( GLfloat  shininess)
void Ogre::GLStateCacheManagerImp::setMaterialSpecular ( GLfloat  r,
GLfloat  g,
GLfloat  b,
GLfloat  a 
)
void Ogre::GLStateCacheManagerImp::setMaterialSpecular ( GLfloat  r,
GLfloat  g,
GLfloat  b,
GLfloat  a 
)
void Ogre::GLStateCacheManagerImp::setPointParameters ( GLfloat *  attenuation,
float  minSize,
float  maxSize 
)
void Ogre::GLStateCacheManagerImp::setPointParameters ( GLfloat *  attenuation,
float  minSize,
float  maxSize 
)
void Ogre::GLStateCacheManagerImp::setPointSize ( GLfloat  size)
void Ogre::GLStateCacheManagerImp::setPointSize ( GLfloat  size)
void Ogre::GLStateCacheManagerImp::setPolygonMode ( GLenum  mode)
void Ogre::GLStateCacheManagerImp::setPolygonMode ( GLenum  mode)
void Ogre::GLStateCacheManagerImp::setShadeModel ( GLenum  model)
void Ogre::GLStateCacheManagerImp::setShadeModel ( GLenum  model)
void Ogre::GLStateCacheManagerImp::setStencilMask ( GLuint  mask)
void Ogre::GLStateCacheManagerImp::setStencilMask ( GLuint  mask)
void Ogre::GLStateCacheManagerImp::setTexParameteri ( GLenum  target,
GLenum  pname,
GLint  param 
)
void Ogre::GLStateCacheManagerImp::setTexParameteri ( GLenum  target,
GLenum  pname,
GLint  param 
)
void Ogre::GLStateCacheManagerImp::setViewport ( GLint  x,
GLint  y,
GLsizei  width,
GLsizei  height 
)

Set viewport parameters.

void Ogre::GLStateCacheManagerImp::setViewport ( GLint  x,
GLint  y,
GLsizei  width,
GLsizei  height 
)

Set viewport parameters.

Member Data Documentation

BindBufferMap Ogre::GLStateCacheManagerImp::mActiveBufferMap
private

A map of different buffer types and the currently bound buffer for each type.

Definition at line 76 of file OgreGLStateCacheManagerImp.h.

size_t Ogre::GLStateCacheManagerImp::mActiveTextureUnit
private

Stores the currently active texture unit.

Definition at line 65 of file OgreGLNullStateCacheManagerImp.h.

GLfloat Ogre::GLStateCacheManagerImp::mAmbient
private

Definition at line 77 of file OgreGLNullStateCacheManagerImp.h.

GLenum Ogre::GLStateCacheManagerImp::mBlendEquation
private

Stores the current blend equation.

Definition at line 53 of file OgreGLNullStateCacheManagerImp.h.

Referenced by getBlendEquation().

GLenum Ogre::GLStateCacheManagerImp::mBlendEquationAlpha
private

Definition at line 74 of file OgreGLNullStateCacheManagerImp.h.

GLenum Ogre::GLStateCacheManagerImp::mBlendEquationRGB
private

Definition at line 73 of file OgreGLNullStateCacheManagerImp.h.

GLenum Ogre::GLStateCacheManagerImp::mBlendFuncDest
private

Stores the current blend destination function.

Definition at line 57 of file OgreGLNullStateCacheManagerImp.h.

GLenum Ogre::GLStateCacheManagerImp::mBlendFuncSource
private

Stores the current blend source function.

Definition at line 55 of file OgreGLNullStateCacheManagerImp.h.

GLbooleanStateMap Ogre::GLStateCacheManagerImp::mBoolStateMap
private

Array of each OpenGL feature that is enabled i.e. blending, depth test, etc.

Definition at line 80 of file OgreGLStateCacheManagerImp.h.

HashMap<GLenum, GLuint> Ogre::GLStateCacheManagerImp::mBoundTextures
private

Stores textures currently bound to each texture stage.

Definition at line 66 of file OgreGLStateCacheManagerImp.h.

vector< GLclampf >::type Ogre::GLStateCacheManagerImp::mClearColour
private

Stores the current clear colour.

Definition at line 45 of file OgreGLNullStateCacheManagerImp.h.

GLclampf Ogre::GLStateCacheManagerImp::mClearDepth
private

Stores the current depth clearing colour.

Definition at line 69 of file OgreGLNullStateCacheManagerImp.h.

Referenced by getClearDepth().

vector< GLboolean >::type Ogre::GLStateCacheManagerImp::mColourMask
private

Stores the current colour write mask.

Definition at line 47 of file OgreGLNullStateCacheManagerImp.h.

Referenced by getColourMask().

GLenum Ogre::GLStateCacheManagerImp::mCullFace
private

Stores the current face culling setting.

Definition at line 59 of file OgreGLNullStateCacheManagerImp.h.

Referenced by getCullFace().

GLenum Ogre::GLStateCacheManagerImp::mDepthFunc
private

Stores the current depth test function.

Definition at line 61 of file OgreGLNullStateCacheManagerImp.h.

Referenced by getDepthFunc().

GLboolean Ogre::GLStateCacheManagerImp::mDepthMask
private

Stores the current depth write mask.

Definition at line 49 of file OgreGLNullStateCacheManagerImp.h.

Referenced by getDepthMask().

GLfloat Ogre::GLStateCacheManagerImp::mDiffuse
private

Definition at line 78 of file OgreGLNullStateCacheManagerImp.h.

unsigned int Ogre::GLStateCacheManagerImp::mDiscardBuffers
private

Mask of buffers who contents can be discarded if GL_EXT_discard_framebuffer is supported.

Definition at line 67 of file OgreGLNullStateCacheManagerImp.h.

Referenced by getDiscardBuffers(), and setDiscardBuffers().

GLfloat Ogre::GLStateCacheManagerImp::mEmissive
private

Definition at line 80 of file OgreGLNullStateCacheManagerImp.h.

GLuint Ogre::GLStateCacheManagerImp::mLastBoundTexID
private

Stores the last bound texture id.

Definition at line 102 of file OgreGLStateCacheManagerImp.h.

GLfloat Ogre::GLStateCacheManagerImp::mLightAmbient
private

Definition at line 81 of file OgreGLNullStateCacheManagerImp.h.

GLfloat Ogre::GLStateCacheManagerImp::mPointAttenuation
private

Definition at line 87 of file OgreGLNullStateCacheManagerImp.h.

GLfloat Ogre::GLStateCacheManagerImp::mPointSize
private

Definition at line 84 of file OgreGLNullStateCacheManagerImp.h.

GLfloat Ogre::GLStateCacheManagerImp::mPointSizeMax
private

Definition at line 86 of file OgreGLNullStateCacheManagerImp.h.

GLfloat Ogre::GLStateCacheManagerImp::mPointSizeMin
private

Definition at line 85 of file OgreGLNullStateCacheManagerImp.h.

GLenum Ogre::GLStateCacheManagerImp::mPolygonMode
private

Stores the current polygon rendering mode.

Definition at line 51 of file OgreGLNullStateCacheManagerImp.h.

Referenced by getPolygonMode().

GLenum Ogre::GLStateCacheManagerImp::mShadeModel
private

Definition at line 75 of file OgreGLNullStateCacheManagerImp.h.

GLfloat Ogre::GLStateCacheManagerImp::mShininess
private

Definition at line 82 of file OgreGLNullStateCacheManagerImp.h.

GLfloat Ogre::GLStateCacheManagerImp::mSpecular
private

Definition at line 79 of file OgreGLNullStateCacheManagerImp.h.

GLuint Ogre::GLStateCacheManagerImp::mStencilMask
private

Stores the current stencil mask.

Definition at line 63 of file OgreGLNullStateCacheManagerImp.h.

Referenced by getStencilMask().

HashMap<GLenum, TexGenParams> Ogre::GLStateCacheManagerImp::mTextureCoordGen
private

Stores the currently enabled texcoord generation types per texture unit.

Definition at line 73 of file OgreGLStateCacheManagerImp.h.

TexUnitsMap Ogre::GLStateCacheManagerImp::mTexUnitsMap
private

A map of texture parameters for each texture unit.

Definition at line 78 of file OgreGLStateCacheManagerImp.h.

int Ogre::GLStateCacheManagerImp::mViewport
private

Viewport origin and size.

Definition at line 71 of file OgreGLNullStateCacheManagerImp.h.


The documentation for this class was generated from the following files: