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

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

#include <OgreGLESNullStateCacheManagerImp.h>

+ Inheritance diagram for Ogre::GLESStateCacheManagerImp:
+ Collaboration diagram for Ogre::GLESStateCacheManagerImp:

Classes

struct  TextureUnitParams
 

Public Member Functions

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

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. More...
 
GLBindingMap mActiveTextureMap
 A map of different texture types and the currently bound texture for each type. More...
 
unsigned char mActiveTextureUnit
 Stores the currently active texture unit. More...
 
GLenum mBlendEquation
 Stores the current blend equation. More...
 
GLenum mBlendFuncDest
 
GLenum mBlendFuncSrc
 Stores the current blend function. 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...
 
unsigned int mDiscardBuffers
 Mask of buffers who contents can be discarded if GL_EXT_discard_framebuffer is supported. More...
 
vector< GLenum >::type mEnableVector
 Array of each OpenGL feature that is enabled i.e. blending, depth test, etc. More...
 
GLuint mLastBoundedTexID
 Stores the last bounded texture id. More...
 
GLenum mPolygonMode
 Stores the current polygon rendering mode. More...
 
GLuint mStencilMask
 Stores the current stencil mask. More...
 
TexUnitsMap mTexUnitsMap
 A map of texture parameters for each texture unit. More...
 

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.

Constructor & Destructor Documentation

Ogre::GLESStateCacheManagerImp::GLESStateCacheManagerImp ( void  )
Ogre::GLESStateCacheManagerImp::~GLESStateCacheManagerImp ( void  )
Ogre::GLESStateCacheManagerImp::GLESStateCacheManagerImp ( void  )
Ogre::GLESStateCacheManagerImp::~GLESStateCacheManagerImp ( void  )

Member Function Documentation

bool Ogre::GLESStateCacheManagerImp::activateGLTextureUnit ( unsigned char  unit)
bool Ogre::GLESStateCacheManagerImp::activateGLTextureUnit ( unsigned char  unit)
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::clearCache ( )
void Ogre::GLESStateCacheManagerImp::clearCache ( )
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 
)
GLenum Ogre::GLESStateCacheManagerImp::getBlendEquation ( void  ) const
inline
GLenum Ogre::GLESStateCacheManagerImp::getBlendEquation ( void  ) const
inline
GLclampf Ogre::GLESStateCacheManagerImp::getClearDepth ( void  ) const
inline
GLclampf Ogre::GLESStateCacheManagerImp::getClearDepth ( void  ) const
inline
vector<GLboolean>::type& Ogre::GLESStateCacheManagerImp::getColourMask ( void  )
inline
vector<GLboolean>::type& Ogre::GLESStateCacheManagerImp::getColourMask ( void  )
inline
GLenum Ogre::GLESStateCacheManagerImp::getCullFace ( void  ) const
inline
GLenum Ogre::GLESStateCacheManagerImp::getCullFace ( void  ) const
inline
GLenum Ogre::GLESStateCacheManagerImp::getDepthFunc ( void  ) const
inline
GLenum Ogre::GLESStateCacheManagerImp::getDepthFunc ( void  ) const
inline
GLboolean Ogre::GLESStateCacheManagerImp::getDepthMask ( void  ) const
inline
GLboolean Ogre::GLESStateCacheManagerImp::getDepthMask ( void  ) const
inline
unsigned int Ogre::GLESStateCacheManagerImp::getDiscardBuffers ( void  ) const
inline
unsigned int Ogre::GLESStateCacheManagerImp::getDiscardBuffers ( void  ) const
inline
GLenum Ogre::GLESStateCacheManagerImp::getPolygonMode ( void  ) const
inline
GLenum Ogre::GLESStateCacheManagerImp::getPolygonMode ( void  ) const
inline
GLuint Ogre::GLESStateCacheManagerImp::getStencilMask ( void  ) const
inline
GLuint Ogre::GLESStateCacheManagerImp::getStencilMask ( void  ) const
inline
void Ogre::GLESStateCacheManagerImp::initializeCache ( )
void Ogre::GLESStateCacheManagerImp::initializeCache ( )
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::GLESStateCacheManagerImp::setBlendEquation ( GLenum  eq)
void Ogre::GLESStateCacheManagerImp::setBlendEquation ( GLenum  eq)
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::setClearDepth ( GLclampf  depth)
void Ogre::GLESStateCacheManagerImp::setClearDepth ( GLclampf  depth)
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::setCullFace ( GLenum  face)
void Ogre::GLESStateCacheManagerImp::setCullFace ( GLenum  face)
void Ogre::GLESStateCacheManagerImp::setDepthFunc ( GLenum  func)
void Ogre::GLESStateCacheManagerImp::setDepthFunc ( GLenum  func)
void Ogre::GLESStateCacheManagerImp::setDepthMask ( GLboolean  mask)
void Ogre::GLESStateCacheManagerImp::setDepthMask ( GLboolean  mask)
void Ogre::GLESStateCacheManagerImp::setDisabled ( GLenum  flag)
void Ogre::GLESStateCacheManagerImp::setDisabled ( GLenum  flag)
void Ogre::GLESStateCacheManagerImp::setDiscardBuffers ( unsigned int  flags)
inline
void Ogre::GLESStateCacheManagerImp::setDiscardBuffers ( unsigned int  flags)
inline
void Ogre::GLESStateCacheManagerImp::setEnabled ( GLenum  flag)
void Ogre::GLESStateCacheManagerImp::setEnabled ( GLenum  flag)
void Ogre::GLESStateCacheManagerImp::setPolygonMode ( GLenum  mode)
inline
void Ogre::GLESStateCacheManagerImp::setPolygonMode ( GLenum  mode)
inline
void Ogre::GLESStateCacheManagerImp::setStencilMask ( GLuint  mask)
void Ogre::GLESStateCacheManagerImp::setStencilMask ( GLuint  mask)
void Ogre::GLESStateCacheManagerImp::setTexParameteri ( GLenum  target,
GLenum  pname,
GLint  param 
)
void Ogre::GLESStateCacheManagerImp::setTexParameteri ( GLenum  target,
GLenum  pname,
GLint  param 
)

