Implementation of GL as a rendering system. More...
#include <OgreGLRenderSystem.h>
Public Types | |
typedef MapIterator < Ogre::RenderTargetMap > | RenderTargetIterator |
Iterator over RenderTargets. More... | |
Public Member Functions | |
GLRenderSystem () | |
~GLRenderSystem () | |
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... | |
bool | _createRenderWindows (const RenderWindowDescriptionList &renderWindowDescriptions, RenderWindowList &createdWindows) |
Creates multiple rendering windows. 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) |
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 |
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... | |
GLContext * | _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 Window") |
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) |
See RenderSystem. 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) |
See RenderSystem. More... | |
void | _setSceneBlendingOperation (SceneBlendOperation op) |
See RenderSystem. More... | |
void | _setSeparateSceneBlending (SceneBlendFactor sourceFactor, SceneBlendFactor destFactor, SceneBlendFactor sourceFactorAlpha, SceneBlendFactor destFactorAlpha, SceneBlendOperation op, SceneBlendOperation alphaOp) |
See RenderSystem. More... | |
void | _setSeparateSceneBlendingOperation (SceneBlendOperation op, SceneBlendOperation alphaOp) |
See RenderSystem. More... | |
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 | _setTextureUnitFiltering (size_t unit, FilterType ftype, FilterOptions filter) |
See RenderSystem. More... | |
virtual void | _setTextureUnitFiltering (size_t unit, FilterOptions minFilter, FilterOptions magFilter, FilterOptions mipFilter) |
Sets the filtering options 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 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 (bool waitForVsync=true) |
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... | |
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) |
See RenderSystem. More... | |
void | bindGpuProgramParameters (GpuProgramType gptype, GpuProgramParametersSharedPtr params, uint16 variabilityMask) |
See RenderSystem. More... | |
void | bindGpuProgramPassIterationParameters (GpuProgramType gptype) |
See RenderSystem. 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... | |
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 |
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 RenderTarget * | detachRenderTarget (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 RenderSystemCapabilities * | getCapabilities (void) const |
Gets the capabilities of the render system. More... | |
VertexElementType | getColourVertexElementType (void) const |
See RenderSystem. More... | |
ConfigOptionMap & | getConfigOptions (void) |
See RenderSystem. More... | |
unsigned int | getDisplayMonitorCount () const |
Gets the number of display monitors. More... | |
virtual const DriverVersion & | getDriverVersion (void) const |
Returns the driver version. More... | |
String | getErrorDescription (long errorNumber) const |
See RenderSystem. 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... | |
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... | |
RenderSystemCapabilities * | getMutableCapabilities () |
Get a pointer to the current capabilities being used by the RenderSystem. More... | |
const String & | getName (void) const |
See RenderSystem. More... | |
virtual const StringVector & | getRenderSystemEvents (void) const |
Gets a list of the rendersystem specific events that this rendersystem can raise. More... | |
virtual 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... | |
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 | getWaitForVerticalBlank (void) const |
Returns true if the system is synchronising frames with the monitor vertical blank. More... | |
bool | getWBufferEnabled (void) const |
Returns true if the renderer will try to use W-buffers when avalible. More... | |
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 void | markProfileEvent (const String &eventName) |
Marks an instantaneous event for graphics profilers. More... | |
void | operator delete (void *ptr) |
void | operator delete (void *ptr, void *) |
void | operator delete (void *ptr, const char *, int, const char *) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *ptr, const char *, int, const char *) |
void * | operator new (size_t sz, const char *file, int line, const char *func) |
operator new, with debug line info More... | |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, void *ptr) |
placement operator new More... | |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info More... | |
void * | operator new[] (size_t sz) |
void | 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 | 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 | 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 | 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 mask=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 | setWaitForVerticalBlank (bool enabled) |
Defines whether or now fullscreen render windows wait for the vertical blank before flipping buffers. 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) |
See RenderSystem. 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... | |
Protected Types | |
typedef list < HardwareOcclusionQuery * > ::type | HardwareOcclusionQueryList |
typedef list< Listener * >::type | ListenerList |
Protected Member Functions | |
bool | activateGLTextureUnit (size_t unit) |
void | bindVertexElementToGpu (const VertexElement &elem, HardwareVertexBufferSharedPtr vertexBuffer, const size_t vertexStart, vector< GLuint >::type &attribsBound, vector< GLuint >::type &instanceAttribsBound) |
virtual void | fireEvent (const String &name, const NameValuePairList *params=0) |
Internal method for firing a rendersystem event. More... | |
void | setClipPlanesImpl (const PlaneList &clipPlanes) |
Internal method used to set the underlying clip planes when needed. More... | |
bool | updatePassIterationRenderState (void) |
updates pass iteration rendering state including bound gpu program parameter pass iteration auto constant entry More... | |
Private Types | |
typedef list< GLContext * >::type | GLContextList |
Private Member Functions | |
GLfloat | _getCurrentAnisotropy (size_t unit) |
Internal method for anisotropy validation. More... | |
GLint | convertCompareFunction (CompareFunction func) const |
GLint | convertStencilOp (StencilOperation op, bool invert=false) const |
GLint | getBlendMode (SceneBlendFactor ogreBlend) const |
GLuint | getCombinedMinMipFilter (void) const |
GLint | getTextureAddressingMode (TextureUnitState::TextureAddressingMode tam) const |
void | initConfigOptions (void) |
void | initialiseContext (RenderWindow *primary) |
void | initInputDevices (void) |
void | makeGLMatrix (GLfloat gl_matrix[16], const Matrix4 &m) |
void | processInputDevices (void) |
void | setGLLight (size_t index, Light *lt) |
void | setGLLightPositionDirection (Light *lt, GLenum lightindex) |
Internal method to set pos / direction of a light. More... | |
void | setLights () |
Implementation of GL as a rendering system.
Definition at line 46 of file OgreGLRenderSystem.h.
|
private |
Definition at line 130 of file OgreGLRenderSystem.h.
|
protectedinherited |
Definition at line 1553 of file OgreRenderSystem.h.
|
protectedinherited |
Definition at line 1550 of file OgreRenderSystem.h.
|
inherited |
Iterator over RenderTargets.
Definition at line 558 of file OgreRenderSystem.h.
Ogre::GLRenderSystem::GLRenderSystem | ( | ) |
Ogre::GLRenderSystem::~GLRenderSystem | ( | ) |
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtualinherited |
The RenderSystem will keep a count of tris rendered, this resets the count.
|
inherited |
Removes all depth buffers.
Should be called on device lost and shutdown
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtual |
Creates a DepthBuffer that can be attached to the specified RenderTarget.
Implements 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:
|
Implements Ogre::RenderSystem.
|
virtual |
Creates multiple rendering windows.
renderWindowDescriptions | Array 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. |
createdWindows | This array will hold the created render windows. |
Reimplemented from Ogre::RenderSystem.
|
virtualinherited |
Turns off a texture unit.
Reimplemented in Ogre::D3D11RenderSystem, and Ogre::D3D9RenderSystem.
|
virtualinherited |
Disables all texture units from the given unit upwards.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtualinherited |
Reports the number of batches rendered since the last _beginGeometryCount call.
|
virtualinherited |
|
private |
Internal method for anisotropy validation.
|
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, 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::GLRenderSystem::_getDepthStencilFormatFor | ( | GLenum | internalColourFormat, |
GLenum * | depthFormat, | ||
GLenum * | stencilFormat | ||
) |
Mimics D3D9RenderSystem::_getDepthStencilFormatFor, if no FBO RTT manager, outputs GL_NONE.
|
virtualinherited |
Reports the number of tris rendered since the last _beginGeometryCount call.
|
inline |
Returns the main context.
Definition at line 514 of file OgreGLRenderSystem.h.
|
virtualinherited |
Reports the number of vertices passed to the renderer since the last _beginGeometryCount call.
|
virtualinherited |
Get the current active viewport for rendering.
|
virtual |
See RenderSystem.
Reimplemented from Ogre::RenderSystem.
|
virtualinherited |
Utility method for initialising all render targets attached to this rendering system.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
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::GLRenderSystem::_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.
|
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.
|
virtual |
See RenderSystem.
Reimplemented from Ogre::RenderSystem.
|
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.
context | the render system context, as returned by _pauseFrame |
Reimplemented in Ogre::D3D9RenderSystem.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtual |
Set current render target to target, enabling its GL context if needed.
Implements Ogre::RenderSystem.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
void Ogre::GLRenderSystem::_setSceneBlendingOperation | ( | SceneBlendOperation | op | ) |
See RenderSystem.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
void Ogre::GLRenderSystem::_setSeparateSceneBlendingOperation | ( | SceneBlendOperation | op, |
SceneBlendOperation | alphaOp | ||
) |
See RenderSystem.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtualinherited |
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 |
texname | The name of the texture to use - this should have already been loaded with TextureManager::load. |
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtualinherited |
Notify the rendersystem that it should adjust texture projection to be relative to a different origin.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtualinherited |
Sets the filtering options for a given texture unit.
unit | The texture unit to set the filtering options for |
minFilter | The filter used when a texture is reduced in size |
magFilter | The filter used when a texture is magnified |
mipFilter | The filter used between mipmap levels, FO_NONE disables mipmapping |
|
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.
|
virtualinherited |
Binds a texture to a vertex sampler.
Reimplemented in Ogre::D3D11RenderSystem, and Ogre::D3D9RenderSystem.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtualinherited |
Sets multiple world matrices (vertex blending).
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtualinherited |
Internal method for swapping all the buffers on all render targets, if _updateAllRenderTargets was called with a 'false' parameter.
void Ogre::GLRenderSystem::_switchContext | ( | GLContext * | context | ) |
Switch GL context, dealing with involved internal cached states too.
void Ogre::GLRenderSystem::_unregisterContext | ( | GLContext * | 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.
|
virtualinherited |
Internal method for updating all render targets attached to this rendering system.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
protected |
|
virtualinherited |
Add a user clipping plane.
Add a user clipping plane.
|
virtualinherited |
Adds a listener to the custom events that this render system can raise.
|
inlinevirtual |
See RenderSystem.
Reimplemented from Ogre::RenderSystem.
Definition at line 259 of file OgreGLRenderSystem.h.
|
virtualinherited |
Attaches the passed render target to the render system.
|
virtual |
This marks the beginning of an event for GPU profiling.
Implements Ogre::RenderSystem.
|
virtual |
See RenderSystem.
Reimplemented from Ogre::RenderSystem.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
protected |
|
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.
|
virtualinherited |
Generates a packed data version of the passed in ColourValue suitable for use as with this RenderSystem.
colour | The colour to convert |
pDest | Pointer to location to put the result. |
|
private |
|
private |
|
virtual |
Create an object for performing hardware occlusion queries.
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.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtualinherited |
Destroy a hardware occlusion query object.
|
virtualinherited |
Destroys a render target of any sort.
Reimplemented in Ogre::D3D11RenderSystem, and Ogre::D3D9RenderSystem.
|
virtualinherited |
Destroys a render texture.
void Ogre::GLRenderSystem::destroyRenderWindow | ( | RenderWindow * | pWin | ) |
See RenderSystem.
|
virtualinherited |
Destroys a render window.
|
virtualinherited |
Detaches the render target with the passed name from the render system and returns a pointer to it.
Reimplemented in Ogre::D3D11RenderSystem, and Ogre::D3D9RenderSystem.
void Ogre::GLRenderSystem::enableClipPlane | ( | ushort | index, |
bool | enable | ||
) |
See RenderSystem.
|
virtual |
Ends the currently active GPU profiling event.
Implements Ogre::RenderSystem.
|
protectedvirtualinherited |
Internal method for firing a rendersystem event.
|
private |
|
inlineinherited |
Gets the capabilities of the render system.
Definition at line 1193 of file OgreRenderSystem.h.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
private |
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtual |
Gets the number of display monitors.
Implements Ogre::RenderSystem.
|
inlinevirtualinherited |
Returns the driver version.
Definition at line 1198 of file OgreRenderSystem.h.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
inherited |
Returns the global instance vertex buffer.
|
inherited |
Gets vertex declaration for the global vertex buffer for the global instancing.
|
inherited |
Gets the global number of instances.
|
virtual |
Returns the horizontal texel offset value required for mapping texel origins to pixel origins in this rendersystem.
Implements Ogre::RenderSystem.
|
virtualinherited |
Indicates whether or not the vertex windings set will be inverted for the current render (e.g.
reflections)
|
virtual |
Gets the maximum (farthest) depth value to be used when rendering using identity transforms.
Implements Ogre::RenderSystem.
|
virtual |
Gets the minimum (closest) depth value to be used when rendering using identity transforms.
Implements Ogre::RenderSystem.
|
inlineinherited |
Get a pointer to the current capabilities being used by the RenderSystem.
Definition at line 226 of file OgreRenderSystem.h.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
inlinevirtualinherited |
Gets a list of the rendersystem specific events that this rendersystem can raise.
Definition at line 1406 of file OgreRenderSystem.h.
|
virtualinherited |
Returns a pointer to the render target with the passed name, or NULL if that render target cannot be found.
|
inlinevirtualinherited |
Returns a specialised MapIterator over all render targets attached to the RenderSystem.
Definition at line 561 of file OgreRenderSystem.h.
|
private |
|
virtual |
Returns the vertical texel offset value required for mapping texel origins to pixel origins in this rendersystem.
Implements Ogre::RenderSystem.
|
inherited |
Returns true if the system is synchronising frames with the monitor vertical blank.
|
inherited |
Returns true if the renderer will try to use W-buffers when avalible.
|
private |
|
private |
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
private |
|
virtualinherited |
Returns whether or not a Gpu program of the given type is currently bound.
|
private |
|
virtual |
Marks an instantaneous event for graphics profilers.
This is equivalent to calling
Implements Ogre::RenderSystem.
|
inlineinherited |
Definition at line 95 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 101 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 107 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 112 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 118 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
operator new, with debug line info
Definition at line 67 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 72 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
placement operator new
Definition at line 78 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
array operator new, with debug line info
Definition at line 85 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 90 of file OgreMemoryAllocatedObject.h.
|
virtual |
Implements Ogre::RenderSystem.
|
virtual |
Tell the rendersystem to perform any prep tasks it needs to directly before other threads which might access the rendering API are registered.
Implements Ogre::RenderSystem.
|
private |
|
virtual |
Register the an additional thread which may make calls to rendersystem-related objects.
Implements Ogre::RenderSystem.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtualinherited |
Remove a listener to the custom events that this render system can raise.
|
virtualinherited |
Clears the user clipping region.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
See RenderSystem.
|
virtualinherited |
Sets the user clipping region.
|
protectedvirtual |
Internal method used to set the underlying clip planes when needed.
Implements Ogre::RenderSystem.
See RenderSystem.
Implements Ogre::RenderSystem.
|
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.
count | Number of times to render the current state. |
Definition at line 1341 of file OgreRenderSystem.h.
|
virtualinherited |
Retrieves an existing DepthBuffer or creates a new one suited for the given RenderTarget and sets it.
|
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
derive | True to tell the RS to derive this automatically |
baseValue | The base value to which the multiplier should be added |
multiplier | The amount of depth bias to apply per iteration |
slopeScale | The constant slope scale bias for completeness |
Definition at line 1352 of file OgreRenderSystem.h.
|
private |
|
private |
Internal method to set pos / direction of a light.
|
inherited |
Sets the global instance vertex buffer.
|
inherited |
Sets vertex declaration for the global vertex buffer for the global instancing.
|
inherited |
Sets the global number of instances.
|
virtualinherited |
Sets whether or not vertex windings set should be inverted; this can be important for rendering reflections.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
private |
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
inherited |
Defines whether or now fullscreen render windows wait for the vertical blank before flipping buffers.
enabled | If true, the system waits for vertical blanks - quality over speed. If false it doesn't - speed over quality. |
|
inherited |
Sets whether or not W-buffers are enabled if they are available for this renderer.
enabled | If 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. |
|
virtual |
See RenderSystem.
Reimplemented from Ogre::RenderSystem.
|
virtual |
See RenderSystem.
Reimplemented from Ogre::RenderSystem.
|
virtual |
Unregister an additional thread which may make calls to rendersystem-related objects.
Implements Ogre::RenderSystem.
|
protectedinherited |
updates pass iteration rendering state including bound gpu program parameter pass iteration auto constant entry
|
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)
capabilities | has to be a subset of the real capabilities and the caller is responsible for deallocating capabilities. |
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
protectedinherited |
Definition at line 1488 of file OgreRenderSystem.h.
|
protectedinherited |
Definition at line 1487 of file OgreRenderSystem.h.
|
protectedinherited |
The Active render target.
Definition at line 1483 of file OgreRenderSystem.h.
|
private |
Definition at line 141 of file OgreGLRenderSystem.h.
|
protectedinherited |
The Active GPU programs and gpu program parameters.
Definition at line 1486 of file OgreRenderSystem.h.
|
protectedinherited |
Definition at line 1497 of file OgreRenderSystem.h.
|
private |
Definition at line 109 of file OgreGLRenderSystem.h.
|
private |
List of background thread contexts.
Definition at line 132 of file OgreGLRenderSystem.h.
|
protectedinherited |
Definition at line 1505 of file OgreRenderSystem.h.
|
protectedinherited |
Definition at line 1561 of file OgreRenderSystem.h.
|
protectedinherited |
Definition at line 1563 of file OgreRenderSystem.h.
|
private |
Store last colour write state.
Definition at line 94 of file OgreGLRenderSystem.h.
|
protectedinherited |
Definition at line 1499 of file OgreRenderSystem.h.
|
protectedinherited |
Definition at line 1567 of file OgreRenderSystem.h.
|
private |
Definition at line 129 of file OgreGLRenderSystem.h.
|
private |
Definition at line 123 of file OgreGLRenderSystem.h.
|
private |
Definition at line 124 of file OgreGLRenderSystem.h.
|
private |
Definition at line 118 of file OgreGLRenderSystem.h.
|
protectedinherited |
number of times to render the current state
Definition at line 1518 of file OgreRenderSystem.h.
|
protectedinherited |
Definition at line 1519 of file OgreRenderSystem.h.
|
private |
Definition at line 122 of file OgreGLRenderSystem.h.
|
protectedinherited |
DepthBuffers to be attached to render targets.
Definition at line 1476 of file OgreRenderSystem.h.
|
private |
Store last depth write state.
Definition at line 90 of file OgreGLRenderSystem.h.
|
protectedinherited |
Whether to update the depth bias per render call.
Definition at line 1521 of file OgreRenderSystem.h.
|
protectedinherited |
Definition at line 1522 of file OgreRenderSystem.h.
|
protectedinherited |
Definition at line 1523 of file OgreRenderSystem.h.
|
protectedinherited |
Definition at line 1524 of file OgreRenderSystem.h.
|
protectedinherited |
Texture units from this upwards are disabled.
Definition at line 1515 of file OgreRenderSystem.h.
|
protectedinherited |
Definition at line 1577 of file OgreRenderSystem.h.
|
protectedinherited |
Definition at line 1551 of file OgreRenderSystem.h.
|
protectedinherited |
List of names of events this rendersystem may raise.
Definition at line 1545 of file OgreRenderSystem.h.
|
protectedinherited |
Definition at line 1506 of file OgreRenderSystem.h.
|
private |
Number of fixed-function texture units.
Definition at line 74 of file OgreGLRenderSystem.h.
|
protectedinherited |
Definition at line 1558 of file OgreRenderSystem.h.
|
protectedinherited |
Definition at line 1557 of file OgreRenderSystem.h.
|
private |
Check if the GL system has already been initialised.
Definition at line 112 of file OgreGLRenderSystem.h.
|
protectedinherited |
a global vertex buffer for global instancing
Definition at line 1527 of file OgreRenderSystem.h.
|
protectedinherited |
a vertex declaration for the global vertex buffer for the global instancing
Definition at line 1529 of file OgreRenderSystem.h.
|
protectedinherited |
the number of global instances (this number will be multiply by the render op instance number)
Definition at line 1531 of file OgreRenderSystem.h.
|
private |
Definition at line 116 of file OgreGLRenderSystem.h.
|
private |
GL support class, used for creating windows etc.
Definition at line 103 of file OgreGLRenderSystem.h.
|
private |
Definition at line 115 of file OgreGLRenderSystem.h.
|
private |
Definition at line 114 of file OgreGLRenderSystem.h.
|
protectedinherited |
Definition at line 1554 of file OgreRenderSystem.h.
|
protectedinherited |
Definition at line 1512 of file OgreRenderSystem.h.
|
private |
Definition at line 56 of file OgreGLRenderSystem.h.
|
private |
Definition at line 127 of file OgreGLRenderSystem.h.
|
protectedinherited |
Saved manual colour blends.
Definition at line 1510 of file OgreRenderSystem.h.
|
private |
Last min & mip filtering options, so we can combine them.
Definition at line 64 of file OgreGLRenderSystem.h.
|
private |
Definition at line 65 of file OgreGLRenderSystem.h.
|
protectedinherited |
The render targets, ordered by priority.
Definition at line 1481 of file OgreRenderSystem.h.
|
protectedinherited |
Used to store the capabilities of the graphics card.
Definition at line 1566 of file OgreRenderSystem.h.
|
private |
Definition at line 145 of file OgreGLRenderSystem.h.
|
private |
Definition at line 146 of file OgreGLRenderSystem.h.
|
protectedinherited |
The render targets.
Definition at line 1479 of file OgreRenderSystem.h.
|
private |
Manager object for creating render textures.
Direct render to texture via GL_EXT_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 139 of file OgreGLRenderSystem.h.
|
private |
Store last stencil mask state.
Definition at line 92 of file OgreGLRenderSystem.h.
|
private |
Rendering loop control.
Definition at line 50 of file OgreGLRenderSystem.h.
|
protectedinherited |
Definition at line 1579 of file OgreRenderSystem.h.
|
protectedinherited |
Definition at line 1580 of file OgreRenderSystem.h.
|
private |
What texture coord set each texture unit is using.
Definition at line 68 of file OgreGLRenderSystem.h.
|
protectedinherited |
Definition at line 1494 of file OgreRenderSystem.h.
|
private |
Definition at line 61 of file OgreGLRenderSystem.h.
|
private |
Holds texture type settings for every stage.
Definition at line 71 of file OgreGLRenderSystem.h.
|
private |
Definition at line 108 of file OgreGLRenderSystem.h.
|
protectedinherited |
Definition at line 1568 of file OgreRenderSystem.h.
|
protectedinherited |
Definition at line 1507 of file OgreRenderSystem.h.
|
protectedinherited |
Definition at line 1556 of file OgreRenderSystem.h.
|
private |
View matrix to set world against.
Definition at line 59 of file OgreGLRenderSystem.h.
|
protectedinherited |
Definition at line 1501 of file OgreRenderSystem.h.
|
protectedinherited |
Definition at line 1502 of file OgreRenderSystem.h.
|
protectedinherited |
Definition at line 1503 of file OgreRenderSystem.h.
|
private |
Definition at line 60 of file OgreGLRenderSystem.h.