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

Implementation of GL ES 2.x as a rendering system. More...

#include <OgreGLES2RenderSystem.h>

+ Inheritance diagram for Ogre::GLES2RenderSystem:
+ Collaboration diagram for Ogre::GLES2RenderSystem:

Public Types

typedef MapIterator
< Ogre::RenderTargetMap
RenderTargetIterator
 Iterator over RenderTargets. More...
 

Public Member Functions

 GLES2RenderSystem ()
 
virtual ~GLES2RenderSystem ()
 
void _applyObliqueDepthProjection (Matrix4 &matrix, const Plane &plane, bool forGpuProgram)
 See RenderSystem. More...
 
void _beginFrame (void)
 See RenderSystem. More...
 
virtual void _beginGeometryCount (void)
 The RenderSystem will keep a count of tris rendered, this resets the count. More...
 
void _cleanupDepthBuffers (bool bCleanManualBuffers=true)
 Removes all depth buffers. More...
 
void _convertProjectionMatrix (const Matrix4 &matrix, Matrix4 &dest, bool forGpuProgram=false)
 See RenderSystem. More...
 
DepthBuffer_createDepthBufferFor (RenderTarget *renderTarget)
 Creates a DepthBuffer that can be attached to the specified RenderTarget. More...
 
RenderWindow_createRenderWindow (const String &name, unsigned int width, unsigned int height, bool fullScreen, const NameValuePairList *miscParams=0)
 Creates a new rendering window. More...
 
virtual bool _createRenderWindows (const RenderWindowDescriptionList &renderWindowDescriptions, RenderWindowList &createdWindows)
 Creates multiple rendering windows. More...
 
void _destroyDepthBuffer (RenderWindow *pRenderWnd)
 
virtual void _disableTextureUnit (size_t texUnit)
 Turns off a texture unit. More...
 
virtual void _disableTextureUnitsFrom (size_t texUnit)
 Disables all texture units from the given unit upwards. More...
 
void _endFrame (void)
 See RenderSystem. More...
 
virtual unsigned int _getBatchCount (void) const
 Reports the number of batches rendered since the last _beginGeometryCount call. More...
 
virtual CullingMode _getCullingMode (void) const
 
GLfloat _getCurrentAnisotropy (size_t unit)
 Internal method for anisotropy validation. More...
 
virtual const String_getDefaultViewportMaterialScheme (void) const
 Returns the default material scheme used by the render system. More...
 
void _getDepthStencilFormatFor (GLenum internalColourFormat, GLenum *depthFormat, GLenum *stencilFormat)
 Mimics D3D9RenderSystem::_getDepthStencilFormatFor, if no FBO RTT manager, outputs GL_NONE. More...
 
virtual unsigned int _getFaceCount (void) const
 Reports the number of tris rendered since the last _beginGeometryCount call. More...
 
GLES2Context_getMainContext ()
 Returns the main context. More...
 
virtual unsigned int _getVertexCount (void) const
 Reports the number of vertices passed to the renderer since the last _beginGeometryCount call. More...
 
virtual Viewport_getViewport (void)
 Get the current active viewport for rendering. More...
 
RenderWindow_initialise (bool autoCreateWindow, const String &windowTitle="OGRE Render NativeWindowType")
 See RenderSystem. More...
 
virtual void _initRenderTargets (void)
 Utility method for initialising all render targets attached to this rendering system. More...
 
void _makeOrthoMatrix (const Radian &fovy, Real aspect, Real nearPlane, Real farPlane, Matrix4 &dest, bool forGpuProgram=false)
 See RenderSystem. More...
 
void _makeProjectionMatrix (const Radian &fovy, Real aspect, Real nearPlane, Real farPlane, Matrix4 &dest, bool forGpuProgram=false)
 See RenderSystem. More...
 
void _makeProjectionMatrix (Real left, Real right, Real bottom, Real top, Real nearPlane, Real farPlane, Matrix4 &dest, bool forGpuProgram=false)
 See RenderSystem. More...
 
virtual void _notifyCameraRemoved (const Camera *cam)
 Utility method to notify all render targets that a camera has been removed, in case they were referring to it as their viewer. More...
 
void _oneTimeContextInitialization ()
 One time initialization for the RenderState of a context. More...
 
virtual RenderSystemContext_pauseFrame (void)
 Pause rendering for a frame. More...
 
void _render (const RenderOperation &op)
 See RenderSystem. More...
 
virtual void _resumeFrame (RenderSystemContext *context)
 Resume rendering for a frame. More...
 
void _setAlphaRejectSettings (CompareFunction func, unsigned char value, bool alphaToCoverage)
 Sets the global alpha rejection approach for future renders. More...
 
void _setColourBufferWriteEnabled (bool red, bool green, bool blue, bool alpha)
 See RenderSystem. More...
 
void _setCullingMode (CullingMode mode)
 See RenderSystem. More...
 
void _setDepthBias (float constantBias, float slopeScaleBias)
 See RenderSystem. More...
 
void _setDepthBufferCheckEnabled (bool enabled=true)
 See RenderSystem. More...
 
void _setDepthBufferFunction (CompareFunction func=CMPF_LESS_EQUAL)
 See RenderSystem. More...
 
void _setDepthBufferParams (bool depthTest=true, bool depthWrite=true, CompareFunction depthFunction=CMPF_LESS_EQUAL)
 See RenderSystem. More...
 
void _setDepthBufferWriteEnabled (bool enabled=true)
 See RenderSystem. More...
 
void _setFog (FogMode mode, const ColourValue &colour, Real density, Real start, Real end)
 See RenderSystem. More...
 
void _setPointParameters (Real size, bool attenuationEnabled, Real constant, Real linear, Real quadratic, Real minSize, Real maxSize)
 See RenderSystem. More...
 
void _setPointSpritesEnabled (bool enabled)
 See RenderSystem. More...
 
void _setPolygonMode (PolygonMode level)
 See RenderSystem. More...
 
void _setProjectionMatrix (const Matrix4 &m)
 See RenderSystem. More...
 
void _setRenderTarget (RenderTarget *target)
 Set current render target to target, enabling its GL context if needed. More...
 
void _setSceneBlending (SceneBlendFactor sourceFactor, SceneBlendFactor destFactor, SceneBlendOperation op)
 Sets the global blending factors for combining subsequent renders with the existing frame contents. More...
 
void _setSceneBlendingOperation (SceneBlendOperation op)
 
void _setSeparateSceneBlending (SceneBlendFactor sourceFactor, SceneBlendFactor destFactor, SceneBlendFactor sourceFactorAlpha, SceneBlendFactor destFactorAlpha, SceneBlendOperation op, SceneBlendOperation alphaOp)
 Sets the global blending factors for combining subsequent renders with the existing frame contents. More...
 
void _setSeparateSceneBlendingOperation (SceneBlendOperation op, SceneBlendOperation alphaOp)
 
void _setSurfaceParams (const ColourValue &ambient, const ColourValue &diffuse, const ColourValue &specular, const ColourValue &emissive, Real shininess, TrackVertexColourType tracking)
 See RenderSystem. More...
 
void _setTexture (size_t unit, bool enabled, const TexturePtr &tex)
 See RenderSystem. More...
 
virtual void _setTexture (size_t unit, bool enabled, const String &texname)
 Sets the texture to bind to a given texture unit. More...
 
void _setTextureAddressingMode (size_t stage, const TextureUnitState::UVWAddressingMode &uvw)
 See RenderSystem. More...
 
void _setTextureBlendMode (size_t stage, const LayerBlendModeEx &bm)
 See RenderSystem. More...
 
void _setTextureBorderColour (size_t stage, const ColourValue &colour)
 See RenderSystem. More...
 
void _setTextureCoordCalculation (size_t stage, TexCoordCalcMethod m, const Frustum *frustum=0)
 See RenderSystem. More...
 
void _setTextureCoordSet (size_t stage, size_t index)
 See RenderSystem. More...
 
void _setTextureLayerAnisotropy (size_t unit, unsigned int maxAnisotropy)
 See RenderSystem. More...
 
void _setTextureMatrix (size_t stage, const Matrix4 &xform)
 See RenderSystem. More...
 
void _setTextureMipmapBias (size_t unit, float bias)
 See RenderSystem. More...
 
virtual void _setTextureProjectionRelativeTo (bool enabled, const Vector3 &pos)
 Notify the rendersystem that it should adjust texture projection to be relative to a different origin. More...
 
void _setTextureUnitCompareEnabled (size_t unit, bool compare)
 See RenderSystem. More...
 
void _setTextureUnitCompareFunction (size_t unit, CompareFunction function)
 See RenderSystem. More...
 
virtual void _setTextureUnitFiltering (size_t unit, FilterOptions minFilter, FilterOptions magFilter, FilterOptions mipFilter)
 See RenderSystem. More...
 
void _setTextureUnitFiltering (size_t unit, FilterType ftype, FilterOptions filter)
 See RenderSystem. More...
 
virtual void _setTextureUnitSettings (size_t texUnit, TextureUnitState &tl)
 Utility function for setting all the properties of a texture unit at once. More...
 
virtual void _setVertexTexture (size_t unit, const TexturePtr &tex)
 Binds a texture to a vertex sampler. More...
 
void _setViewMatrix (const Matrix4 &m)
 See RenderSystem. More...
 
void _setViewport (Viewport *vp)
 See RenderSystem. More...
 
virtual void _setWorldMatrices (const Matrix4 *m, unsigned short count)
 Sets multiple world matrices (vertex blending). More...
 
void _setWorldMatrix (const Matrix4 &m)
 See RenderSystem. More...
 
virtual void _swapAllRenderTargetBuffers ()
 Internal method for swapping all the buffers on all render targets, if _updateAllRenderTargets was called with a 'false' parameter. More...
 
void _switchContext (GLES2Context *context)
 Switch GL context, dealing with involved internal cached states too. More...
 
void _unregisterContext (GLES2Context *context)
 Unregister a render target->context mapping. More...
 
virtual void _updateAllRenderTargets (bool swapBuffers=true)
 Internal method for updating all render targets attached to this rendering system. More...
 
void _useLights (const LightList &lights, unsigned short limit)
 See RenderSystem. More...
 
virtual void addClipPlane (const Plane &p)
 Add a user clipping plane. More...
 
virtual void addClipPlane (Real A, Real B, Real C, Real D)
 Add a user clipping plane. More...
 
virtual void addListener (Listener *l)
 Adds a listener to the custom events that this render system can raise. More...
 
bool areFixedFunctionLightsInViewSpace () const
 See RenderSystem. More...
 
virtual void attachRenderTarget (RenderTarget &target)
 Attaches the passed render target to the render system. More...
 
virtual void beginProfileEvent (const String &eventName)
 This marks the beginning of an event for GPU profiling. More...
 
void bindGpuProgram (GpuProgram *prg)
 Binds a given GpuProgram (but not the parameters). More...
 
void bindGpuProgramParameters (GpuProgramType gptype, GpuProgramParametersSharedPtr params, uint16 mask)
 Bind Gpu program parameters. More...
 
void bindGpuProgramPassIterationParameters (GpuProgramType gptype)
 Only binds Gpu program parameters used for passes that have more than one iteration rendering. More...
 
void clearFrameBuffer (unsigned int buffers, const ColourValue &colour=ColourValue::Black, Real depth=1.0f, unsigned short stencil=0)
 Clears one or more frame buffers on the active render target. More...
 
virtual void convertColourValue (const ColourValue &colour, uint32 *pDest)
 Generates a packed data version of the passed in ColourValue suitable for use as with this RenderSystem. More...
 
GLint convertCompareFunction (CompareFunction func) const
 
GLint convertStencilOp (StencilOperation op, bool invert=false) const
 
HardwareOcclusionQuerycreateHardwareOcclusionQuery (void)
 Create an object for performing hardware occlusion queries. More...
 
virtual MultiRenderTargetcreateMultiRenderTarget (const String &name)
 Create a MultiRenderTarget, which is a render target that renders to multiple RenderTextures at once. More...
 
virtual RenderSystemCapabilitiescreateRenderSystemCapabilities () const
 See RenderSystem. More...
 
virtual void destroyHardwareOcclusionQuery (HardwareOcclusionQuery *hq)
 Destroy a hardware occlusion query object. More...
 
virtual void destroyRenderTarget (const String &name)
 Destroys a render target of any sort. More...
 
virtual void destroyRenderTexture (const String &name)
 Destroys a render texture. More...
 
void destroyRenderWindow (RenderWindow *pWin)
 See RenderSystem. More...
 
virtual void destroyRenderWindow (const String &name)
 Destroys a render window. More...
 
virtual RenderTargetdetachRenderTarget (const String &name)
 Detaches the render target with the passed name from the render system and returns a pointer to it. More...
 
void enableClipPlane (ushort index, bool enable)
 See RenderSystem. More...
 
virtual void endProfileEvent (void)
 Ends the currently active GPU profiling event. More...
 
const RenderSystemCapabilitiesgetCapabilities (void) const
 Gets the capabilities of the render system. More...
 
VertexElementType getColourVertexElementType (void) const
 See RenderSystem. More...
 
ConfigOptionMapgetConfigOptions (void)
 See RenderSystem. More...
 
virtual void getCustomAttribute (const String &name, void *pData)
 Gets a custom (maybe platform-specific) attribute. More...
 
unsigned int getDiscardBuffers (void)
 
unsigned int getDisplayMonitorCount () const
 Gets the number of display monitors. More...
 
virtual const DriverVersiongetDriverVersion (void) const
 Returns the driver version. More...
 
String getErrorDescription (long errorNumber) const
 See RenderSystem. More...
 
bool getFixedPipelineEnabled (void) const
 Returns true if fixed pipeline rendering is enabled on the system. More...
 
GLES2SupportgetGLES2Support ()
 
HardwareVertexBufferSharedPtr getGlobalInstanceVertexBuffer () const
 Returns the global instance vertex buffer. More...
 
VertexDeclarationgetGlobalInstanceVertexBufferVertexDeclaration () const
 Gets vertex declaration for the global vertex buffer for the global instancing. More...
 
size_t getGlobalNumberOfInstances () const
 Gets the global number of instances. More...
 
GLES2SupportgetGLSupportRef ()
 
Real getHorizontalTexelOffset (void)
 Returns the horizontal texel offset value required for mapping texel origins to pixel origins in this rendersystem. More...
 
virtual bool getInvertVertexWinding (void) const
 Indicates whether or not the vertex windings set will be inverted for the current render (e.g. More...
 
Real getMaximumDepthInputValue (void)
 Gets the maximum (farthest) depth value to be used when rendering using identity transforms. More...
 
Real getMinimumDepthInputValue (void)
 Gets the minimum (closest) depth value to be used when rendering using identity transforms. More...
 
RenderSystemCapabilitiesgetMutableCapabilities ()
 Get a pointer to the current capabilities being used by the RenderSystem. More...
 
const StringgetName (void) const
 See RenderSystem. More...
 
uint16 getNativeShadingLanguageVersion () const
 Gets the native shading language version for this render system. More...
 
virtual const StringVectorgetRenderSystemEvents (void) const
 Gets a list of the rendersystem specific events that this rendersystem can raise. More...
 
virtual RenderTargetgetRenderTarget (const String &name)
 Returns a pointer to the render target with the passed name, or NULL if that render target cannot be found. More...
 
virtual RenderTargetIterator getRenderTargetIterator (void)
 Returns a specialised MapIterator over all render targets attached to the RenderSystem. More...
 
Real getVerticalTexelOffset (void)
 Returns the vertical texel offset value required for mapping texel origins to pixel origins in this rendersystem. More...
 
bool getWBufferEnabled (void) const
 Returns true if the renderer will try to use W-buffers when available. More...
 
virtual bool hasAnisotropicMipMapFilter () const
 See RenderSystem. More...
 
void initialiseContext (RenderWindow *primary)
 
void initialiseFromRenderSystemCapabilities (RenderSystemCapabilities *caps, RenderTarget *primary)
 See RenderSystem. More...
 
virtual bool isGpuProgramBound (GpuProgramType gptype)
 Returns whether or not a Gpu program of the given type is currently bound. More...
 
virtual bool isStaticBufferLockable () const
 
virtual void markProfileEvent (const String &eventName)
 Marks an instantaneous event for graphics profilers. More...
 
 OGRE_MUTEX (mThreadInitMutex)
 
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 postExtraThreadsStarted ()
 
void preExtraThreadsStarted ()
 Tell the rendersystem to perform any prep tasks it needs to directly before other threads which might access the rendering API are registered. More...
 
void registerThread ()
 Register the an additional thread which may make calls to rendersystem-related objects. More...
 
void reinitialise (void)
 See RenderSystem. More...
 
virtual void removeListener (Listener *l)
 Remove a listener to the custom events that this render system can raise. More...
 
virtual void resetClipPlanes ()
 Clears the user clipping region. More...
 
void resetRenderer (RenderWindow *pRenderWnd)
 
void setAmbientLight (float r, float g, float b)
 See RenderSystem. More...
 
void setClipPlane (ushort index, Real A, Real B, Real C, Real D)
 See RenderSystem. More...
 
virtual void setClipPlanes (const PlaneList &clipPlanes)
 Sets the user clipping region. More...
 
void setClipPlanesImpl (const Ogre::PlaneList &planeList)
 Internal method used to set the underlying clip planes when needed. More...
 
void setConfigOption (const String &name, const String &value)
 See RenderSystem. More...
 
virtual void setCurrentPassIterationCount (const size_t count)
 set the current multi pass count value. More...
 
virtual void setDepthBufferFor (RenderTarget *renderTarget)
 Retrieves an existing DepthBuffer or creates a new one suited for the given RenderTarget and sets it. More...
 
virtual void setDeriveDepthBias (bool derive, float baseValue=0.0f, float multiplier=0.0f, float slopeScale=0.0f)
 Tell the render system whether to derive a depth bias on its own based on the values passed to it in setCurrentPassIterationCount. More...
 
void setFixedPipelineEnabled (bool enabled)
 Sets if fixed pipeline rendering is enabled on the system. More...
 
void setGlobalInstanceVertexBuffer (const HardwareVertexBufferSharedPtr &val)
 Sets the global instance vertex buffer. More...
 
void setGlobalInstanceVertexBufferVertexDeclaration (VertexDeclaration *val)
 Sets vertex declaration for the global vertex buffer for the global instancing. More...
 
void setGlobalNumberOfInstances (const size_t val)
 Sets the global number of instances. More...
 
virtual void setInvertVertexWinding (bool invert)
 Sets whether or not vertex windings set should be inverted; this can be important for rendering reflections. More...
 
void setLightingEnabled (bool enabled)
 See RenderSystem. More...
 
void setNormaliseNormals (bool normalise)
 See RenderSystem. More...
 
void setScissorTest (bool enabled, size_t left=0, size_t top=0, size_t right=800, size_t bottom=600)
 See RenderSystem. More...
 
void setShadingType (ShadeOptions so)
 See RenderSystem. More...
 
void setStencilBufferParams (CompareFunction func=CMPF_ALWAYS_PASS, uint32 refValue=0, uint32 compareMask=0xFFFFFFFF, uint32 writeMask=0xFFFFFFFF, StencilOperation stencilFailOp=SOP_KEEP, StencilOperation depthFailOp=SOP_KEEP, StencilOperation passOp=SOP_KEEP, bool twoSidedOperation=false)
 See RenderSystem. More...
 
void setStencilCheckEnabled (bool enabled)
 See RenderSystem. More...
 
void setVertexBufferBinding (VertexBufferBinding *binding)
 See RenderSystem. More...
 
void setVertexDeclaration (VertexDeclaration *decl)
 See RenderSystem. More...
 
void setVertexDeclaration (VertexDeclaration *decl, VertexBufferBinding *binding)
 See RenderSystem. More...
 
void setWBufferEnabled (bool enabled)
 Sets whether or not W-buffers are enabled if they are available for this renderer. More...
 
void shutdown (void)
 See RenderSystem. More...
 
void unbindGpuProgram (GpuProgramType gptype)
 Unbinds GpuPrograms of a given GpuProgramType. More...
 
void unregisterThread ()
 Unregister an additional thread which may make calls to rendersystem-related objects. More...
 
virtual void useCustomRenderSystemCapabilities (RenderSystemCapabilities *capabilities)
 Force the render system to use the special capabilities. More...
 
String validateConfigOptions (void)
 See RenderSystem. More...
 

Static Public Member Functions

static AndroidResourceManagergetResourceManager ()
 

Protected Types

typedef list
< HardwareOcclusionQuery * >
::type 
HardwareOcclusionQueryList
 
typedef list< Listener * >::type ListenerList
 

Protected Member Functions

virtual void fireEvent (const String &name, const NameValuePairList *params=0)
 Internal method for firing a rendersystem event. More...
 
bool updatePassIterationRenderState (void)
 updates pass iteration rendering state including bound gpu program parameter pass iteration auto constant entry More...
 

Protected Attributes

GpuProgramParametersSharedPtr mActiveComputeGpuProgramParameters
 
GpuProgramParametersSharedPtr mActiveFragmentGpuProgramParameters
 
GpuProgramParametersSharedPtr mActiveGeometryGpuProgramParameters
 
RenderTargetmActiveRenderTarget
 The Active render target. More...
 
GpuProgramParametersSharedPtr mActiveTesselationDomainGpuProgramParameters
 
GpuProgramParametersSharedPtr mActiveTesselationHullGpuProgramParameters
 
GpuProgramParametersSharedPtr mActiveVertexGpuProgramParameters
 The Active GPU programs and gpu program parameters. More...
 
ViewportmActiveViewport
 
size_t mBatchCount
 
PlaneList mClipPlanes
 
bool mClipPlanesDirty
 
bool mComputeProgramBound
 
CullingMode mCullingMode
 
RenderSystemCapabilitiesmCurrentCapabilities
 
size_t mCurrentPassIterationCount
 number of times to render the current state More...
 
size_t mCurrentPassIterationNum
 
DepthBufferMap mDepthBufferPool
 DepthBuffers to be attached to render targets. More...
 
bool mDerivedDepthBias
 Whether to update the depth bias per render call. More...
 
float mDerivedDepthBiasBase
 
float mDerivedDepthBiasMultiplier
 
float mDerivedDepthBiasSlopeScale
 
size_t mDisabledTexUnitsFrom
 Texture units from this upwards are disabled. More...
 
DriverVersion mDriverVersion
 
bool mEnableFixedPipeline
 is fixed pipeline enabled More...
 
ListenerList mEventListeners
 
StringVector mEventNames
 List of names of events this rendersystem may raise. More...
 
size_t mFaceCount
 
bool mFragmentProgramBound
 
bool mGeometryProgramBound
 
HardwareVertexBufferSharedPtr mGlobalInstanceVertexBuffer
 a global vertex buffer for global instancing More...
 
VertexDeclarationmGlobalInstanceVertexBufferVertexDeclaration
 a vertex declaration for the global vertex buffer for the global instancing More...
 
size_t mGlobalNumberOfInstances
 the number of global instances (this number will be multiply by the render op instance number) More...
 
HardwareOcclusionQueryList mHwOcclusionQueries
 
bool mInvertVertexWinding
 
ColourValue mManualBlendColours [OGRE_MAX_TEXTURE_LAYERS][2]
 Saved manual colour blends. More...
 
uint16 mNativeShadingLanguageVersion
 
RenderTargetPriorityMap mPrioritisedRenderTargets
 The render targets, ordered by priority. More...
 
RenderSystemCapabilitiesmRealCapabilities
 Used to store the capabilities of the graphics card. More...
 
RenderTargetMap mRenderTargets
 The render targets. More...
 
bool mTesselationDomainProgramBound
 
bool mTesselationHullProgramBound
 
bool mTexProjRelative
 
Vector3 mTexProjRelativeOrigin
 
TextureManagermTextureManager
 
bool mUseCustomCapabilities
 
size_t mVertexCount
 
bool mVertexProgramBound
 
bool mWBuffer
 

Private Types

typedef list< GLES2Context * >
::type 
GLES2ContextList
 

Private Member Functions

void bindVertexElementToGpu (const VertexElement &elem, HardwareVertexBufferSharedPtr vertexBuffer, const size_t vertexStart, vector< GLuint >::type &attribsBound, vector< GLuint >::type &instanceAttribsBound, bool updateVAO)
 
GLenum getBlendMode (SceneBlendFactor ogreBlend) const
 
GLint getCombinedMinMipFilter (void) const
 
GLint getTextureAddressingMode (TextureUnitState::TextureAddressingMode tam) const
 

Private Attributes

GLfloat mAutoTextureMatrix [16]
 
GLES2ContextList mBackgroundContextList
 List of background thread contexts. More...
 
GLES2ContextmCurrentContext
 
GLES2GpuProgrammCurrentFragmentProgram
 
GLES2GpuProgrammCurrentVertexProgram
 
size_t mCurTexMipCount
 
unsigned short mFixedFunctionTextureUnits
 Number of fixed-function texture units. More...
 
bool mGLInitialised
 Check if the GL system has already been initialised. More...
 
GLSLESCgProgramFactorymGLSLESCgProgramFactory
 
GLSLESProgramFactorymGLSLESProgramFactory
 
GLES2SupportmGLSupport
 GL support class, used for creating windows etc. More...
 
GLES2GpuProgramManagermGpuProgramManager
 
HardwareBufferManagermHardwareBufferManager
 
GLES2ContextmMainContext
 
FilterOptions mMinFilter
 Last min & mip filtering options, so we can combine them. More...
 
FilterOptions mMipFilter
 
vector< GLuint >::type mRenderAttribsBound
 
vector< GLuint >::type mRenderInstanceAttribsBound
 
GLES2RTTManagermRTTManager
 Manager object for creating render textures. More...
 
GLint mScissor [4]
 
GLES2StateCacheManagermStateCacheManager
 State cache manager which responsible to reduce redundant state changes. More...
 
size_t mTextureCoordIndex [OGRE_MAX_TEXTURE_LAYERS]
 What texture coord set each texture unit is using. More...
 
Matrix4 mTextureMatrix
 
GLenum mTextureTypes [OGRE_MAX_TEXTURE_LAYERS]
 Holds texture type settings for every stage. More...
 
bool mUseAutoTextureMatrix
 
Matrix4 mViewMatrix
 View matrix to set world against. More...
 
GLint mViewport [4]
 
Matrix4 mWorldMatrix
 

Static Private Attributes

static AndroidResourceManagermResourceManager
 

Friends

class ShaderGeneratorTechniqueResolverListener
 

Detailed Description

Implementation of GL ES 2.x as a rendering system.

Definition at line 57 of file OgreGLES2RenderSystem.h.

Member Typedef Documentation

Definition at line 94 of file OgreGLES2RenderSystem.h.

Definition at line 1587 of file OgreRenderSystem.h.

typedef list<Listener*>::type Ogre::RenderSystem::ListenerList
protectedinherited

Definition at line 1584 of file OgreRenderSystem.h.

Iterator over RenderTargets.

Definition at line 579 of file OgreRenderSystem.h.

Constructor & Destructor Documentation

Ogre::GLES2RenderSystem::GLES2RenderSystem ( )
virtual Ogre::GLES2RenderSystem::~GLES2RenderSystem ( )
virtual

Member Function Documentation

void Ogre::GLES2RenderSystem::_applyObliqueDepthProjection ( Matrix4 matrix,
const Plane plane,
bool  forGpuProgram 
)
virtual

See RenderSystem.

Implements Ogre::RenderSystem.

void Ogre::GLES2RenderSystem::_beginFrame ( void  )
virtual

See RenderSystem.

Implements Ogre::RenderSystem.

virtual void Ogre::RenderSystem::_beginGeometryCount ( void  )
virtualinherited

The RenderSystem will keep a count of tris rendered, this resets the count.

void Ogre::RenderSystem::_cleanupDepthBuffers ( bool  bCleanManualBuffers = true)
inherited

Removes all depth buffers.

Should be called on device lost and shutdown

Remarks
Advanced users can call this directly with bCleanManualBuffers=false to remove all depth buffers created for RTTs; when they think the pool has grown too big or they've used lots of depth buffers they don't need anymore, freeing GPU RAM.
void Ogre::GLES2RenderSystem::_convertProjectionMatrix ( const Matrix4 matrix,
Matrix4 dest,
bool  forGpuProgram = false 
)
virtual

See RenderSystem.

Implements Ogre::RenderSystem.

DepthBuffer* Ogre::GLES2RenderSystem::_createDepthBufferFor ( RenderTarget renderTarget)
virtual

Creates a DepthBuffer that can be attached to the specified RenderTarget.

Remarks
It doesn't attach anything, it just returns a pointer to a new DepthBuffer Caller is responsible for putting this buffer into the right pool, for attaching, and deleting it. Here's where API-specific magic happens. Don't call this directly unless you know what you're doing.

Implements Ogre::RenderSystem.

RenderWindow* Ogre::GLES2RenderSystem::_createRenderWindow ( const String name,
unsigned int  width,
unsigned int  height,
bool  fullScreen,
const NameValuePairList miscParams = 0 
)
virtual

Creates a new rendering window.

Remarks
This method creates a new rendering window as specified by the paramteters. The rendering system could be responible for only a single window (e.g. in the case of a game), or could be in charge of multiple ones (in the case of a level editor). The option to create the window as a child of another is therefore given. This method will create an appropriate subclass of RenderWindow depending on the API and platform implementation.
After creation, this window can be retrieved using getRenderTarget().
Parameters
nameThe name of the window. Used in other methods later like setRenderTarget and getRenderTarget.
widthThe width of the new window.
heightThe height of the new window.
fullScreenSpecify true to make the window full screen without borders, title bar or menu bar.
miscParamsA NameValuePairList describing the other parameters for the new rendering window. Options are case sensitive. Unrecognised parameters will be ignored silently. These values might be platform dependent, but these are present for all platforms unless indicated otherwise:
Key Type/Values Default Description Notes
title Any string RenderTarget name The title of the window that will appear in the title bar  
colourDepth 16, 32 Desktop depth Colour depth of the resulting rendering window; only applies if fullScreen Win32 Specific
left Positive integers Centred Screen x coordinate from left  
top Positive integers Centred Screen y coordinate from left  
depthBuffer true, false true Use depth buffer DirectX9 specific
externalWindowHandle Win32: HWND as integer
GLX: poslong:posint:poslong (display*:screen:windowHandle) or poslong:posint:poslong:poslong (display*:screen:windowHandle:XVisualInfo*)
OS X: WindowRef for Carbon or NSWindow for Cocoa address as an integer iOS: UIWindow address as an integer
0 (none) External window handle, for embedding the OGRE render in an existing window  
externalGLControl true, false false Let the external window control OpenGL i.e. don't select a pixel format for the window, do not change v-sync and do not swap buffer. When set to true, the calling application is responsible of OpenGL initialization and buffer swapping. It should also create an OpenGL context for its own rendering, Ogre will create one for its use. Then the calling application must also enable Ogre OpenGL context before calling any Ogre function and restore its OpenGL context after these calls. OpenGL specific
externalGLContext Context as Unsigned Long 0 (create own context) Use an externally created GL context OpenGL Specific
parentWindowHandle Win32: HWND as integer
GLX: poslong:posint:poslong (display*:screen:windowHandle) or poslong:posint:poslong:poslong (display*:screen:windowHandle:XVisualInfo*)
0 (none) Parent window handle, for embedding the OGRE in a child of an external window  
macAPI String: "cocoa" or "carbon" "carbon" Specifies the type of rendering window on the Mac Platform. Mac OS X Specific  
macAPICocoaUseNSView bool "true" or "false" "false" On the Mac platform the most diffused method to embed OGRE in a custom application is to use Interface Builder and add to the interface an instance of OgreView. The pointer to this instance is then used as "externalWindowHandle". However, there are cases where you are NOT using Interface Builder and you get the Cocoa NSView* of an existing interface. For example, this is happens when you want to render into a Java/AWT interface. In short, by setting this flag to "true" the Ogre::Root::createRenderWindow interprets the "externalWindowHandle" as a NSView* instead of an OgreView*. See OgreOSXCocoaView.h/mm. Mac OS X Specific  
contentScalingFactor Positive Float greater than 1.0 The default content scaling factor of the screen Specifies the CAEAGLLayer content scaling factor. Only supported on iOS 4 or greater. This can be useful to limit the resolution of the OpenGL ES backing store. For example, the iPhone 4's native resolution is 960 x 640. Windows are always 320 x 480, if you would like to limit the display to 720 x 480, specify 1.5 as the scaling factor. iOS Specific  
externalViewHandle UIView pointer as an integer 0 External view handle, for rendering OGRE render in an existing view iOS Specific  
externalViewControllerHandle UIViewController pointer as an integer 0 External view controller handle, for embedding OGRE in an existing view controller iOS Specific  
externalSharegroup EAGLSharegroup pointer as an integer 0 External sharegroup, used to shared GL resources between contexts iOS Specific  
Full Screen true, false false Specify whether to create the window in full screen mode OS X Specific  
FSAA Positive integer (usually 0, 2, 4, 8, 16) 0 Full screen antialiasing factor  
FSAAHint Depends on RenderSystem and hardware. Currently supports:
"Quality": on systems that have an option to prefer higher AA quality over speed, use it
Blank Full screen antialiasing hint  
displayFrequency Refresh rate in Hertz (e.g. 60, 75, 100) Desktop vsync rate Display frequency rate, for fullscreen mode  
vsync true, false false Synchronize buffer swaps to monitor vsync, eliminating tearing at the expense of a fixed frame rate  
vsyncInterval 1, 2, 3, 4 1 If vsync is enabled, the minimum number of vertical blanks that should occur between renders. For example if vsync is enabled, the refresh rate is 60 and this is set to 2, then the frame rate will be locked at 30.  
border none, fixed, resize resize The type of window border (in windowed mode)  
outerDimensions true, false false Whether the width/height is expressed as the size of the outer window, rather than the content area  
useNVPerfHUD true, false false Enable the use of nVidia NVPerfHUD  
gamma true, false false Enable hardware conversion from linear colour space to gamma colour space on rendering to the window.  
enableDoubleClick true, false false Enable the window to keep track and transmit double click messages. Win32 Specific

Implements Ogre::RenderSystem.

virtual bool Ogre::RenderSystem::_createRenderWindows ( const RenderWindowDescriptionList renderWindowDescriptions,
RenderWindowList createdWindows 
)
virtualinherited

Creates multiple rendering windows.

Parameters
renderWindowDescriptionsArray of structures containing the descriptions of each render window. The structure's members are the same as the parameters of _createRenderWindow: name width height fullScreen miscParams See _createRenderWindow for details about each member.
createdWindowsThis array will hold the created render windows.
Returns
true on success.

Reimplemented in Ogre::GLRenderSystem, Ogre::GL3PlusRenderSystem, and Ogre::D3D9RenderSystem.

void Ogre::GLES2RenderSystem::_destroyDepthBuffer ( RenderWindow pRenderWnd)
virtual void Ogre::RenderSystem::_disableTextureUnit ( size_t  texUnit)
virtualinherited

Turns off a texture unit.

Reimplemented in Ogre::D3D11RenderSystem, and Ogre::D3D9RenderSystem.

virtual void Ogre::RenderSystem::_disableTextureUnitsFrom ( size_t  texUnit)
virtualinherited

Disables all texture units from the given unit upwards.

void Ogre::GLES2RenderSystem::_endFrame ( void  )
virtual

See RenderSystem.

Implements Ogre::RenderSystem.

virtual unsigned int Ogre::RenderSystem::_getBatchCount ( void  ) const
virtualinherited

Reports the number of batches rendered since the last _beginGeometryCount call.

virtual CullingMode Ogre::RenderSystem::_getCullingMode ( void  ) const
virtualinherited
GLfloat Ogre::GLES2RenderSystem::_getCurrentAnisotropy ( size_t  unit)

Internal method for anisotropy validation.

virtual const String& Ogre::RenderSystem::_getDefaultViewportMaterialScheme ( void  ) const
virtualinherited

Returns the default material scheme used by the render system.

Systems that use the RTSS to emulate a fixed function pipeline (e.g. OpenGL ES 2, GL3+, DX11) need to override this function to return the default material scheme of the RTSS ShaderGenerator.

This is currently only used to set the default material scheme for viewports. It is a necessary step on these render systems for render textures to be rendered into properly.

void Ogre::GLES2RenderSystem::_getDepthStencilFormatFor ( GLenum  internalColourFormat,
GLenum *  depthFormat,
GLenum *  stencilFormat 
)

Mimics D3D9RenderSystem::_getDepthStencilFormatFor, if no FBO RTT manager, outputs GL_NONE.

virtual unsigned int Ogre::RenderSystem::_getFaceCount ( void  ) const
virtualinherited

Reports the number of tris rendered since the last _beginGeometryCount call.

GLES2Context* Ogre::GLES2RenderSystem::_getMainContext ( )
inline

Returns the main context.

Definition at line 460 of file OgreGLES2RenderSystem.h.

virtual unsigned int Ogre::RenderSystem::_getVertexCount ( void  ) const
virtualinherited

Reports the number of vertices passed to the renderer since the last _beginGeometryCount call.

virtual Viewport* Ogre::RenderSystem::_getViewport ( void  )
virtualinherited

Get the current active viewport for rendering.

RenderWindow* Ogre::GLES2RenderSystem::_initialise ( bool  autoCreateWindow,
const String windowTitle = "OGRE Render NativeWindowType" 
)
virtual

See RenderSystem.

Reimplemented from Ogre::RenderSystem.

virtual void Ogre::RenderSystem::_initRenderTargets ( void  )
virtualinherited

Utility method for initialising all render targets attached to this rendering system.

void Ogre::GLES2RenderSystem::_makeOrthoMatrix ( const Radian fovy,
Real  aspect,
Real  nearPlane,
Real  farPlane,
Matrix4 dest,
bool  forGpuProgram = false 
)
virtual

See RenderSystem.

Implements Ogre::RenderSystem.

void Ogre::GLES2RenderSystem::_makeProjectionMatrix ( const Radian fovy,
Real  aspect,
Real  nearPlane,
Real  farPlane,
Matrix4 dest,
bool  forGpuProgram = false 
)
virtual

See RenderSystem.

Implements Ogre::RenderSystem.

void Ogre::GLES2RenderSystem::_makeProjectionMatrix ( Real  left,
Real  right,
Real  bottom,
Real  top,
Real  nearPlane,
Real  farPlane,
Matrix4 dest,
bool  forGpuProgram = false 
)
virtual

See RenderSystem.

Implements Ogre::RenderSystem.

virtual void Ogre::RenderSystem::_notifyCameraRemoved ( const Camera cam)
virtualinherited

Utility method to notify all render targets that a camera has been removed, in case they were referring to it as their viewer.

void Ogre::GLES2RenderSystem::_oneTimeContextInitialization ( )

One time initialization for the RenderState of a context.

Things that only need to be set once, like the LightingModel can be defined here.

virtual RenderSystemContext* Ogre::RenderSystem::_pauseFrame ( void  )
virtualinherited

Pause rendering for a frame.

This has to be called after _beginFrame and before _endFrame. Will usually be called by the SceneManager, don't use this manually unless you know what you are doing.

Reimplemented in Ogre::D3D9RenderSystem.

void Ogre::GLES2RenderSystem::_render ( const RenderOperation op)
virtual

See RenderSystem.

Reimplemented from Ogre::RenderSystem.

virtual void Ogre::RenderSystem::_resumeFrame ( RenderSystemContext context)
virtualinherited

Resume rendering for a frame.

This has to be called after a _pauseFrame call Will usually be called by the SceneManager, don't use this manually unless you know what you are doing.

Parameters
contextthe render system context, as returned by _pauseFrame

Reimplemented in Ogre::D3D9RenderSystem.

void Ogre::GLES2RenderSystem::_setAlphaRejectSettings ( CompareFunction  func,
unsigned char  value,
bool  alphaToCoverage 
)
virtual

Sets the global alpha rejection approach for future renders.

By default images are rendered regardless of texture alpha. This method lets you change that.

Parameters
funcThe comparison function which must pass for a pixel to be written.
valueThe value to compare each pixels alpha value to (0-255)
alphaToCoverageWhether to enable alpha to coverage, if supported

Implements Ogre::RenderSystem.

void Ogre::GLES2RenderSystem::_setColourBufferWriteEnabled ( bool  red,
bool  green,
bool  blue,
bool  alpha 
)
virtual

See RenderSystem.

Implements Ogre::RenderSystem.

void Ogre::GLES2RenderSystem::_setCullingMode ( CullingMode  mode)
virtual

See RenderSystem.

Implements Ogre::RenderSystem.

void Ogre::GLES2RenderSystem::_setDepthBias ( float  constantBias,
float  slopeScaleBias 
)
virtual

See RenderSystem.

Implements Ogre::RenderSystem.

void Ogre::GLES2RenderSystem::_setDepthBufferCheckEnabled ( bool  enabled = true)
virtual

See RenderSystem.

Implements Ogre::RenderSystem.

void Ogre::GLES2RenderSystem::_setDepthBufferFunction ( CompareFunction  func = CMPF_LESS_EQUAL)
virtual

See RenderSystem.

Implements Ogre::RenderSystem.

void Ogre::GLES2RenderSystem::_setDepthBufferParams ( bool  depthTest = true,
bool  depthWrite = true,
CompareFunction  depthFunction = CMPF_LESS_EQUAL 
)
virtual

See RenderSystem.

Implements Ogre::RenderSystem.

void Ogre::GLES2RenderSystem::_setDepthBufferWriteEnabled ( bool  enabled = true)
virtual

See RenderSystem.

Implements Ogre::RenderSystem.

void Ogre::GLES2RenderSystem::_setFog ( FogMode  mode,
const ColourValue colour,
Real  density,
Real  start,
Real  end 
)
virtual

See RenderSystem.

Implements Ogre::RenderSystem.

void Ogre::GLES2RenderSystem::_setPointParameters ( Real  size,
bool  attenuationEnabled,
Real  constant,
Real  linear,
Real  quadratic,
Real  minSize,
Real  maxSize 
)
inlinevirtual

See RenderSystem.

Implements Ogre::RenderSystem.

Definition at line 261 of file OgreGLES2RenderSystem.h.

void Ogre::GLES2RenderSystem::_setPointSpritesEnabled ( bool  enabled)
inlinevirtual

See RenderSystem.

Implements Ogre::RenderSystem.

Definition at line 266 of file OgreGLES2RenderSystem.h.

void Ogre::GLES2RenderSystem::_setPolygonMode ( PolygonMode  level)
virtual

See RenderSystem.

Implements Ogre::RenderSystem.

void Ogre::GLES2RenderSystem::_setProjectionMatrix ( const Matrix4 m)
virtual

See RenderSystem.

Implements Ogre::RenderSystem.

void Ogre::GLES2RenderSystem::_setRenderTarget ( RenderTarget target)
virtual

Set current render target to target, enabling its GL context if needed.

Implements Ogre::RenderSystem.

void Ogre::GLES2RenderSystem::_setSceneBlending ( SceneBlendFactor  sourceFactor,
SceneBlendFactor  destFactor,
SceneBlendOperation  op 
)
virtual

Sets the global blending factors for combining subsequent renders with the existing frame contents.

The result of the blending operation is:

final = (texture * sourceFactor) + (pixel * destFactor)

Each of the factors is specified as one of a number of options, as specified in the SceneBlendFactor enumerated type. By changing the operation you can change addition between the source and destination pixels to a different operator.

Parameters
sourceFactorThe source factor in the above calculation, i.e. multiplied by the texture colour components.
destFactorThe destination factor in the above calculation, i.e. multiplied by the pixel colour components.
opThe blend operation mode for combining pixels

Implements Ogre::RenderSystem.

void Ogre::GLES2RenderSystem::_setSceneBlendingOperation ( SceneBlendOperation  op)
void Ogre::GLES2RenderSystem::_setSeparateSceneBlending ( SceneBlendFactor  sourceFactor,
SceneBlendFactor  destFactor,
SceneBlendFactor  sourceFactorAlpha,
SceneBlendFactor  destFactorAlpha,
SceneBlendOperation  op,
SceneBlendOperation  alphaOp 
)
virtual

Sets the global blending factors for combining subsequent renders with the existing frame contents.

The result of the blending operation is:

final = (texture * sourceFactor) + (pixel * destFactor)

Each of the factors is specified as one of a number of options, as specified in the SceneBlendFactor enumerated type.

Parameters
sourceFactorThe source factor in the above calculation, i.e. multiplied by the texture colour components.
destFactorThe destination factor in the above calculation, i.e. multiplied by the pixel colour components.
sourceFactorAlphaThe source factor in the above calculation for the alpha channel, i.e. multiplied by the texture alpha components.
destFactorAlphaThe destination factor in the above calculation for the alpha channel, i.e. multiplied by the pixel alpha components.
opThe blend operation mode for combining pixels
alphaOpThe blend operation mode for combining pixel alpha values

Implements Ogre::RenderSystem.

void Ogre::GLES2RenderSystem::_setSeparateSceneBlendingOperation ( SceneBlendOperation  op,
SceneBlendOperation  alphaOp 
)
void Ogre::GLES2RenderSystem::_setSurfaceParams ( const ColourValue ambient,
const ColourValue diffuse,
const ColourValue specular,
const ColourValue emissive,
Real  shininess,
TrackVertexColourType  tracking 
)
inlinevirtual

See RenderSystem.

Implements Ogre::RenderSystem.

Definition at line 254 of file OgreGLES2RenderSystem.h.

void Ogre::GLES2RenderSystem::_setTexture ( size_t  unit,
bool  enabled,
const TexturePtr tex 
)
virtual

See RenderSystem.

Implements Ogre::RenderSystem.

virtual void Ogre::RenderSystem::_setTexture ( size_t  unit,
bool  enabled,
const String texname 
)
virtualinherited

Sets the texture to bind to a given texture unit.

User processes would not normally call this direct unless rendering primitives themselves.

Parameters
unitThe index of the texture unit to modify. Multitexturing hardware can support multiple units (see RenderSystemCapabilites::getNumTextureUnits)
enabledBoolean to turn the unit on/off
texnameThe name of the texture to use - this should have already been loaded with TextureManager::load.
void Ogre::GLES2RenderSystem::_setTextureAddressingMode ( size_t  stage,
const TextureUnitState::UVWAddressingMode uvw 
)
virtual

See RenderSystem.

Implements Ogre::RenderSystem.

void Ogre::GLES2RenderSystem::_setTextureBlendMode ( size_t  stage,
const LayerBlendModeEx bm 
)
inlinevirtual

See RenderSystem.

Implements Ogre::RenderSystem.

Definition at line 283 of file OgreGLES2RenderSystem.h.

void Ogre::GLES2RenderSystem::_setTextureBorderColour ( size_t  stage,
const ColourValue colour 
)
inlinevirtual

See RenderSystem.

Implements Ogre::RenderSystem.

Definition at line 291 of file OgreGLES2RenderSystem.h.

void Ogre::GLES2RenderSystem::_setTextureCoordCalculation ( size_t  stage,
TexCoordCalcMethod  m,
const Frustum frustum = 0 
)
inlinevirtual

See RenderSystem.

Implements Ogre::RenderSystem.

Definition at line 278 of file OgreGLES2RenderSystem.h.

void Ogre::GLES2RenderSystem::_setTextureCoordSet ( size_t  stage,
size_t  index 
)
virtual

See RenderSystem.

Implements Ogre::RenderSystem.

void Ogre::GLES2RenderSystem::_setTextureLayerAnisotropy ( size_t  unit,
unsigned int  maxAnisotropy 
)
virtual

See RenderSystem.

Implements Ogre::RenderSystem.

void Ogre::GLES2RenderSystem::_setTextureMatrix ( size_t  stage,
const Matrix4 xform 
)
inlinevirtual

See RenderSystem.

Implements Ogre::RenderSystem.

Definition at line 299 of file OgreGLES2RenderSystem.h.

void Ogre::GLES2RenderSystem::_setTextureMipmapBias ( size_t  unit,
float  bias 
)
inlinevirtual

See RenderSystem.

Implements Ogre::RenderSystem.

Definition at line 295 of file OgreGLES2RenderSystem.h.

virtual void Ogre::RenderSystem::_setTextureProjectionRelativeTo ( bool  enabled,
const Vector3 pos 
)
virtualinherited

Notify the rendersystem that it should adjust texture projection to be relative to a different origin.

void Ogre::GLES2RenderSystem::_setTextureUnitCompareEnabled ( size_t  unit,
bool  compare 
)
virtual

See RenderSystem.

Implements Ogre::RenderSystem.

void Ogre::GLES2RenderSystem::_setTextureUnitCompareFunction ( size_t  unit,
CompareFunction  function 
)
virtual

See RenderSystem.

Implements Ogre::RenderSystem.

virtual void Ogre::GLES2RenderSystem::_setTextureUnitFiltering ( size_t  unit,
FilterOptions  minFilter,
FilterOptions  magFilter,
FilterOptions  mipFilter 
)
virtual

See RenderSystem.

Reimplemented from Ogre::RenderSystem.

void Ogre::GLES2RenderSystem::_setTextureUnitFiltering ( size_t  unit,
FilterType  ftype,
FilterOptions  filter 
)
virtual

See RenderSystem.

Implements Ogre::RenderSystem.

virtual void Ogre::RenderSystem::_setTextureUnitSettings ( size_t  texUnit,
TextureUnitState tl 
)
virtualinherited

Utility function for setting all the properties of a texture unit at once.

This method is also worth using over the individual texture unit settings because it only sets those settings which are different from the current settings for this unit, thus minimising render state changes.

virtual void Ogre::RenderSystem::_setVertexTexture ( size_t  unit,
const TexturePtr tex 
)
virtualinherited

Binds a texture to a vertex sampler.

Remarks
Not all rendersystems support separate vertex samplers. For those that do, you can set a texture for them, separate to the regular texture samplers, using this method. For those that don't, you should use the regular texture samplers which are shared between the vertex and fragment units; calling this method will throw an exception.
See also
RenderSystemCapabilites::getVertexTextureUnitsShared

Reimplemented in Ogre::D3D11RenderSystem, and Ogre::D3D9RenderSystem.

void Ogre::GLES2RenderSystem::_setViewMatrix ( const Matrix4 m)
virtual

See RenderSystem.

Implements Ogre::RenderSystem.

void Ogre::GLES2RenderSystem::_setViewport ( Viewport vp)
virtual

See RenderSystem.

Implements Ogre::RenderSystem.

virtual void Ogre::RenderSystem::_setWorldMatrices ( const Matrix4 m,
unsigned short  count 
)
virtualinherited

Sets multiple world matrices (vertex blending).

void Ogre::GLES2RenderSystem::_setWorldMatrix ( const Matrix4 m)
virtual

See RenderSystem.

Implements Ogre::RenderSystem.

virtual void Ogre::RenderSystem::_swapAllRenderTargetBuffers ( )
virtualinherited

Internal method for swapping all the buffers on all render targets, if _updateAllRenderTargets was called with a 'false' parameter.

void Ogre::GLES2RenderSystem::_switchContext ( GLES2Context context)

Switch GL context, dealing with involved internal cached states too.

void Ogre::GLES2RenderSystem::_unregisterContext ( GLES2Context context)

Unregister a render target->context mapping.

If the context of target is the current context, change the context to the main context so it can be destroyed safely.

Note
This is automatically called by the destructor of GLES2Context.
virtual void Ogre::RenderSystem::_updateAllRenderTargets ( bool  swapBuffers = true)
virtualinherited

Internal method for updating all render targets attached to this rendering system.

void Ogre::GLES2RenderSystem::_useLights ( const LightList lights,
unsigned short  limit 
)
inlinevirtual

See RenderSystem.

Implements Ogre::RenderSystem.

Definition at line 234 of file OgreGLES2RenderSystem.h.

virtual void Ogre::RenderSystem::addClipPlane ( const Plane p)
virtualinherited

Add a user clipping plane.

virtual void Ogre::RenderSystem::addClipPlane ( Real  A,
Real  B,
Real  C,
Real  D 
)
virtualinherited

Add a user clipping plane.

virtual void Ogre::RenderSystem::addListener ( Listener l)
virtualinherited

Adds a listener to the custom events that this render system can raise.

Remarks
Some render systems have quite specific, internally generated events that the application may wish to be notified of. Many applications don't have to worry about these events, and can just trust OGRE to handle them, but if you want to know, you can add a listener here.
Events are raised very generically by string name. Perhaps the most common example of a render system specific event is the loss and restoration of a device in DirectX; which OGRE deals with, but you may wish to know when it happens.
See also
RenderSystem::getRenderSystemEvents
bool Ogre::GLES2RenderSystem::areFixedFunctionLightsInViewSpace ( ) const
inlinevirtual

See RenderSystem.

Reimplemented from Ogre::RenderSystem.

Definition at line 238 of file OgreGLES2RenderSystem.h.

virtual void Ogre::RenderSystem::attachRenderTarget ( RenderTarget target)
virtualinherited

Attaches the passed render target to the render system.

virtual void Ogre::GLES2RenderSystem::beginProfileEvent ( const String eventName)
virtual

This marks the beginning of an event for GPU profiling.

Implements Ogre::RenderSystem.

void Ogre::GLES2RenderSystem::bindGpuProgram ( GpuProgram prg)
virtual

Binds a given GpuProgram (but not the parameters).

Remarks
Only one GpuProgram of each type can be bound at once, binding another one will simply replace the existing one.

Reimplemented from Ogre::RenderSystem.

void Ogre::GLES2RenderSystem::bindGpuProgramParameters ( GpuProgramType  gptype,
GpuProgramParametersSharedPtr  params,
uint16  variabilityMask 
)
virtual

Bind Gpu program parameters.

Parameters
gptypeThe type of program to bind the parameters to
paramsThe parameters to bind
variabilityMaskA mask of GpuParamVariability identifying which params need binding

Implements Ogre::RenderSystem.

void Ogre::GLES2RenderSystem::bindGpuProgramPassIterationParameters ( GpuProgramType  gptype)
virtual

Only binds Gpu program parameters used for passes that have more than one iteration rendering.

Implements Ogre::RenderSystem.

void Ogre::GLES2RenderSystem::bindVertexElementToGpu ( const VertexElement elem,
HardwareVertexBufferSharedPtr  vertexBuffer,
const size_t  vertexStart,
vector< GLuint >::type &  attribsBound,
vector< GLuint >::type &  instanceAttribsBound,
bool  updateVAO 
)
private
void Ogre::GLES2RenderSystem::clearFrameBuffer ( unsigned int  buffers,
const ColourValue colour = ColourValue::Black,
Real  depth = 1.0f,
unsigned short  stencil = 0 
)
virtual

Clears one or more frame buffers on the active render target.

Parameters
buffersCombination of one or more elements of FrameBufferType denoting which buffers are to be cleared
colourThe colour to clear the colour buffer with, if enabled
depthThe value to initialise the depth buffer with, if enabled
stencilThe value to initialise the stencil buffer with, if enabled.

Implements Ogre::RenderSystem.

virtual void Ogre::RenderSystem::convertColourValue ( const ColourValue colour,
uint32 pDest 
)
virtualinherited

Generates a packed data version of the passed in ColourValue suitable for use as with this RenderSystem.

Remarks
Since different render systems have different colour data formats (eg RGBA for GL, ARGB for D3D) this method allows you to use 1 method for all.
Parameters
colourThe colour to convert
pDestPointer to location to put the result.
GLint Ogre::GLES2RenderSystem::convertCompareFunction ( CompareFunction  func) const
GLint Ogre::GLES2RenderSystem::convertStencilOp ( StencilOperation  op,
bool  invert = false 
) const
HardwareOcclusionQuery* Ogre::GLES2RenderSystem::createHardwareOcclusionQuery ( void  )
virtual

Create an object for performing hardware occlusion queries.

Implements Ogre::RenderSystem.

virtual MultiRenderTarget* Ogre::GLES2RenderSystem::createMultiRenderTarget ( const String name)
virtual

Create a MultiRenderTarget, which is a render target that renders to multiple RenderTextures at once.

Surfaces can be bound and unbound at will. This fails if mCapabilities->getNumMultiRenderTargets() is smaller than 2.

Implements Ogre::RenderSystem.

virtual RenderSystemCapabilities* Ogre::GLES2RenderSystem::createRenderSystemCapabilities ( ) const
virtual

See RenderSystem.

Implements Ogre::RenderSystem.

virtual void Ogre::RenderSystem::destroyHardwareOcclusionQuery ( HardwareOcclusionQuery hq)
virtualinherited

Destroy a hardware occlusion query object.

virtual void Ogre::RenderSystem::destroyRenderTarget ( const String name)
virtualinherited

Destroys a render target of any sort.

Reimplemented in Ogre::D3D11RenderSystem, and Ogre::D3D9RenderSystem.

virtual void Ogre::RenderSystem::destroyRenderTexture ( const String name)
virtualinherited

Destroys a render texture.

void Ogre::GLES2RenderSystem::destroyRenderWindow ( RenderWindow pWin)
virtual void Ogre::RenderSystem::destroyRenderWindow ( const String name)
virtualinherited

Destroys a render window.

virtual RenderTarget* Ogre::RenderSystem::detachRenderTarget ( const String name)
virtualinherited

Detaches the render target with the passed name from the render system and returns a pointer to it.

Note
If the render target cannot be found, NULL is returned.

Reimplemented in Ogre::D3D11RenderSystem, and Ogre::D3D9RenderSystem.

void Ogre::GLES2RenderSystem::enableClipPlane ( ushort  index,
bool  enable 
)
virtual void Ogre::GLES2RenderSystem::endProfileEvent ( void  )
virtual

Ends the currently active GPU profiling event.

Implements Ogre::RenderSystem.

virtual void Ogre::RenderSystem::fireEvent ( const String name,
const NameValuePairList params = 0 
)
protectedvirtualinherited

Internal method for firing a rendersystem event.

GLenum Ogre::GLES2RenderSystem::getBlendMode ( SceneBlendFactor  ogreBlend) const
private
const RenderSystemCapabilities* Ogre::RenderSystem::getCapabilities ( void  ) const
inlineinherited

Gets the capabilities of the render system.

Definition at line 1210 of file OgreRenderSystem.h.

VertexElementType Ogre::GLES2RenderSystem::getColourVertexElementType ( void  ) const
virtual

See RenderSystem.

Implements Ogre::RenderSystem.

GLint Ogre::GLES2RenderSystem::getCombinedMinMipFilter ( void  ) const
private
ConfigOptionMap& Ogre::GLES2RenderSystem::getConfigOptions ( void  )
virtual

See RenderSystem.

Implements Ogre::RenderSystem.

virtual void Ogre::RenderSystem::getCustomAttribute ( const String name,
void *  pData 
)
virtualinherited

Gets a custom (maybe platform-specific) attribute.

Remarks
This is a nasty way of satisfying any API's need to see platform-specific details.
Parameters
nameThe name of the attribute.
pDataPointer to memory of the right kind of structure to receive the info.

Reimplemented in Ogre::D3D11RenderSystem.

unsigned int Ogre::GLES2RenderSystem::getDiscardBuffers ( void  )
unsigned int Ogre::GLES2RenderSystem::getDisplayMonitorCount ( ) const
virtual

Gets the number of display monitors.

See also
Root::getDisplayMonitorCount

Implements Ogre::RenderSystem.

virtual const DriverVersion& Ogre::RenderSystem::getDriverVersion ( void  ) const
inlinevirtualinherited

Returns the driver version.

Definition at line 1215 of file OgreRenderSystem.h.

String Ogre::GLES2RenderSystem::getErrorDescription ( long  errorNumber) const
virtual

See RenderSystem.

Implements Ogre::RenderSystem.

bool Ogre::RenderSystem::getFixedPipelineEnabled ( void  ) const
inherited

Returns true if fixed pipeline rendering is enabled on the system.

GLES2Support* Ogre::GLES2RenderSystem::getGLES2Support ( )
inline

Definition at line 482 of file OgreGLES2RenderSystem.h.

HardwareVertexBufferSharedPtr Ogre::RenderSystem::getGlobalInstanceVertexBuffer ( ) const
inherited

Returns the global instance vertex buffer.

VertexDeclaration* Ogre::RenderSystem::getGlobalInstanceVertexBufferVertexDeclaration ( ) const
inherited

Gets vertex declaration for the global vertex buffer for the global instancing.

size_t Ogre::RenderSystem::getGlobalNumberOfInstances ( ) const
inherited

Gets the global number of instances.

GLES2Support* Ogre::GLES2RenderSystem::getGLSupportRef ( )
inline

Definition at line 454 of file OgreGLES2RenderSystem.h.

Real Ogre::GLES2RenderSystem::getHorizontalTexelOffset ( void  )
inlinevirtual

Returns the horizontal texel offset value required for mapping texel origins to pixel origins in this rendersystem.

Remarks
Since rendersystems sometimes disagree on the origin of a texel, mapping from texels to pixels can sometimes be problematic to implement generically. This method allows you to retrieve the offset required to map the origin of a texel to the origin of a pixel in the horizontal direction.

Implements Ogre::RenderSystem.

Definition at line 444 of file OgreGLES2RenderSystem.h.

virtual bool Ogre::RenderSystem::getInvertVertexWinding ( void  ) const
virtualinherited

Indicates whether or not the vertex windings set will be inverted for the current render (e.g.

reflections)

See also
RenderSystem::setInvertVertexWinding
Real Ogre::GLES2RenderSystem::getMaximumDepthInputValue ( void  )
inlinevirtual

Gets the maximum (farthest) depth value to be used when rendering using identity transforms.

Remarks
When using identity transforms you can manually set the depth of a vertex; however the input values required differ per rendersystem. This method lets you retrieve the correct value.
See also
Renderable::getUseIdentityView, Renderable::getUseIdentityProjection

Implements Ogre::RenderSystem.

Definition at line 447 of file OgreGLES2RenderSystem.h.

Real Ogre::GLES2RenderSystem::getMinimumDepthInputValue ( void  )
inlinevirtual

Gets the minimum (closest) depth value to be used when rendering using identity transforms.

Remarks
When using identity transforms you can manually set the depth of a vertex; however the input values required differ per rendersystem. This method lets you retrieve the correct value.
See also
Renderable::getUseIdentityView, Renderable::getUseIdentityProjection

Implements Ogre::RenderSystem.

Definition at line 446 of file OgreGLES2RenderSystem.h.

RenderSystemCapabilities* Ogre::RenderSystem::getMutableCapabilities ( )
inlineinherited

Get a pointer to the current capabilities being used by the RenderSystem.

Remarks
The capabilities may be modified using this pointer, this will only have an effect before the RenderSystem has been initialised. It's intended use is to allow a listener of the RenderSystemCapabilitiesCreated event to customise the capabilities on the fly before the RenderSystem is initialised.

Definition at line 231 of file OgreRenderSystem.h.

const String& Ogre::GLES2RenderSystem::getName ( void  ) const
virtual

See RenderSystem.

Implements Ogre::RenderSystem.

uint16 Ogre::RenderSystem::getNativeShadingLanguageVersion ( ) const
inlineinherited

Gets the native shading language version for this render system.

Formatted so that it can be used within a shading program. For example, OpenGL 3.2 would return 150, while 3.3 would return 330

Definition at line 1259 of file OgreRenderSystem.h.

virtual const StringVector& Ogre::RenderSystem::getRenderSystemEvents ( void  ) const
inlinevirtualinherited

Gets a list of the rendersystem specific events that this rendersystem can raise.

See also
RenderSystem::addListener

Definition at line 1430 of file OgreRenderSystem.h.

virtual RenderTarget* Ogre::RenderSystem::getRenderTarget ( const String name)
virtualinherited

Returns a pointer to the render target with the passed name, or NULL if that render target cannot be found.

virtual RenderTargetIterator Ogre::RenderSystem::getRenderTargetIterator ( void  )
inlinevirtualinherited

Returns a specialised MapIterator over all render targets attached to the RenderSystem.

Definition at line 582 of file OgreRenderSystem.h.

static AndroidResourceManager* Ogre::GLES2RenderSystem::getResourceManager ( )
static
GLint Ogre::GLES2RenderSystem::getTextureAddressingMode ( TextureUnitState::TextureAddressingMode  tam) const
private
Real Ogre::GLES2RenderSystem::getVerticalTexelOffset ( void  )
inlinevirtual

Returns the vertical texel offset value required for mapping texel origins to pixel origins in this rendersystem.

Remarks
Since rendersystems sometimes disagree on the origin of a texel, mapping from texels to pixels can sometimes be problematic to implement generically. This method allows you to retrieve the offset required to map the origin of a texel to the origin of a pixel in the vertical direction.

Implements Ogre::RenderSystem.

Definition at line 445 of file OgreGLES2RenderSystem.h.

bool Ogre::RenderSystem::getWBufferEnabled ( void  ) const
inherited

Returns true if the renderer will try to use W-buffers when available.

virtual bool Ogre::GLES2RenderSystem::hasAnisotropicMipMapFilter ( ) const
inlinevirtual

See RenderSystem.

Implements Ogre::RenderSystem.

Definition at line 418 of file OgreGLES2RenderSystem.h.

void Ogre::GLES2RenderSystem::initialiseContext ( RenderWindow primary)
void Ogre::GLES2RenderSystem::initialiseFromRenderSystemCapabilities ( RenderSystemCapabilities caps,
RenderTarget primary 
)
virtual

See RenderSystem.

Implements Ogre::RenderSystem.

virtual bool Ogre::RenderSystem::isGpuProgramBound ( GpuProgramType  gptype)
virtualinherited

Returns whether or not a Gpu program of the given type is currently bound.

virtual bool Ogre::RenderSystem::isStaticBufferLockable ( ) const
inlinevirtualinherited

Reimplemented in Ogre::D3D9RenderSystem.

Definition at line 219 of file OgreRenderSystem.h.

virtual void Ogre::GLES2RenderSystem::markProfileEvent ( const String eventName)
virtual

Marks an instantaneous event for graphics profilers.

This is equivalent to calling

See also
beginProfileEvent and
endProfileEvent back to back.

Implements Ogre::RenderSystem.

Ogre::GLES2RenderSystem::OGRE_MUTEX ( mThreadInitMutex  )
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::GLES2RenderSystem::postExtraThreadsStarted ( )
virtual

Implements Ogre::RenderSystem.

void Ogre::GLES2RenderSystem::preExtraThreadsStarted ( )
virtual

Tell the rendersystem to perform any prep tasks it needs to directly before other threads which might access the rendering API are registered.

Remarks
Call this from your main thread before starting your other threads (which themselves should call registerThread()). Note that if you start your own threads, there is a specific startup sequence which must be respected and requires synchronisation between the threads:
  1. [Main thread]Call preExtraThreadsStarted
  2. [Main thread]Start other thread, wait
  3. [Other thread]Call registerThread, notify main thread & continue
  4. [Main thread]Wake up & call postExtraThreadsStarted
Once this init sequence is completed the threads are independent but this startup sequence must be respected.

Implements Ogre::RenderSystem.

void Ogre::GLES2RenderSystem::registerThread ( )
virtual

Register the an additional thread which may make calls to rendersystem-related objects.

Remarks
This method should only be called by additional threads during their initialisation. If they intend to use hardware rendering system resources they should call this method before doing anything related to the render system. Some rendering APIs require a per-thread setup and this method will sort that out. It is also necessary to call unregisterThread before the thread shuts down.
Note
This method takes no parameters - it must be called from the thread being registered and that context is enough.

Implements Ogre::RenderSystem.

void Ogre::GLES2RenderSystem::reinitialise ( void  )
virtual

See RenderSystem.

Implements Ogre::RenderSystem.

virtual void Ogre::RenderSystem::removeListener ( Listener l)
virtualinherited

Remove a listener to the custom events that this render system can raise.

virtual void Ogre::RenderSystem::resetClipPlanes ( )
virtualinherited

Clears the user clipping region.

void Ogre::GLES2RenderSystem::resetRenderer ( RenderWindow pRenderWnd)
void Ogre::GLES2RenderSystem::setAmbientLight ( float  r,
float  g,
float  b 
)
inlinevirtual

See RenderSystem.

Implements Ogre::RenderSystem.

Definition at line 187 of file OgreGLES2RenderSystem.h.

void Ogre::GLES2RenderSystem::setClipPlane ( ushort  index,
Real  A,
Real  B,
Real  C,
Real  D 
)
virtual void Ogre::RenderSystem::setClipPlanes ( const PlaneList clipPlanes)
virtualinherited

Sets the user clipping region.

void Ogre::GLES2RenderSystem::setClipPlanesImpl ( const Ogre::PlaneList clipPlanes)
inlinevirtual

Internal method used to set the underlying clip planes when needed.

Implements Ogre::RenderSystem.

Definition at line 453 of file OgreGLES2RenderSystem.h.

void Ogre::GLES2RenderSystem::setConfigOption ( const String name,
const String value 
)
virtual

See RenderSystem.

Implements Ogre::RenderSystem.

virtual void Ogre::RenderSystem::setCurrentPassIterationCount ( const size_t  count)
inlinevirtualinherited

set the current multi pass count value.

This must be set prior to calling _render() if multiple renderings of the same pass state are required.

Parameters
countNumber of times to render the current state.

Definition at line 1365 of file OgreRenderSystem.h.

virtual void Ogre::RenderSystem::setDepthBufferFor ( RenderTarget renderTarget)
virtualinherited

Retrieves an existing DepthBuffer or creates a new one suited for the given RenderTarget and sets it.

Remarks
RenderTarget's pool ID is respected.
See also
RenderTarget::setDepthBufferPool()
virtual void Ogre::RenderSystem::setDeriveDepthBias ( bool  derive,
float  baseValue = 0.0f,
float  multiplier = 0.0f,
float  slopeScale = 0.0f 
)
inlinevirtualinherited

Tell the render system whether to derive a depth bias on its own based on the values passed to it in setCurrentPassIterationCount.

The depth bias set will be baseValue + iteration * multiplier

Parameters
deriveTrue to tell the RS to derive this automatically
baseValueThe base value to which the multiplier should be added
multiplierThe amount of depth bias to apply per iteration
slopeScaleThe constant slope scale bias for completeness

Definition at line 1376 of file OgreRenderSystem.h.

void Ogre::RenderSystem::setFixedPipelineEnabled ( bool  enabled)
inherited

Sets if fixed pipeline rendering is enabled on the system.

void Ogre::RenderSystem::setGlobalInstanceVertexBuffer ( const HardwareVertexBufferSharedPtr val)
inherited

Sets the global instance vertex buffer.

void Ogre::RenderSystem::setGlobalInstanceVertexBufferVertexDeclaration ( VertexDeclaration val)
inherited

Sets vertex declaration for the global vertex buffer for the global instancing.

void Ogre::RenderSystem::setGlobalNumberOfInstances ( const size_t  val)
inherited

Sets the global number of instances.

virtual void Ogre::RenderSystem::setInvertVertexWinding ( bool  invert)
virtualinherited

Sets whether or not vertex windings set should be inverted; this can be important for rendering reflections.

void Ogre::GLES2RenderSystem::setLightingEnabled ( bool  enabled)
inlinevirtual

See RenderSystem.

Implements Ogre::RenderSystem.

Definition at line 195 of file OgreGLES2RenderSystem.h.

void Ogre::GLES2RenderSystem::setNormaliseNormals ( bool  normalise)
inlinevirtual

See RenderSystem.

Implements Ogre::RenderSystem.

Definition at line 226 of file OgreGLES2RenderSystem.h.

void Ogre::GLES2RenderSystem::setScissorTest ( bool  enabled,
size_t  left = 0,
size_t  top = 0,
size_t  right = 800,
size_t  bottom = 600 
)
virtual

See RenderSystem.

Implements Ogre::RenderSystem.

void Ogre::GLES2RenderSystem::setShadingType ( ShadeOptions  so)
inlinevirtual

See RenderSystem.

Implements Ogre::RenderSystem.

Definition at line 191 of file OgreGLES2RenderSystem.h.

void Ogre::GLES2RenderSystem::setStencilBufferParams ( CompareFunction  func = CMPF_ALWAYS_PASS,
uint32  refValue = 0,
uint32  compareMask = 0xFFFFFFFF,
uint32  writeMask = 0xFFFFFFFF,
StencilOperation  stencilFailOp = SOP_KEEP,
StencilOperation  depthFailOp = SOP_KEEP,
StencilOperation  passOp = SOP_KEEP,
bool  twoSidedOperation = false 
)
virtual

See RenderSystem.

Implements Ogre::RenderSystem.

void Ogre::GLES2RenderSystem::setStencilCheckEnabled ( bool  enabled)
virtual

See RenderSystem.

Implements Ogre::RenderSystem.

void Ogre::GLES2RenderSystem::setVertexBufferBinding ( VertexBufferBinding binding)
inlinevirtual

See RenderSystem.

Implements Ogre::RenderSystem.

Definition at line 430 of file OgreGLES2RenderSystem.h.

void Ogre::GLES2RenderSystem::setVertexDeclaration ( VertexDeclaration decl)
virtual

See RenderSystem.

Implements Ogre::RenderSystem.

void Ogre::GLES2RenderSystem::setVertexDeclaration ( VertexDeclaration decl,
VertexBufferBinding binding 
)
void Ogre::RenderSystem::setWBufferEnabled ( bool  enabled)
inherited

Sets whether or not W-buffers are enabled if they are available for this renderer.

Parameters
enabledIf true and the renderer supports them W-buffers will be used. If false W-buffers will not be used even if available. W-buffers are enabled by default for 16bit depth buffers and disabled for all other depths.
void Ogre::GLES2RenderSystem::shutdown ( void  )
virtual

See RenderSystem.

Reimplemented from Ogre::RenderSystem.

void Ogre::GLES2RenderSystem::unbindGpuProgram ( GpuProgramType  gptype)
virtual

Unbinds GpuPrograms of a given GpuProgramType.

Remarks
This returns the pipeline to fixed-function processing for this type.

Reimplemented from Ogre::RenderSystem.

void Ogre::GLES2RenderSystem::unregisterThread ( )
virtual

Unregister an additional thread which may make calls to rendersystem-related objects.

See also
RenderSystem::registerThread

Implements Ogre::RenderSystem.

bool Ogre::RenderSystem::updatePassIterationRenderState ( void  )
protectedinherited

updates pass iteration rendering state including bound gpu program parameter pass iteration auto constant entry

Returns
True if more iterations are required
virtual void Ogre::RenderSystem::useCustomRenderSystemCapabilities ( RenderSystemCapabilities capabilities)
virtualinherited

Force the render system to use the special capabilities.

Can only be called before the render system has been fully initializer (before createWindow is called)

Parameters
capabilitieshas to be a subset of the real capabilities and the caller is responsible for deallocating capabilities.
String Ogre::GLES2RenderSystem::validateConfigOptions ( void  )
virtual

See RenderSystem.

Implements Ogre::RenderSystem.

Friends And Related Function Documentation

friend class ShaderGeneratorTechniqueResolverListener
friend

Definition at line 143 of file OgreGLES2RenderSystem.h.

Member Data Documentation

GpuProgramParametersSharedPtr Ogre::RenderSystem::mActiveComputeGpuProgramParameters
protectedinherited

Definition at line 1526 of file OgreRenderSystem.h.

GpuProgramParametersSharedPtr Ogre::RenderSystem::mActiveFragmentGpuProgramParameters
protectedinherited

Definition at line 1523 of file OgreRenderSystem.h.

GpuProgramParametersSharedPtr Ogre::RenderSystem::mActiveGeometryGpuProgramParameters
protectedinherited

Definition at line 1522 of file OgreRenderSystem.h.

RenderTarget* Ogre::RenderSystem::mActiveRenderTarget
protectedinherited

The Active render target.

Definition at line 1518 of file OgreRenderSystem.h.

GpuProgramParametersSharedPtr Ogre::RenderSystem::mActiveTesselationDomainGpuProgramParameters
protectedinherited

Definition at line 1525 of file OgreRenderSystem.h.

GpuProgramParametersSharedPtr Ogre::RenderSystem::mActiveTesselationHullGpuProgramParameters
protectedinherited

Definition at line 1524 of file OgreRenderSystem.h.

GpuProgramParametersSharedPtr Ogre::RenderSystem::mActiveVertexGpuProgramParameters
protectedinherited

The Active GPU programs and gpu program parameters.

Definition at line 1521 of file OgreRenderSystem.h.

Viewport* Ogre::RenderSystem::mActiveViewport
protectedinherited

Definition at line 1535 of file OgreRenderSystem.h.

GLfloat Ogre::GLES2RenderSystem::mAutoTextureMatrix[16]
private

Definition at line 78 of file OgreGLES2RenderSystem.h.

GLES2ContextList Ogre::GLES2RenderSystem::mBackgroundContextList
private

List of background thread contexts.

Definition at line 96 of file OgreGLES2RenderSystem.h.

size_t Ogre::RenderSystem::mBatchCount
protectedinherited

Definition at line 1541 of file OgreRenderSystem.h.

PlaneList Ogre::RenderSystem::mClipPlanes
protectedinherited

Definition at line 1598 of file OgreRenderSystem.h.

bool Ogre::RenderSystem::mClipPlanesDirty
protectedinherited

Definition at line 1600 of file OgreRenderSystem.h.

bool Ogre::RenderSystem::mComputeProgramBound
protectedinherited

Definition at line 1595 of file OgreRenderSystem.h.

CullingMode Ogre::RenderSystem::mCullingMode
protectedinherited

Definition at line 1537 of file OgreRenderSystem.h.

RenderSystemCapabilities* Ogre::RenderSystem::mCurrentCapabilities
protectedinherited

Definition at line 1604 of file OgreRenderSystem.h.

GLES2Context* Ogre::GLES2RenderSystem::mCurrentContext
private

Definition at line 92 of file OgreGLES2RenderSystem.h.

GLES2GpuProgram* Ogre::GLES2RenderSystem::mCurrentFragmentProgram
private

Definition at line 123 of file OgreGLES2RenderSystem.h.

size_t Ogre::RenderSystem::mCurrentPassIterationCount
protectedinherited

number of times to render the current state

Definition at line 1554 of file OgreRenderSystem.h.

size_t Ogre::RenderSystem::mCurrentPassIterationNum
protectedinherited

Definition at line 1555 of file OgreRenderSystem.h.

GLES2GpuProgram* Ogre::GLES2RenderSystem::mCurrentVertexProgram
private

Definition at line 122 of file OgreGLES2RenderSystem.h.

size_t Ogre::GLES2RenderSystem::mCurTexMipCount
private

Definition at line 134 of file OgreGLES2RenderSystem.h.

DepthBufferMap Ogre::RenderSystem::mDepthBufferPool
protectedinherited

DepthBuffers to be attached to render targets.

Definition at line 1511 of file OgreRenderSystem.h.

bool Ogre::RenderSystem::mDerivedDepthBias
protectedinherited

Whether to update the depth bias per render call.

Definition at line 1557 of file OgreRenderSystem.h.

float Ogre::RenderSystem::mDerivedDepthBiasBase
protectedinherited

Definition at line 1558 of file OgreRenderSystem.h.

float Ogre::RenderSystem::mDerivedDepthBiasMultiplier
protectedinherited

Definition at line 1559 of file OgreRenderSystem.h.

float Ogre::RenderSystem::mDerivedDepthBiasSlopeScale
protectedinherited

Definition at line 1560 of file OgreRenderSystem.h.

size_t Ogre::RenderSystem::mDisabledTexUnitsFrom
protectedinherited

Texture units from this upwards are disabled.

Definition at line 1551 of file OgreRenderSystem.h.

DriverVersion Ogre::RenderSystem::mDriverVersion
protectedinherited

Definition at line 1614 of file OgreRenderSystem.h.

bool Ogre::RenderSystem::mEnableFixedPipeline
protectedinherited

is fixed pipeline enabled

Definition at line 1570 of file OgreRenderSystem.h.

ListenerList Ogre::RenderSystem::mEventListeners
protectedinherited

Definition at line 1585 of file OgreRenderSystem.h.

StringVector Ogre::RenderSystem::mEventNames
protectedinherited

List of names of events this rendersystem may raise.

Definition at line 1579 of file OgreRenderSystem.h.

size_t Ogre::RenderSystem::mFaceCount
protectedinherited

Definition at line 1542 of file OgreRenderSystem.h.

unsigned short Ogre::GLES2RenderSystem::mFixedFunctionTextureUnits
private

Number of fixed-function texture units.

Definition at line 76 of file OgreGLES2RenderSystem.h.

bool Ogre::RenderSystem::mFragmentProgramBound
protectedinherited

Definition at line 1592 of file OgreRenderSystem.h.

bool Ogre::RenderSystem::mGeometryProgramBound
protectedinherited

Definition at line 1591 of file OgreRenderSystem.h.

bool Ogre::GLES2RenderSystem::mGLInitialised
private

Check if the GL system has already been initialised.

Definition at line 113 of file OgreGLES2RenderSystem.h.

HardwareVertexBufferSharedPtr Ogre::RenderSystem::mGlobalInstanceVertexBuffer
protectedinherited

a global vertex buffer for global instancing

Definition at line 1563 of file OgreRenderSystem.h.

VertexDeclaration* Ogre::RenderSystem::mGlobalInstanceVertexBufferVertexDeclaration
protectedinherited

a vertex declaration for the global vertex buffer for the global instancing

Definition at line 1565 of file OgreRenderSystem.h.

size_t Ogre::RenderSystem::mGlobalNumberOfInstances
protectedinherited

the number of global instances (this number will be multiply by the render op instance number)

Definition at line 1567 of file OgreRenderSystem.h.

GLSLESCgProgramFactory* Ogre::GLES2RenderSystem::mGLSLESCgProgramFactory
private

Definition at line 101 of file OgreGLES2RenderSystem.h.

GLSLESProgramFactory* Ogre::GLES2RenderSystem::mGLSLESProgramFactory
private

Definition at line 99 of file OgreGLES2RenderSystem.h.

GLES2Support* Ogre::GLES2RenderSystem::mGLSupport
private

GL support class, used for creating windows etc.

Definition at line 83 of file OgreGLES2RenderSystem.h.

GLES2GpuProgramManager* Ogre::GLES2RenderSystem::mGpuProgramManager
private

Definition at line 98 of file OgreGLES2RenderSystem.h.

HardwareBufferManager* Ogre::GLES2RenderSystem::mHardwareBufferManager
private

Definition at line 103 of file OgreGLES2RenderSystem.h.

HardwareOcclusionQueryList Ogre::RenderSystem::mHwOcclusionQueries
protectedinherited

Definition at line 1588 of file OgreRenderSystem.h.

bool Ogre::RenderSystem::mInvertVertexWinding
protectedinherited

Definition at line 1548 of file OgreRenderSystem.h.

GLES2Context* Ogre::GLES2RenderSystem::mMainContext
private

Definition at line 89 of file OgreGLES2RenderSystem.h.

ColourValue Ogre::RenderSystem::mManualBlendColours[OGRE_MAX_TEXTURE_LAYERS][2]
protectedinherited

Saved manual colour blends.

Definition at line 1546 of file OgreRenderSystem.h.

FilterOptions Ogre::GLES2RenderSystem::mMinFilter
private

Last min & mip filtering options, so we can combine them.

Definition at line 66 of file OgreGLES2RenderSystem.h.

FilterOptions Ogre::GLES2RenderSystem::mMipFilter
private

Definition at line 67 of file OgreGLES2RenderSystem.h.

uint16 Ogre::RenderSystem::mNativeShadingLanguageVersion
protectedinherited

Definition at line 1615 of file OgreRenderSystem.h.

RenderTargetPriorityMap Ogre::RenderSystem::mPrioritisedRenderTargets
protectedinherited

The render targets, ordered by priority.

Definition at line 1516 of file OgreRenderSystem.h.

RenderSystemCapabilities* Ogre::RenderSystem::mRealCapabilities
protectedinherited

Used to store the capabilities of the graphics card.

Definition at line 1603 of file OgreRenderSystem.h.

vector<GLuint>::type Ogre::GLES2RenderSystem::mRenderAttribsBound
private

Definition at line 117 of file OgreGLES2RenderSystem.h.

vector<GLuint>::type Ogre::GLES2RenderSystem::mRenderInstanceAttribsBound
private

Definition at line 118 of file OgreGLES2RenderSystem.h.

RenderTargetMap Ogre::RenderSystem::mRenderTargets
protectedinherited

The render targets.

Definition at line 1514 of file OgreRenderSystem.h.

AndroidResourceManager* Ogre::GLES2RenderSystem::mResourceManager
staticprivate

Definition at line 524 of file OgreGLES2RenderSystem.h.

GLES2RTTManager* Ogre::GLES2RenderSystem::mRTTManager
private

Manager object for creating render textures.

Direct render to texture via GL_OES_framebuffer_object is preferable to pbuffers, which depend on the GL support used and are generally unwieldy and slow. However, FBO support for stencil buffers is poor.

Definition at line 110 of file OgreGLES2RenderSystem.h.

GLint Ogre::GLES2RenderSystem::mScissor[4]
private

Definition at line 136 of file OgreGLES2RenderSystem.h.

GLES2StateCacheManager* Ogre::GLES2RenderSystem::mStateCacheManager
private

State cache manager which responsible to reduce redundant state changes.

Definition at line 86 of file OgreGLES2RenderSystem.h.

bool Ogre::RenderSystem::mTesselationDomainProgramBound
protectedinherited

Definition at line 1594 of file OgreRenderSystem.h.

bool Ogre::RenderSystem::mTesselationHullProgramBound
protectedinherited

Definition at line 1593 of file OgreRenderSystem.h.

bool Ogre::RenderSystem::mTexProjRelative
protectedinherited

Definition at line 1617 of file OgreRenderSystem.h.

Vector3 Ogre::RenderSystem::mTexProjRelativeOrigin
protectedinherited

Definition at line 1618 of file OgreRenderSystem.h.

size_t Ogre::GLES2RenderSystem::mTextureCoordIndex[OGRE_MAX_TEXTURE_LAYERS]
private

What texture coord set each texture unit is using.

Definition at line 70 of file OgreGLES2RenderSystem.h.

TextureManager* Ogre::RenderSystem::mTextureManager
protectedinherited

Definition at line 1532 of file OgreRenderSystem.h.

Matrix4 Ogre::GLES2RenderSystem::mTextureMatrix
private

Definition at line 63 of file OgreGLES2RenderSystem.h.

GLenum Ogre::GLES2RenderSystem::mTextureTypes[OGRE_MAX_TEXTURE_LAYERS]
private

Holds texture type settings for every stage.

Definition at line 73 of file OgreGLES2RenderSystem.h.

bool Ogre::GLES2RenderSystem::mUseAutoTextureMatrix
private

Definition at line 80 of file OgreGLES2RenderSystem.h.

bool Ogre::RenderSystem::mUseCustomCapabilities
protectedinherited

Definition at line 1605 of file OgreRenderSystem.h.

size_t Ogre::RenderSystem::mVertexCount
protectedinherited

Definition at line 1543 of file OgreRenderSystem.h.

bool Ogre::RenderSystem::mVertexProgramBound
protectedinherited

Definition at line 1590 of file OgreRenderSystem.h.

Matrix4 Ogre::GLES2RenderSystem::mViewMatrix
private

View matrix to set world against.

Definition at line 61 of file OgreGLES2RenderSystem.h.

GLint Ogre::GLES2RenderSystem::mViewport[4]
private

Definition at line 135 of file OgreGLES2RenderSystem.h.

bool Ogre::RenderSystem::mWBuffer
protectedinherited

Definition at line 1539 of file OgreRenderSystem.h.

Matrix4 Ogre::GLES2RenderSystem::mWorldMatrix
private

Definition at line 62 of file OgreGLES2RenderSystem.h.


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