|
| GLES2RenderSystem () |
|
virtual | ~GLES2RenderSystem () |
|
void | _applyObliqueDepthProjection (Matrix4 &matrix, const Plane &plane, bool forGpuProgram) |
| Update a perspective projection matrix to use 'oblique depth projection'. More...
|
|
void | _beginFrame (void) |
| Signifies the beginning of a frame, i.e. More...
|
|
virtual void | _beginGeometryCount (void) |
| The RenderSystem will keep a count of tris rendered, this resets the count. More...
|
|
void | _bindVao (GLContext *context, uint32 vao) |
| Bind VAO, context should be equal to current context, as VAOs are not shared. More...
|
|
void | _cleanupDepthBuffers (bool bCleanManualBuffers=true) |
| Removes all depth buffers. More...
|
|
void | _completeDeferredVaoFboDestruction () |
| Complete destruction of VAOs and FBOs deferred while creator context was not current. More...
|
|
void | _convertProjectionMatrix (const Matrix4 &matrix, Matrix4 &dest, bool) |
| Converts a uniform projection matrix to suitable for this render system. More...
|
|
void | _copyContentsToMemory (Viewport *vp, const Box &src, const PixelBox &dst, RenderWindow::FrameBuffer buffer) |
| Copies the current contents of the render target to a pixelbox. 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...
|
|
uint32 | _createVao () |
| Create VAO on current context. More...
|
|
void | _destroyDepthBuffer (RenderTarget *pRenderWnd) |
|
void | _destroyFbo (GLContext *context, uint32 fbo) |
| Destroy FBO immediately or defer if it was created on other context. More...
|
|
void | _destroyVao (GLContext *context, uint32 vao) |
| Destroy VAO immediately or defer if it was created on other context. More...
|
|
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) |
| Ends rendering of a frame to the current viewport. More...
|
|
virtual unsigned int | _getBatchCount (void) const |
| Reports the number of batches rendered since the last _beginGeometryCount call. More...
|
|
virtual CullingMode | _getCullingMode (void) const |
|
GLContext * | _getCurrentContext () |
| Returns the current context. More...
|
|
const String & | _getDefaultViewportMaterialScheme (void) const |
| Returns the default material scheme used by the render system. More...
|
|
void | _getDepthStencilFormatFor (PixelFormat 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...
|
|
GLContext * | _getMainContext () |
| Returns the main context. More...
|
|
GLES2StateCacheManager * | _getStateCacheManager () |
|
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") |
| Start up the renderer using the settings selected (Or the defaults if none have been selected). More...
|
|
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) |
| Builds an orthographic projection matrix suitable for this render system. More...
|
|
void | _makeProjectionMatrix (const Radian &fovy, Real aspect, Real nearPlane, Real farPlane, Matrix4 &dest, bool forGpuProgram=false) |
| Builds a perspective projection matrix suitable for this render system. More...
|
|
void | _makeProjectionMatrix (Real left, Real right, Real bottom, Real top, Real nearPlane, Real farPlane, Matrix4 &dest, bool forGpuProgram=false) |
| Builds a perspective projection matrix for the case when frustum is not centered around camera. More...
|
|
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) |
| Render something to the active viewport. More...
|
|
virtual void | _renderUsingReadBackAsTexture (unsigned int secondPass, Ogre::String variableName, unsigned int StartSlot) |
|
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...
|
|
virtual void | _setBindingType (TextureUnitState::BindingType bindigType) |
| Set texture unit binding type. More...
|
|
void | _setColourBufferWriteEnabled (bool red, bool green, bool blue, bool alpha) |
| Sets whether or not colour buffer writing is enabled, and for which channels. More...
|
|
virtual void | _setComputeTexture (size_t unit, const TexturePtr &tex) |
|
void | _setCullingMode (CullingMode mode) |
| Sets the culling mode for the render system based on the 'vertex winding'. More...
|
|
void | _setDepthBias (float constantBias, float slopeScaleBias) |
| Sets the depth bias, NB you should use the Material version of this. More...
|
|
void | _setDepthBufferCheckEnabled (bool enabled=true) |
| Sets whether or not the depth buffer check is performed before a pixel write. More...
|
|
void | _setDepthBufferFunction (CompareFunction func=CMPF_LESS_EQUAL) |
| Sets the comparison function for the depth buffer check. More...
|
|
void | _setDepthBufferParams (bool depthTest=true, bool depthWrite=true, CompareFunction depthFunction=CMPF_LESS_EQUAL) |
| Sets the mode of operation for depth buffer tests from this point onwards. More...
|
|
void | _setDepthBufferWriteEnabled (bool enabled=true) |
| Sets whether or not the depth buffer is updated after a pixel write. More...
|
|
virtual void | _setFog (FogMode mode=FOG_NONE, const ColourValue &colour=ColourValue::White, Real expDensity=1.0, Real linearStart=0.0, Real linearEnd=1.0) |
| Sets the fogging mode for future geometry. More...
|
|
virtual void | _setGeometryTexture (size_t unit, const TexturePtr &tex) |
|
virtual void | _setPointParameters (Real size, bool attenuationEnabled, Real constant, Real linear, Real quadratic, Real minSize, Real maxSize) |
| Sets the size of points and how they are attenuated with distance. More...
|
|
virtual void | _setPointSpritesEnabled (bool enabled) |
| Sets whether or not rendering points using OT_POINT_LIST will render point sprites (textured quads) or plain points. More...
|
|
void | _setPolygonMode (PolygonMode level) |
| Sets how to rasterise triangles, as points, wireframe or solid polys. More...
|
|
virtual void | _setProjectionMatrix (const Matrix4 &m) |
| Sets the projection transform matrix. 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) |
|
virtual void | _setSurfaceParams (const ColourValue &ambient, const ColourValue &diffuse, const ColourValue &specular, const ColourValue &emissive, Real shininess, TrackVertexColourType tracking=TVC_NONE) |
| Sets the surface properties to be used for future rendering. More...
|
|
virtual void | _setTesselationDomainTexture (size_t unit, const TexturePtr &tex) |
|
virtual void | _setTesselationHullTexture (size_t unit, const TexturePtr &tex) |
|
void | _setTexture (size_t unit, bool enabled, const TexturePtr &tex) |
| Sets the texture to bind to a given texture unit. More...
|
|
virtual void | _setTexture (size_t unit, bool enabled, const String &texname) |
|
void | _setTextureAddressingMode (size_t stage, const TextureUnitState::UVWAddressingMode &uvw) |
| Sets the texture addressing mode for a texture unit. More...
|
|
virtual void | _setTextureBlendMode (size_t unit, const LayerBlendModeEx &bm) |
| Sets the texture blend modes from a TextureUnitState record. More...
|
|
void | _setTextureBorderColour (size_t stage, const ColourValue &colour) |
| Sets the texture border colour for a texture unit. More...
|
|
virtual void | _setTextureCoordCalculation (size_t unit, TexCoordCalcMethod m, const Frustum *frustum=0) |
| Sets a method for automatically calculating texture coordinates for a stage. More...
|
|
void | _setTextureCoordSet (size_t stage, size_t index) |
| Sets the texture coordinate set to use for a texture unit. More...
|
|
void | _setTextureLayerAnisotropy (size_t unit, unsigned int maxAnisotropy) |
| Sets the maximal anisotropy for the specified texture unit. More...
|
|
virtual void | _setTextureMatrix (size_t unit, const Matrix4 &xform) |
| Sets the texture coordinate transformation matrix for a texture unit. More...
|
|
void | _setTextureMipmapBias (size_t unit, float bias) |
| Sets the mipmap bias value for a given texture unit. 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) |
| Sets whether the compare func is enabled or not for this texture unit. More...
|
|
void | _setTextureUnitCompareFunction (size_t unit, CompareFunction function) |
| Sets the compare function to use for a given texture unit. More...
|
|
virtual void | _setTextureUnitFiltering (size_t unit, FilterOptions minFilter, FilterOptions magFilter, FilterOptions mipFilter) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
|
|
void | _setTextureUnitFiltering (size_t unit, FilterType ftype, FilterOptions filter) |
| Sets a single filter for a given texture unit. 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, geometry, compute, tesselation hull or tessellation domain sampler. More...
|
|
virtual void | _setViewMatrix (const Matrix4 &m) |
| Sets the view transform matrix. More...
|
|
void | _setViewport (Viewport *vp) |
| Sets the provided viewport as the active one for future rendering operations. More...
|
|
virtual void | _setWorldMatrices (const Matrix4 *m, unsigned short count) |
| Sets multiple world matrices (vertex blending). More...
|
|
virtual void | _setWorldMatrix (const Matrix4 &m) |
| Sets the world transform matrix. 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 (GLContext *context) |
| Switch GL context, dealing with involved internal cached states too. More...
|
|
void | _unregisterContext (GLContext *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...
|
|
virtual void | _useLights (const LightList &lights, unsigned short limit) |
| Tells the rendersystem to use the attached set of lights (and no others) up to the number specified (this allows the same list to be used with different count limits) More...
|
|
void | addClipPlane (const Plane &p) |
| Add a user clipping plane. More...
|
|
void | addClipPlane (Real A, Real B, Real C, Real D) |
| Add a user clipping plane. More...
|
|
void | addListener (Listener *l) |
| Adds a listener to the custom events that this render system can raise. More...
|
|
bool | areFixedFunctionLightsInViewSpace () const |
| Are fixed-function lights provided in view space? Affects optimisation. More...
|
|
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...
|
|
bool | checkExtension (const String &ext) const |
|
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...
|
|
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 |
|
HardwareOcclusionQuery * | createHardwareOcclusionQuery (void) |
| Create an object for performing hardware occlusion queries. More...
|
|
virtual MultiRenderTarget * | createMultiRenderTarget (const String &name) |
| Create a MultiRenderTarget, which is a render target that renders to multiple RenderTextures at once. More...
|
|
virtual RenderSystemCapabilities * | createRenderSystemCapabilities () const |
| Query the real capabilities of the GPU and driver in the 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 (const String &name) |
| Destroys a render window. More...
|
|
virtual RenderTarget * | detachRenderTarget (const String &name) |
| Detaches the render target with the passed name from the render system and returns a pointer to it. More...
|
|
virtual void | endProfileEvent (void) |
| Ends the currently active GPU profiling event. More...
|
|
const RenderSystemCapabilities * | getCapabilities (void) const |
| Gets the capabilities of the render system. More...
|
|
VertexElementType | getColourVertexElementType (void) const |
| Get the native VertexElementType for a compact 32-bit colour value for this rendersystem. More...
|
|
ConfigOptionMap & | getConfigOptions (void) |
| Returns the details of this API's configuration options. More...
|
|
virtual void | getCustomAttribute (const String &name, void *pData) |
| Gets a custom (maybe platform-specific) attribute. More...
|
|
unsigned int | getDisplayMonitorCount () const |
| Gets the number of display monitors. More...
|
|
const DriverVersion & | getDriverVersion (void) const |
| Returns the driver version. More...
|
|
virtual String | getErrorDescription (long errorNumber) const |
| Returns a description of an error code. More...
|
|
bool | getFixedPipelineEnabled (void) const |
| Returns true if fixed pipeline rendering is enabled on the system. More...
|
|
HardwareVertexBufferSharedPtr | getGlobalInstanceVertexBuffer () const |
| Returns the global instance vertex buffer. More...
|
|
VertexDeclaration * | getGlobalInstanceVertexBufferVertexDeclaration () 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...
|
|
GLES2Support * | getGLSupportRef () |
|
Real | getHorizontalTexelOffset (void) |
| Returns the horizontal texel offset value required for mapping texel origins to pixel origins in this rendersystem. More...
|
|
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...
|
|
RenderSystemCapabilities * | getMutableCapabilities () |
| Get a pointer to the current capabilities being used by the RenderSystem. More...
|
|
const String & | getName (void) const |
| Returns the name of the rendering system. More...
|
|
uint16 | getNativeShadingLanguageVersion () const |
| Gets the native shading language version for this render system. More...
|
|
const StringVector & | getRenderSystemEvents (void) const |
| Gets a list of the rendersystem specific events that this rendersystem can raise. More...
|
|
RenderTarget * | getRenderTarget (const String &name) |
| Returns a pointer to the render target with the passed name, or NULL if that render target cannot be found. More...
|
|
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 |
| Determines if the system has anisotropic mip map filter support. More...
|
|
bool | hasMinGLVersion (int major, int minor) const |
|
void | initialiseContext (RenderWindow *primary) |
|
void | initialiseFromRenderSystemCapabilities (RenderSystemCapabilities *caps, RenderTarget *primary) |
| Initialize the render system from the capabilities. More...
|
|
bool | isGpuProgramBound (GpuProgramType gptype) |
| Returns whether or not a Gpu program of the given type is currently bound. More...
|
|
virtual bool | isStaticBufferLockable () const |
| Returns whether under the current render system buffers marked as TU_STATIC can be locked for update. More...
|
|
virtual void | markProfileEvent (const String &eventName) |
| Marks an instantaneous event for graphics profilers. More...
|
|
| OGRE_MUTEX (mThreadInitMutex) |
|
void | postExtraThreadsStarted () |
| Tell the rendersystem to perform any tasks it needs to directly after other threads which might access the rendering API are registered. More...
|
|
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) |
| Restart the renderer (normally following a change in settings). More...
|
|
void | removeListener (Listener *l) |
| Remove a listener to the custom events that this render system can raise. More...
|
|
void | resetClipPlanes () |
| Clears the user clipping region. More...
|
|
virtual void | setAmbientLight (float r, float g, float b) |
| Sets the colour & strength of the ambient (global directionless) light in the world. 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) |
| Sets an option for this API. More...
|
|
virtual void | setCurrentPassIterationCount (const size_t count) |
| set the current multi pass count value. More...
|
|
void | setDepthBufferFor (RenderTarget *renderTarget) |
| Retrieves an existing DepthBuffer or creates a new one suited for the given RenderTarget and sets it. More...
|
|
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...
|
|
virtual bool | setDrawBuffer (ColourBufferType colourBuffer) |
| Sets the colour buffer that the render system will to draw. 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...
|
|
void | setInvertVertexWinding (bool invert) |
| Sets whether or not vertex windings set should be inverted; this can be important for rendering reflections. More...
|
|
virtual void | setLightingEnabled (bool enabled) |
| Sets whether or not dynamic lighting is enabled. More...
|
|
virtual void | setNormaliseNormals (bool normalise) |
| Sets whether or not normals are to be automatically normalised. More...
|
|
void | setScissorTest (bool enabled, size_t left=0, size_t top=0, size_t right=800, size_t bottom=600) |
| Sets the 'scissor region' i.e. More...
|
|
virtual void | setShadingType (ShadeOptions so) |
| Sets the type of light shading required (default = Gouraud). 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, bool readBackAsTexture=false) |
| Determines if this system supports hardware accelerated stencil buffer. More...
|
|
void | setStencilCheckEnabled (bool enabled) |
| Turns depth-stencil buffer checking on or off. More...
|
|
virtual void | setVertexBufferBinding (VertexBufferBinding *binding) |
| Sets the current vertex buffer binding state. More...
|
|
virtual void | setVertexDeclaration (VertexDeclaration *decl) |
| Sets the current vertex declaration, ie the source of vertex data. More...
|
|
void | setWBufferEnabled (bool enabled) |
| Sets whether or not W-buffers are enabled if they are available for this renderer. More...
|
|
void | shutdown (void) |
| Shutdown the renderer and cleanup resources. 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...
|
|
void | useCustomRenderSystemCapabilities (RenderSystemCapabilities *capabilities) |
| Force the render system to use the special capabilities. More...
|
|
String | validateConfigOptions (void) |
| Validates the options set for the rendering system, returning a message if there are problems. More...
|
|