Member Data Documentation

GLBindingMap Ogre::GLESStateCacheManagerImp::mActiveBufferMap
private

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

Definition at line 65 of file OgreGLESStateCacheManagerImp.h.

GLBindingMap Ogre::GLESStateCacheManagerImp::mActiveTextureMap
private

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

Definition at line 67 of file OgreGLESStateCacheManagerImp.h.

unsigned char Ogre::GLESStateCacheManagerImp::mActiveTextureUnit
private

Stores the currently active texture unit.

Definition at line 61 of file OgreGLESNullStateCacheManagerImp.h.

GLenum Ogre::GLESStateCacheManagerImp::mBlendEquation
private

Stores the current blend equation.

Definition at line 53 of file OgreGLESNullStateCacheManagerImp.h.

Referenced by getBlendEquation().

GLenum Ogre::GLESStateCacheManagerImp::mBlendFuncDest
private

Definition at line 84 of file OgreGLESStateCacheManagerImp.h.

GLenum Ogre::GLESStateCacheManagerImp::mBlendFuncSrc
private

Stores the current blend function.

Definition at line 83 of file OgreGLESStateCacheManagerImp.h.

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

Stores the current clear colour.

Definition at line 45 of file OgreGLESNullStateCacheManagerImp.h.

GLclampf Ogre::GLESStateCacheManagerImp::mClearDepth
private

Stores the current depth clearing colour.

Definition at line 65 of file OgreGLESNullStateCacheManagerImp.h.

Referenced by getClearDepth().

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

Stores the current colour write mask.

Definition at line 47 of file OgreGLESNullStateCacheManagerImp.h.

Referenced by getColourMask().

GLenum Ogre::GLESStateCacheManagerImp::mCullFace
private

Stores the current face culling setting.

Definition at line 55 of file OgreGLESNullStateCacheManagerImp.h.

Referenced by getCullFace().

GLenum Ogre::GLESStateCacheManagerImp::mDepthFunc
private

Stores the current depth test function.

Definition at line 57 of file OgreGLESNullStateCacheManagerImp.h.

Referenced by getDepthFunc().

GLboolean Ogre::GLESStateCacheManagerImp::mDepthMask
private

Stores the current depth write mask.

Definition at line 49 of file OgreGLESNullStateCacheManagerImp.h.

Referenced by getDepthMask().

unsigned int Ogre::GLESStateCacheManagerImp::mDiscardBuffers
private

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().

vector<GLenum>::type Ogre::GLESStateCacheManagerImp::mEnableVector
private

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

Definition at line 71 of file OgreGLESStateCacheManagerImp.h.

GLuint Ogre::GLESStateCacheManagerImp::mLastBoundedTexID
private

Stores the last bounded texture id.

Definition at line 86 of file OgreGLESStateCacheManagerImp.h.

GLenum Ogre::GLESStateCacheManagerImp::mPolygonMode
private

Stores the current polygon rendering mode.

Definition at line 51 of file OgreGLESNullStateCacheManagerImp.h.

Referenced by getPolygonMode(), and setPolygonMode().

GLuint Ogre::GLESStateCacheManagerImp::mStencilMask
private

Stores the current stencil mask.

Definition at line 59 of file OgreGLESNullStateCacheManagerImp.h.

Referenced by getStencilMask().

TexUnitsMap Ogre::GLESStateCacheManagerImp::mTexUnitsMap
private

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: