Classes | Public Member Functions | Private Types | Private Attributes
Ogre::GLES2StateCacheManagerImp Class Reference

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

#include <OgreGLES2NullStateCacheManagerImp.h>

Inheritance diagram for Ogre::GLES2StateCacheManagerImp:
Inheritance graph
[legend]

List of all members.

Classes

struct  TextureUnitParams

Public Member Functions

 GLES2StateCacheManagerImp (void)
 GLES2StateCacheManagerImp (void)
 ~GLES2StateCacheManagerImp (void)
 ~GLES2StateCacheManagerImp (void)
bool activateGLTextureUnit (unsigned char unit)
 See GLES2StateCacheManager.activateGLTextureUnit.
bool activateGLTextureUnit (size_t unit)
 See GLES2StateCacheManager.activateGLTextureUnit.
void bindGLBuffer (GLenum target, GLuint buffer, bool force=false)
 See GLES2StateCacheManager.bindGLBuffer.
void bindGLBuffer (GLenum target, GLuint buffer, GLenum attach=0, bool force=false)
 See GLES2StateCacheManager.bindGLBuffer.
void bindGLTexture (GLenum target, GLuint texture)
 See GLES2StateCacheManager.bindGLTexture.
void bindGLTexture (GLenum target, GLuint texture)
 See GLES2StateCacheManager.bindGLTexture.
void clearCache ()
 See GLES2StateCacheManager.clearCache.
void clearCache ()
 See GLES2StateCacheManager.clearCache.
void deleteGLBuffer (GLenum target, GLuint buffer, bool force=false)
 See GLES2StateCacheManager.deleteGLBuffer.
void deleteGLBuffer (GLenum target, GLuint buffer, GLenum attach=0, bool force=false)
 See GLES2StateCacheManager.deleteGLBuffer.
GLenum getBlendEquation (void) const
 See GLES2StateCacheManager.getBlendEquation.
GLenum getBlendEquation (void) const
 See GLES2StateCacheManager.getBlendEquation.
GLclampf getClearDepth (void) const
 See GLES2StateCacheManager.getClearDepth.
GLclampf getClearDepth (void) const
 See GLES2StateCacheManager.getClearDepth.
vector< GLboolean >::type & getColourMask (void)
 See GLES2StateCacheManager.getColourMask.
vector< GLboolean >::type & getColourMask (void)
 See GLES2StateCacheManager.getColourMask.
GLenum getCullFace (void) const
 See GLES2StateCacheManager.getCullFace.
GLenum getCullFace (void) const
 See GLES2StateCacheManager.getCullFace.
GLenum getDepthFunc (void) const
 See GLES2StateCacheManager.getDepthFunc.
GLenum getDepthFunc (void) const
 See GLES2StateCacheManager.getDepthFunc.
GLboolean getDepthMask (void) const
 See GLES2StateCacheManager.getDepthMask.
GLboolean getDepthMask (void) const
 See GLES2StateCacheManager.getDepthMask.
unsigned int getDiscardBuffers (void) const
 See GLES2StateCacheManager.getDiscardBuffers.
unsigned int getDiscardBuffers (void) const
 See GLES2StateCacheManager.getDiscardBuffers.
GLenum getPolygonMode (void) const
 See GLES2StateCacheManager.getPolygonMode.
GLenum getPolygonMode (void) const
 See GLES2StateCacheManager.getPolygonMode.
GLuint getStencilMask (void) const
 See GLES2StateCacheManager.getStencilMask.
GLuint getStencilMask (void) const
 See GLES2StateCacheManager.getStencilMask.
void getTexParameterfv (GLenum target, GLenum pname, GLfloat *params)
 See GLES2StateCacheManager.getTexParameterfv.
void getTexParameterfv (GLenum target, GLenum pname, GLfloat *params)
 See GLES2StateCacheManager.getTexParameterfv.
void initializeCache ()
 See GLES2StateCacheManager.initializeCache.
void initializeCache ()
 See GLES2StateCacheManager.initializeCache.
void invalidateStateForTexture (GLuint texture)
 See GLES2StateCacheManager.invalidateStateForTexture.
