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

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

#include <OgreGLESNullStateCacheManagerImp.h>

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

List of all members.

Classes

struct  TextureUnitParams

Public Member Functions

 GLESStateCacheManagerImp (void)
 GLESStateCacheManagerImp (void)
 ~GLESStateCacheManagerImp (void)
 ~GLESStateCacheManagerImp (void)
bool activateGLTextureUnit (unsigned char unit)
 See GLESStateCacheManager.activateGLTextureUnit.
bool activateGLTextureUnit (unsigned char unit)
 See GLESStateCacheManager.activateGLTextureUnit.
void bindGLBuffer (GLenum target, GLuint buffer, GLenum attach=0, bool force=false)
 See GLESStateCacheManager.bindGLBuffer.
void bindGLBuffer (GLenum target, GLuint buffer, GLenum attach=0, bool force=false)
 See GLESStateCacheManager.bindGLBuffer.
void bindGLTexture (GLenum target, GLuint texture)
 See GLESStateCacheManager.bindGLTexture.
void bindGLTexture (GLenum target, GLuint texture)
 See GLESStateCacheManager.bindGLTexture.
void clearCache ()
 See GLESStateCacheManager.clearCache.
void clearCache ()
 See GLESStateCacheManager.clearCache.
void deleteGLBuffer (GLenum target, GLuint buffer, GLenum attach=0, bool force=false)
 See GLESStateCacheManager.deleteGLBuffer.
void deleteGLBuffer (GLenum target, GLuint buffer, GLenum attach=0, bool force=false)
 See GLESStateCacheManager.deleteGLBuffer.
GLenum getBlendEquation (void) const
 See GLESStateCacheManager.getBlendEquation.
GLenum getBlendEquation (void) const
 See GLESStateCacheManager.getBlendEquation.
GLclampf getClearDepth (void) const
 See GLESStateCacheManager.getClearDepth.
GLclampf getClearDepth (void) const
 See GLESStateCacheManager.getClearDepth.
vector< GLboolean >::type & getColourMask (void)
 See GLESStateCacheManager.getColourMask.
vector< GLboolean >::type & getColourMask (void)
 See GLESStateCacheManager.getColourMask.
GLenum getCullFace (void) const
 See GLESStateCacheManager.getCullFace.
GLenum getCullFace (void) const
 See GLESStateCacheManager.getCullFace.
GLenum getDepthFunc (void) const
 See GLESStateCacheManager.getDepthFunc.
GLenum getDepthFunc (void) const
 See GLESStateCacheManager.getDepthFunc.
GLboolean getDepthMask (void) const
 See GLESStateCacheManager.getDepthMask.
GLboolean getDepthMask (void) const
 See GLESStateCacheManager.getDepthMask.
unsigned int getDiscardBuffers (void) const
 See GLESStateCacheManager.getDiscardBuffers.
unsigned int getDiscardBuffers (void) const
 See GLESStateCacheManager.getDiscardBuffers.
GLenum getPolygonMode (void) const
 See GLESStateCacheManager.getPolygonMode.
GLenum getPolygonMode (void) const
 See GLESStateCacheManager.getPolygonMode.
GLuint getStencilMask (void) const
 See GLESStateCacheManager.getStencilMask.
GLuint getStencilMask (void) const
 See GLESStateCacheManager.getStencilMask.
void initializeCache ()
 See GLESStateCacheManager.initializeCache.
void initializeCache ()
 See GLESStateCacheManager.initializeCache.
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 GLESStateCacheManager.setBlendEquation.
void setBlendEquation (GLenum eq)
 See GLESStateCacheManager.setBlendEquation.
void setBlendFunc (GLenum source, GLenum dest)
 See GLESStateCacheManager.setBlendFunc.
void setBlendFunc (GLenum source, GLenum dest)
 See GLESStateCacheManager.setBlendFunc.
void setClearColour (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
 See GLESStateCacheManager.setClearColour.
void setClearColour (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
 See GLESStateCacheManager.setClearColour.
void setClearDepth (GLclampf depth)
 See GLESStateCacheManager.setClearDepth.
void setClearDepth (GLclampf depth)
 See GLESStateCacheManager.setClearDepth.
void setColourMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
 See GLESStateCacheManager.setColourMask.
void setColourMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
 See GLESStateCacheManager.setColourMask.
void setCullFace (GLenum face)
 See GLESStateCacheManager.setCullFace.
void setCullFace (GLenum face)
 See GLESStateCacheManager.setCullFace.
void setDepthFunc (GLenum func)
 See GLESStateCacheManager.setDepthFunc.
void setDepthFunc (GLenum func)
 See GLESStateCacheManager.setDepthFunc.
void setDepthMask (GLboolean mask)
 See GLESStateCacheManager.setDepthMask.
void setDepthMask (GLboolean mask)
 See GLESStateCacheManager.setDepthMask.
void setDisabled (GLenum flag)
 See GLESStateCacheManager.setDisabled.
void setDisabled (GLenum flag)
 See GLESStateCacheManager.setDisabled.
void setDiscardBuffers (unsigned int flags)
 See GLESStateCacheManager.setDiscardBuffers.
void setDiscardBuffers (unsigned int flags)
 See GLESStateCacheManager.setDiscardBuffers.
void setEnabled (GLenum flag)
 See GLESStateCacheManager.setEnabled.
void setEnabled (GLenum flag)
 See GLESStateCacheManager.setEnabled.
void setPolygonMode (GLenum mode)
 See GLESStateCacheManager.setPolygonMode.
void setPolygonMode (GLenum mode)
 See GLESStateCacheManager.setPolygonMode.
void setStencilMask (GLuint mask)
 See GLESStateCacheManager.setStencilMask.
void setStencilMask (GLuint mask)
 See GLESStateCacheManager.setStencilMask.
void setTexParameteri (GLenum target, GLenum pname, GLint param)
 See GLESStateCacheManager.setTexParameteri.
void setTexParameteri (GLenum target, GLenum pname, GLint param)
 See GLESStateCacheManager.setTexParameteri.

Private Types

typedef HashMap< GLuint, GLuint > GLBindingMap
typedef HashMap< GLenum, GLint > TexParameteriMap
typedef HashMap< GLuint,
TextureUnitParams
TexUnitsMap

Private Attributes

GLBindingMap mActiveBufferMap
 A map of different buffer types and the currently bound buffer for each type.
GLBindingMap mActiveTextureMap
 A map of different texture types and the currently bound texture for each type.
unsigned char mActiveTextureUnit
 Stores the currently active texture unit.
GLenum mBlendEquation
 Stores the current blend equation.
GLenum mBlendFuncDest
GLenum mBlendFuncSrc
 Stores the current blend 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< GLenum >::type mEnableVector
 Array of each OpenGL feature that is enabled i.e. blending, depth test, etc.
GLuint mLastBoundedTexID
 Stores the last bounded 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.

See also:
GLESStateCacheManager

Definition at line 41 of file OgreGLESNullStateCacheManagerImp.h.


Member Typedef Documentation

typedef HashMap<GLuint, GLuint> Ogre::GLESStateCacheManagerImp::GLBindingMap [private]

Definition at line 44 of file OgreGLESStateCacheManagerImp.h.

Definition at line 45 of file OgreGLESStateCacheManagerImp.h.

Definition at line 57 of file OgreGLESStateCacheManagerImp.h.


Constructor & Destructor Documentation


Member Function Documentation

void Ogre::GLESStateCacheManagerImp::bindGLBuffer ( GLenum  target,
GLuint  buffer,
GLenum  attach = 0,
bool  force = false 
)
void Ogre::GLESStateCacheManagerImp::bindGLBuffer ( GLenum  target,
GLuint  buffer,
GLenum  attach = 0,
bool  force = false 
)
void Ogre::GLESStateCacheManagerImp::bindGLTexture ( GLenum  target,
GLuint  texture 
)
void Ogre::GLESStateCacheManagerImp::bindGLTexture ( GLenum  target,
GLuint  texture 
)
void Ogre::GLESStateCacheManagerImp::deleteGLBuffer ( GLenum  target,
GLuint  buffer,
GLenum  attach = 0,
bool  force = false 
)
void Ogre::GLESStateCacheManagerImp::deleteGLBuffer ( GLenum  target,
GLuint  buffer,
GLenum  attach = 0,
bool  force = false 
)
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::GLESStateCacheManagerImp::setBlendFunc ( GLenum  source,
GLenum  dest 
)
void Ogre::GLESStateCacheManagerImp::setBlendFunc ( GLenum  source,
GLenum  dest 
)
void Ogre::GLESStateCacheManagerImp::setClearColour ( GLclampf  red,
GLclampf  green,
GLclampf  blue,
GLclampf  alpha 
)
void Ogre::GLESStateCacheManagerImp::setClearColour ( GLclampf  red,
GLclampf  green,
GLclampf  blue,
GLclampf  alpha 
)
void Ogre::GLESStateCacheManagerImp::setColourMask ( GLboolean  red,
GLboolean  green,
GLboolean  blue,
GLboolean  alpha 
)
void Ogre::GLESStateCacheManagerImp::setColourMask ( GLboolean  red,
GLboolean  green,
GLboolean  blue,
GLboolean  alpha 
)
void Ogre::GLESStateCacheManagerImp::setTexParameteri ( GLenum  target,
GLenum  pname,
GLint  param 
)
void Ogre::GLESStateCacheManagerImp::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 65 of file OgreGLESStateCacheManagerImp.h.

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

Definition at line 67 of file OgreGLESStateCacheManagerImp.h.

Stores the currently active texture unit.

Definition at line 61 of file OgreGLESNullStateCacheManagerImp.h.

Stores the current blend equation.

Definition at line 53 of file OgreGLESNullStateCacheManagerImp.h.

Referenced by getBlendEquation().

Definition at line 84 of file OgreGLESStateCacheManagerImp.h.

Stores the current blend function.

Definition at line 83 of file OgreGLESStateCacheManagerImp.h.

Stores the current clear colour.

Definition at line 45 of file OgreGLESNullStateCacheManagerImp.h.

Stores the current depth clearing colour.

Definition at line 65 of file OgreGLESNullStateCacheManagerImp.h.

Referenced by getClearDepth().

Stores the current colour write mask.

Definition at line 47 of file OgreGLESNullStateCacheManagerImp.h.

Referenced by getColourMask().

Stores the current face culling setting.

Definition at line 55 of file OgreGLESNullStateCacheManagerImp.h.

Referenced by getCullFace().

Stores the current depth test function.

Definition at line 57 of file OgreGLESNullStateCacheManagerImp.h.

Referenced by getDepthFunc().

Stores the current depth write mask.

Definition at line 49 of file OgreGLESNullStateCacheManagerImp.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 OgreGLESNullStateCacheManagerImp.h.

Referenced by getDiscardBuffers(), and setDiscardBuffers().

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

Definition at line 71 of file OgreGLESStateCacheManagerImp.h.

Stores the last bounded texture id.

Definition at line 86 of file OgreGLESStateCacheManagerImp.h.

Stores the current polygon rendering mode.

Definition at line 51 of file OgreGLESNullStateCacheManagerImp.h.

Referenced by getPolygonMode(), and setPolygonMode().

Stores the current stencil mask.

Definition at line 59 of file OgreGLESNullStateCacheManagerImp.h.

Referenced by getStencilMask().

A map of texture parameters for each texture unit.

Definition at line 69 of file OgreGLESStateCacheManagerImp.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:09