![]() |
OGRE 1.12.10
Object-Oriented Graphics Rendering Engine
|
Implementation of GL ES 2.x as a rendering system. More...
Classes | |
class | Ogre::GLES2RenderSystem |
Implementation of GL ES 2.x as a rendering system. More... | |
Implementation of GL ES 2.x as a rendering system.
Ogre::GLES2RenderSystem::GLES2RenderSystem | ( | ) |
|
virtual |
Returns the name of the rendering system.
Implements Ogre::RenderSystem.
|
overridevirtual |
Start up the renderer using the settings selected (Or the defaults if none have been selected).
Called by Root::setRenderSystem. Shouldn't really be called directly, although this can be done if the app wants to.
Reimplemented from Ogre::RenderSystem.
|
virtual |
Query the real capabilities of the GPU and driver in the RenderSystem.
Implements Ogre::RenderSystem.
|
virtual |
Initialize the render system from the capabilities.
Implements Ogre::RenderSystem.
Shutdown the renderer and cleanup resources.
Reimplemented from Ogre::RenderSystem.
|
virtual |
Creates a new rendering window.
name | The name of the window. Used in other methods later like setRenderTarget and getRenderTarget. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
width | The width of the new window. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
height | The height of the new window. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fullScreen | Specify true to make the window full screen without borders, title bar or menu bar. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
miscParams | A 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:
|
Reimplemented from Ogre::RenderSystem.
|
virtual |
Creates a DepthBuffer that can be attached to the specified RenderTarget.
Implements Ogre::RenderSystem.
|
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.
Destroys a render window.
Reimplemented from Ogre::RenderSystem.
|
virtual |
Sets the texture to bind to a given texture unit.
User processes would not normally call this direct unless rendering primitives themselves.
unit | The index of the texture unit to modify. Multitexturing hardware can support multiple units (see RenderSystemCapabilites::getNumTextureUnits) |
enabled | Boolean to turn the unit on/off |
texPtr | Pointer to the texture to use. |
Implements Ogre::RenderSystem.
set the sampler settings for the given texture unit
Implements Ogre::RenderSystem.
|
virtual |
Reimplemented from Ogre::RenderSystem.
Set the line width when drawing as RenderOperation::OT_LINE_LIST/ RenderOperation::OT_LINE_STRIP.
width | only value of 1.0 might be supported. Check for RSC_WIDE_LINES. |
Reimplemented from Ogre::RenderSystem.
Sets the provided viewport as the active one for future rendering operations.
This viewport is aware of it's own camera and render target. Must be implemented by subclass.
vp | Pointer to the appropriate viewport. |
Implements Ogre::RenderSystem.
Ends rendering of a frame to the current viewport.
Implements Ogre::RenderSystem.
|
virtual |
Sets the culling mode for the render system based on the 'vertex winding'.
A typical way for the rendering engine to cull triangles is based on the 'vertex winding' of triangles. Vertex winding refers to the direction in which the vertices are passed or indexed to in the rendering operation as viewed from the camera, and will wither be clockwise or anticlockwise (that's 'counterclockwise' for you Americans out there ;) The default is CULL_CLOCKWISE i.e. that only triangles whose vertices are passed/indexed in anticlockwise order are rendered - this is a common approach and is used in 3D studio models for example. You can alter this culling mode if you wish but it is not advised unless you know what you are doing. You may wish to use the CULL_NONE option for mesh data that you cull yourself where the vertex winding is uncertain.
Implements Ogre::RenderSystem.
|
virtual |
Sets the mode of operation for depth buffer tests from this point onwards.
Sometimes you may wish to alter the behaviour of the depth buffer to achieve special effects. Because it's unlikely that you'll set these options for an entire frame, but rather use them to tweak settings between rendering objects, this is an internal method (indicated by the '_' prefix) which will be used by a SceneManager implementation rather than directly from the client application. If this method is never called the settings are automatically the same as the default parameters.
depthTest | If true, the depth buffer is tested for each pixel and the frame buffer is only updated if the depth function test succeeds. If false, no test is performed and pixels are always written. |
depthWrite | If true, the depth buffer is updated with the depth of the new pixel if the depth test succeeds. If false, the depth buffer is left unchanged even if a new pixel is written. |
depthFunction | Sets the function required for the depth test. |
Implements Ogre::RenderSystem.
Reimplemented from Ogre::RenderSystem.
Reimplemented from Ogre::RenderSystem.
|
virtual |
Reimplemented from Ogre::RenderSystem.
Sets the depth bias, NB you should use the Material version of this.
constantBias | The constant bias value, expressed as a value in homogeneous depth coordinates. |
slopeScaleBias | The bias value which is factored by the maximum slope of the polygon, see the description above. This is not supported by all cards. |
Implements Ogre::RenderSystem.
|
virtual |
Sets the global blending factors for combining subsequent renders with the existing frame contents.
Implements Ogre::RenderSystem.
|
virtual |
Sets how to rasterise triangles, as points, wireframe or solid polys.
Implements Ogre::RenderSystem.
Turns stencil buffer checking on or off.
Implements Ogre::RenderSystem.
|
virtual |
This method allows you to set all the stencil buffer parameters in one call.
Unlike other render states, stencilling is left for the application to turn on and off when it requires. This is because you are likely to want to change parameters between batches of arbitrary objects and control the ordering yourself. In order to batch things this way, you'll want to use OGRE's Compositor stencil poass or separate render queue groups and register a RenderQueueListener to get notifications between batches.
Implements Ogre::RenderSystem.
|
virtual |
Reimplemented from Ogre::RenderSystem.
|
virtual |
Reimplemented from Ogre::RenderSystem.
|
virtual |
Render something to the active viewport.
Low-level rendering interface to perform rendering operations. Unlikely to be used directly by client applications, since the SceneManager and various support classes will be responsible for calling this method. Can only be called between _beginScene and _endScene
op | A rendering operation instance, which contains details of the operation to be performed. |
Reimplemented from Ogre::RenderSystem.
Sets the 'scissor region' i.e.
the region of the target in which rendering can take place.
enabled | True to enable the scissor test, false to disable it. |
rect | The location of the corners of the rectangle, expressed in pixels. |
Implements Ogre::RenderSystem.
|
virtual |
Clears one or more frame buffers on the active render target.
buffers | Combination of one or more elements of FrameBufferType denoting which buffers are to be cleared |
colour | The colour to clear the colour buffer with, if enabled |
depth | The value to initialise the depth buffer with, if enabled |
stencil | The value to initialise the stencil buffer with, if enabled. |
Implements Ogre::RenderSystem.
|
virtual |
Create an object for performing hardware occlusion queries.
Implements Ogre::RenderSystem.
|
inline |
|
virtual |
Create VAO on current context.
Reimplemented from Ogre::GLRenderSystemCommon.
Bind VAO, context should be equal to current context, as VAOs are not shared
Reimplemented from Ogre::GLRenderSystemCommon.
Destroy VAO immediately or defer if it was created on other context.
Reimplemented from Ogre::GLRenderSystemCommon.
Destroy FBO immediately or defer if it was created on other context.
Reimplemented from Ogre::GLRenderSystemCommon.
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.
Implements Ogre::GLRenderSystemCommon.
Switch GL context, dealing with involved internal cached states too.
|
virtual |
One time initialization for the RenderState of a context.
Things that only need to be set once, like the LightingModel can be defined here.
Implements Ogre::GLRenderSystemCommon.
void Ogre::GLES2RenderSystem::initialiseContext | ( | RenderWindow * | primary | ) |
|
virtual |
Set current render target to target, enabling its GL context if needed.
Implements Ogre::RenderSystem.
GLint Ogre::GLES2RenderSystem::convertCompareFunction | ( | CompareFunction | func | ) | const |
GLint Ogre::GLES2RenderSystem::convertStencilOp | ( | StencilOperation | op, |
bool | invert = false |
||
) | const |
|
virtual |
Binds a given GpuProgram (but not the parameters).
Reimplemented from Ogre::RenderSystem.
|
virtual |
Unbinds GpuPrograms of a given GpuProgramType.
Reimplemented from Ogre::RenderSystem.
|
virtual |
Bind Gpu program parameters.
gptype | The type of program to bind the parameters to |
params | The parameters to bind |
variabilityMask | A mask of GpuParamVariability identifying which params need binding |
Implements Ogre::RenderSystem.
|
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.
func | The comparison function which must pass for a pixel to be written. |
value | The value to compare each pixels alpha value to (0-255) |
alphaToCoverage | Whether to enable alpha to coverage, if supported |
Implements Ogre::RenderSystem.
void Ogre::GLES2RenderSystem::_destroyDepthBuffer | ( | RenderTarget * | pRenderWnd | ) |
This marks the beginning of an event for GPU profiling.
Implements Ogre::RenderSystem.
Ends the currently active GPU profiling event.
Implements Ogre::RenderSystem.
Marks an instantaneous event for graphics profilers.
This is equivalent to calling
Implements Ogre::RenderSystem.
|
virtual |
Copies the current contents of the render target to a pixelbox.
Implements Ogre::GLRenderSystemCommon.