void invalidateStateForTexture (GLuint texture)
 See GLES2StateCacheManager.invalidateStateForTexture.
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
void * operator new (size_t sz)
void * operator new (size_t sz, void *ptr)
 placement operator new
void * operator new[] (size_t sz, const char *file, int line, const char *func)
 array operator new, with debug line info
void * operator new[] (size_t sz)
void setBlendEquation (GLenum eq)
 See GLES2StateCacheManager.setBlendEquation.
void setBlendEquation (GLenum eq)
 See GLES2StateCacheManager.setBlendEquation.
void setBlendFunc (GLenum source, GLenum dest)
 See GLES2StateCacheManager.setBlendFunc.
void setBlendFunc (GLenum source, GLenum dest)
 See GLES2StateCacheManager.setBlendFunc.
void setClearColour (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
 See GLES2StateCacheManager.setClearColour.
void setClearColour (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
 See GLES2StateCacheManager.setClearColour.
void setClearDepth (GLclampf depth)
 See GLES2StateCacheManager.setClearDepth.
void setClearDepth (GLclampf depth)
 See GLES2StateCacheManager.setClearDepth.
void setColourMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
 See GLES2StateCacheManager.setColourMask.
void setColourMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
 See GLES2StateCacheManager.setColourMask.
void setCullFace (GLenum face)
 See GLES2StateCacheManager.setCullFace.
void setCullFace (GLenum face)
 See GLES2StateCacheManager.setCullFace.
void setDepthFunc (GLenum func)
 See GLES2StateCacheManager.setDepthFunc.
void setDepthFunc (GLenum func)
 See GLES2StateCacheManager.setDepthFunc.
void setDepthMask (GLboolean mask)
 See GLES2StateCacheManager.setDepthMask.
void setDepthMask (GLboolean mask)
 See GLES2StateCacheManager.setDepthMask.
void setDisabled (GLenum flag)
 See GLES2StateCacheManager.setDisabled.
void setDisabled (GLenum flag)
 See GLES2StateCacheManager.setDisabled.
void setDiscardBuffers (unsigned int flags)
 See GLES2StateCacheManager.setDiscardBuffers.
void setDiscardBuffers (unsigned int flags)
 See GLES2StateCacheManager.setDiscardBuffers.
void setEnabled (GLenum flag)
 See GLES2StateCacheManager.setEnabled.
void setEnabled (GLenum flag)
 See GLES2StateCacheManager.setEnabled.
void setPolygonMode (GLenum mode)
 See GLES2StateCacheManager.setPolygonMode.
void setPolygonMode (GLenum mode)
 See GLES2StateCacheManager.setPolygonMode.
void setStencilMask (GLuint mask)
 See GLES2StateCacheManager.setStencilMask.
void setStencilMask (GLuint mask)
 See GLES2StateCacheManager.setStencilMask.
void setTexParameterf (GLenum target, GLenum pname, GLfloat params)
 See GLES2StateCacheManager.setTexParameterf.
void setTexParameterf (GLenum target, GLenum pname, GLfloat params)
 See GLES2StateCacheManager.setTexParameterf.
void setTexParameteri (GLenum target, GLenum pname, GLint param)
 See GLES2StateCacheManager.setTexParameteri.
void setTexParameteri (GLenum target, GLenum pname, GLint param)
 See GLES2StateCacheManager.setTexParameteri.
void setVertexAttribDisabled (GLuint attrib)
 See GLES2StateCacheManager.setVertexAttribDisabled.
void setVertexAttribDisabled (GLuint attrib)
 See GLES2StateCacheManager.setVertexAttribDisabled.
void setVertexAttribEnabled (GLuint attrib)
 See GLES2StateCacheManager.setVertexAttribEnabled.
void setVertexAttribEnabled (GLuint attrib)
 See GLES2StateCacheManager.setVertexAttribEnabled.

Private Types

typedef HashMap< GLenum, GLuint > BindBufferMap
typedef HashMap< GLenum, GLfloat > TexParameterfMap
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.
unsigned char mActiveTextureUnit
 Stores the currently active texture unit.
GLenum mActiveTextureUnit
 Stores the currently active texture unit.
GLenum mBlendEquation
 Stores the current blend equation.
GLenum mBlendFuncDest
 Stores the current blend destination function.
GLenum mBlendFuncSource
 Stores the current blend source function.
vector< GLclampf >::type mClearColour
 Stores the current clear colour.
GLclampf mClearDepth
 Stores the current depth clearing colour.
vector< GLboolean >::type mColourMask
 Stores the current colour write mask.
GLenum mCullFace
 Stores the current face culling setting.
GLenum mDepthFunc
 Stores the current depth test function.
GLboolean mDepthMask
 Stores the current depth write mask.
unsigned int mDiscardBuffers
 Mask of buffers who contents can be discarded if GL_EXT_discard_framebuffer is supported.
vector< GLuint >::type mEnabledVertexAttribs
 Stores the currently enabled vertex attributes.
vector< GLenum >::type mEnableVector
 Array of each OpenGL feature that is enabled i.e. blending, depth test, etc.
GLuint mLastBoundTexID
 Stores the last bound texture id.
GLenum mPolygonMode
 Stores the current polygon rendering mode.
GLuint mStencilMask
 Stores the current stencil mask.
TexUnitsMap mTexUnitsMap
 A map of texture parameters for each texture unit.

Detailed Description

An in memory cache of the OpenGL ES state.

An in memory cache of the OpenGL ES2 state.

See also:
GLES2StateCacheManager

Definition at line 41 of file OgreGLES2NullStateCacheManagerImp.h.


Member Typedef Documentation

typedef HashMap<GLenum, GLuint> Ogre::GLES2StateCacheManagerImp::BindBufferMap [private]

Definition at line 44 of file OgreGLES2StateCacheManagerImp.h.

typedef HashMap<GLenum, GLfloat> Ogre::GLES2StateCacheManagerImp::TexParameterfMap [private]

Definition at line 46 of file OgreGLES2StateCacheManagerImp.h.

Definition at line 45 of file OgreGLES2StateCacheManagerImp.h.

Definition at line 60 of file OgreGLES2StateCacheManagerImp.h.


Constructor & Destructor Documentation


Member Function Documentation

void Ogre::GLES2StateCacheManagerImp::bindGLBuffer ( GLenum  target,
GLuint  buffer,
bool  force = false 
)
void Ogre::GLES2StateCacheManagerImp::bindGLBuffer ( GLenum  target,
GLuint  buffer,
GLenum  attach = 0,
bool  force = false 
)
void Ogre::GLES2StateCacheManagerImp::bindGLTexture ( GLenum  target,
GLuint  texture 
)
void Ogre::GLES2StateCacheManagerImp::bindGLTexture ( GLenum  target,
GLuint  texture 
)
void Ogre::GLES2StateCacheManagerImp::deleteGLBuffer ( GLenum  target,
GLuint  buffer,
bool  force = false 
)
void Ogre::GLES2StateCacheManagerImp::deleteGLBuffer ( GLenum  target,
GLuint  buffer,
GLenum  attach = 0,
bool  force = false 
)
void Ogre::GLES2StateCacheManagerImp::getTexParameterfv ( GLenum  target,
GLenum  pname,
GLfloat *  params 
)
void Ogre::GLES2StateCacheManagerImp::getTexParameterfv ( GLenum  target,
GLenum  pname,
GLfloat *  params 
)
template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr) [inherited]

Definition at line 96 of file OgreMemoryAllocatedObject.h.

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

Definition at line 102 of file OgreMemoryAllocatedObject.h.

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

Definition at line 108 of file OgreMemoryAllocatedObject.h.

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

Definition at line 113 of file OgreMemoryAllocatedObject.h.

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

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 
) [inherited]

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) [inherited]

Definition at line 73 of file OgreMemoryAllocatedObject.h.

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

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 
) [inherited]

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) [inherited]

Definition at line 91 of file OgreMemoryAllocatedObject.h.

void Ogre::GLES2StateCacheManagerImp::setBlendFunc ( GLenum  source,
GLenum  dest 
)
void Ogre::GLES2StateCacheManagerImp::setBlendFunc ( GLenum  source,
GLenum  dest 
)
void Ogre::GLES2StateCacheManagerImp::setClearColour ( GLclampf  red,
GLclampf  green,
GLclampf  blue,
GLclampf  alpha 
)
void Ogre::GLES2StateCacheManagerImp::setClearColour ( GLclampf  red,
GLclampf  green,
GLclampf  blue,
GLclampf  alpha 
)
void Ogre::GLES2StateCacheManagerImp::setColourMask ( GLboolean  red,
GLboolean  green,
GLboolean  blue,
GLboolean  alpha 
)
void Ogre::GLES2StateCacheManagerImp::setColourMask ( GLboolean  red,
GLboolean  green,
GLboolean  blue,
GLboolean  alpha 
)
void Ogre::GLES2StateCacheManagerImp::setTexParameterf ( GLenum  target,
GLenum  pname,
GLfloat  params 
)
void Ogre::GLES2StateCacheManagerImp::setTexParameterf ( GLenum  target,
GLenum  pname,
GLfloat  params 
)
void Ogre::GLES2StateCacheManagerImp::setTexParameteri ( GLenum  target,
GLenum  pname,
GLint  param 
)
void Ogre::GLES2StateCacheManagerImp::setTexParameteri ( GLenum  target,
GLenum  pname,
GLint  param 
)

Member Data Documentation

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

Definition at line 68 of file OgreGLES2StateCacheManagerImp.h.

Stores the currently active texture unit.

Definition at line 61 of file OgreGLES2NullStateCacheManagerImp.h.

Stores the currently active texture unit.

Definition at line 98 of file OgreGLES2StateCacheManagerImp.h.

Stores the current blend equation.

Definition at line 53 of file OgreGLES2NullStateCacheManagerImp.h.

Referenced by getBlendEquation().

Stores the current blend destination function.

Definition at line 88 of file OgreGLES2StateCacheManagerImp.h.

Stores the current blend source function.

Definition at line 86 of file OgreGLES2StateCacheManagerImp.h.

Stores the current clear colour.

Definition at line 45 of file OgreGLES2NullStateCacheManagerImp.h.

Stores the current depth clearing colour.

Definition at line 65 of file OgreGLES2NullStateCacheManagerImp.h.

Referenced by getClearDepth().

Stores the current colour write mask.

Definition at line 47 of file OgreGLES2NullStateCacheManagerImp.h.

Referenced by getColourMask().

Stores the current face culling setting.

Definition at line 55 of file OgreGLES2NullStateCacheManagerImp.h.

Referenced by getCullFace().

Stores the current depth test function.

Definition at line 57 of file OgreGLES2NullStateCacheManagerImp.h.

Referenced by getDepthFunc().

Stores the current depth write mask.

Definition at line 49 of file OgreGLES2NullStateCacheManagerImp.h.

Referenced by getDepthMask().

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

Definition at line 63 of file OgreGLES2NullStateCacheManagerImp.h.

Referenced by getDiscardBuffers(), and setDiscardBuffers().

Stores the currently enabled vertex attributes.

Definition at line 78 of file OgreGLES2StateCacheManagerImp.h.

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

Definition at line 72 of file OgreGLES2StateCacheManagerImp.h.

Stores the last bound texture id.

Definition at line 96 of file OgreGLES2StateCacheManagerImp.h.

Stores the current polygon rendering mode.

Definition at line 51 of file OgreGLES2NullStateCacheManagerImp.h.

Referenced by getPolygonMode(), and setPolygonMode().

Stores the current stencil mask.

Definition at line 59 of file OgreGLES2NullStateCacheManagerImp.h.

Referenced by getStencilMask().

A map of texture parameters for each texture unit.

Definition at line 70 of file OgreGLES2StateCacheManagerImp.h.


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

Copyright © 2012 Torus Knot Software Ltd
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Mon Jul 27 2020 13:41:07