OGRE 2.1
Object-Oriented Graphics Rendering Engine
|
Defines the functionality of a 3D API. More...
#include <OgreRenderSystem.h>
Classes | |
class | Listener |
Defines a listener on the custom events that this render system can raise. More... | |
struct | RenderSystemContext |
Public Types | |
typedef MapIterator< Ogre::RenderTargetMap > | RenderTargetIterator |
Iterator over RenderTargets. | |
Public Member Functions | |
RenderSystem () | |
Default Constructor. | |
virtual | ~RenderSystem () |
Destructor. | |
virtual void | _applyObliqueDepthProjection (Matrix4 &matrix, const Plane &plane, bool forGpuProgram)=0 |
Update a perspective projection matrix to use 'oblique depth projection'. | |
virtual void | _beginFrame (void)=0 |
Signifies the beginning of a frame, i.e. | |
virtual void | _beginFrameOnce (void) |
Signifies the beginning of the main frame. | |
virtual void | _beginGeometryCount (void) |
The RenderSystem will keep a count of tris rendered, this resets the count. | |
virtual void | _bindTextureUavCS (uint32 slot, Texture *texture, ResourceAccess::ResourceAccess access, int32 mipmapLevel, int32 textureArrayIndex, PixelFormat pixelFormat)=0 |
Binds an UAV texture to a Compute Shader. | |
void | _cleanupDepthBuffers (bool bCleanManualBuffers=true) |
Removes all depth buffers. | |
virtual void | _convertProjectionMatrix (const Matrix4 &matrix, Matrix4 &dest, bool forGpuProgram=false)=0 |
Converts a uniform projection matrix to suitable for this render system. | |
virtual DepthBuffer * | _createDepthBufferFor (RenderTarget *renderTarget, bool exactMatchFormat)=0 |
Creates a DepthBuffer that can be attached to the specified RenderTarget. | |
virtual RenderWindow * | _createRenderWindow (const String &name, unsigned int width, unsigned int height, bool fullScreen, const NameValuePairList *miscParams=0)=0 |
Creates a new rendering window. | |
virtual bool | _createRenderWindows (const RenderWindowDescriptionList &renderWindowDescriptions, RenderWindowList &createdWindows) |
Creates multiple rendering windows. | |
virtual void | _destroyDepthBuffer (DepthBuffer *depthBuffer) |
virtual void | _disableTextureUnit (size_t texUnit) |
Turns off a texture unit. | |
virtual void | _disableTextureUnitsFrom (size_t texUnit) |
Disables all texture units from the given unit upwards. | |
virtual void | _dispatch (const HlmsComputePso &pso)=0 |
virtual void | _endFrame (void)=0 |
Ends rendering of a frame to the current viewport. | |
virtual void | _endFrameOnce (void) |
Called once per frame, regardless of how many active workspaces there are. | |
virtual void | _executeResourceTransition (ResourceTransition *resTransition) |
virtual unsigned int | _getBatchCount (void) const |
Reports the number of batches rendered since the last _beginGeometryCount call. | |
virtual const String & | _getDefaultViewportMaterialScheme (void) const |
Returns the default material scheme used by the render system. | |
virtual unsigned int | _getFaceCount (void) const |
Reports the number of tris rendered since the last _beginGeometryCount call. | |
virtual unsigned int | _getVertexCount (void) const |
Reports the number of vertices passed to the renderer since the last _beginGeometryCount call. | |
virtual Viewport * | _getViewport (void) |
Get the current active viewport for rendering. | |
virtual void | _hlmsBlendblockCreated (HlmsBlendblock *newBlock) |
virtual void | _hlmsBlendblockDestroyed (HlmsBlendblock *block) |
virtual void | _hlmsComputePipelineStateObjectCreated (HlmsComputePso *newPso) |
virtual void | _hlmsComputePipelineStateObjectDestroyed (HlmsComputePso *newPso) |
virtual void | _hlmsMacroblockCreated (HlmsMacroblock *newBlock) |
virtual void | _hlmsMacroblockDestroyed (HlmsMacroblock *block) |
virtual void | _hlmsPipelineStateObjectCreated (HlmsPso *newPso) |
virtual void | _hlmsPipelineStateObjectDestroyed (HlmsPso *pso) |
virtual void | _hlmsSamplerblockCreated (HlmsSamplerblock *newBlock) |
virtual void | _hlmsSamplerblockDestroyed (HlmsSamplerblock *block) |
virtual RenderWindow * | _initialise (bool autoCreateWindow, const String &windowTitle="OGRE Render Window") |
Start up the renderer using the settings selected (Or the defaults if none have been selected). | |
virtual void | _initRenderTargets (void) |
Utility method for initialising all render targets attached to this rendering system. | |
virtual void | _makeOrthoMatrix (const Radian &fovy, Real aspect, Real nearPlane, Real farPlane, Matrix4 &dest, bool forGpuProgram=false)=0 |
Builds an orthographic projection matrix suitable for this render system. | |
virtual void | _makeProjectionMatrix (const Radian &fovy, Real aspect, Real nearPlane, Real farPlane, Matrix4 &dest, bool forGpuProgram=false)=0 |
Builds a perspective projection matrix suitable for this render system. | |
virtual void | _makeProjectionMatrix (Real left, Real right, Real bottom, Real top, Real nearPlane, Real farPlane, Matrix4 &dest, bool forGpuProgram=false)=0 |
Builds a perspective projection matrix for the case when frustum is not centered around camera. | |
virtual void | _notifyCompositorNodeSwitchedRenderTarget (RenderTarget *previousTarget) |
This function was created because of Metal. | |
virtual RenderSystemContext * | _pauseFrame (void) |
Pause rendering for a frame. | |
virtual void | _render (const CbDrawCallIndexed *cmd)=0 |
Renders the VAO. Assumes _setVertexArrayObject has already been called. | |
virtual void | _render (const CbDrawCallStrip *cmd)=0 |
virtual void | _render (const v1::CbDrawCallIndexed *cmd)=0 |
Renders a V1 RenderOperation. Assumes _setRenderOperation has already been called. | |
virtual void | _render (const v1::CbDrawCallStrip *cmd)=0 |
virtual void | _render (const v1::RenderOperation &op) |
Render something to the active viewport. | |
virtual void | _renderEmulated (const CbDrawCallIndexed *cmd)=0 |
virtual void | _renderEmulated (const CbDrawCallStrip *cmd)=0 |
virtual void | _renderEmulatedNoBaseInstance (const CbDrawCallIndexed *cmd) |
virtual void | _renderEmulatedNoBaseInstance (const CbDrawCallStrip *cmd) |
virtual void | _renderNoBaseInstance (const v1::CbDrawCallIndexed *cmd) |
virtual void | _renderNoBaseInstance (const v1::CbDrawCallStrip *cmd) |
virtual void | _renderUsingReadBackAsTexture (unsigned int secondPass, Ogre::String variableName, unsigned int StartSlot) |
virtual void | _resourceTransitionCreated (ResourceTransition *resTransition) |
virtual void | _resourceTransitionDestroyed (ResourceTransition *resTransition) |
virtual void | _resumeFrame (RenderSystemContext *context) |
Resume rendering for a frame. | |
virtual void | _setBindingType (TextureUnitState::BindingType bindigType) |
Set texture unit binding type. | |
virtual void | _setComputePso (const HlmsComputePso *pso)=0 |
Unlike _setPipelineStateObject, the RenderSystem will check if the PSO has changed to avoid redundant state changes (since it's hard to do it at Hlms level) | |
virtual void | _setGeometryTexture (size_t unit, const TexturePtr &tex) |
virtual void | _setHlmsSamplerblock (uint8 texUnit, const HlmsSamplerblock *Samplerblock)=0 |
@See HlmsSamplerblock. | |
virtual void | _setHlmsSamplerblockCS (uint8 texUnit, const HlmsSamplerblock *Samplerblock)=0 |
virtual void | _setIndirectBuffer (IndirectBufferPacked *indirectBuffer)=0 |
virtual void | _setPipelineStateObject (const HlmsPso *pso) |
@See HlmsPso | |
virtual void | _setPointParameters (Real size, bool attenuationEnabled, Real constant, Real linear, Real quadratic, Real minSize, Real maxSize)=0 |
Sets the size of points and how they are attenuated with distance. | |
virtual void | _setPointSpritesEnabled (bool enabled)=0 |
Sets whether or not rendering points using OT_POINT_LIST will render point sprites (textured quads) or plain points. | |
virtual void | _setProjectionMatrix (const Matrix4 &m)=0 |
Sets the projection transform matrix. | |
virtual void | _setRenderOperation (const v1::CbRenderOp *cmd)=0 |
virtual void | _setRenderTarget (RenderTarget *target, uint8 viewportRenderTargetFlags)=0 |
Set current render target to target, enabling its device context if needed. | |
virtual void | _setSurfaceParams (const ColourValue &ambient, const ColourValue &diffuse, const ColourValue &specular, const ColourValue &emissive, Real shininess, TrackVertexColourType tracking=TVC_NONE)=0 |
Sets the surface properties to be used for future rendering. | |
virtual void | _setTessellationDomainTexture (size_t unit, const TexturePtr &tex) |
virtual void | _setTessellationHullTexture (size_t unit, const TexturePtr &tex) |
virtual void | _setTexture (size_t unit, bool enabled, const String &texname) |
Sets the texture to bind to a given texture unit. | |
virtual void | _setTexture (size_t unit, bool enabled, Texture *texPtr)=0 |
Sets the texture to bind to a given texture unit. | |
virtual void | _setTextureBlendMode (size_t unit, const LayerBlendModeEx &bm)=0 |
Sets the texture blend modes from a TextureUnitState record. | |
virtual void | _setTextureCoordCalculation (size_t unit, TexCoordCalcMethod m, const Frustum *frustum=0)=0 |
Sets a method for automatically calculating texture coordinates for a stage. | |
virtual void | _setTextureCoordSet (size_t unit, size_t index)=0 |
Sets the texture coordinate set to use for a texture unit. | |
virtual void | _setTextureCS (uint32 slot, bool enabled, Texture *texPtr)=0 |
Binds a regular texture to a Compute Shader. | |
virtual void | _setTextureMatrix (size_t unit, const Matrix4 &xform)=0 |
Sets the texture coordinate transformation matrix for a texture unit. | |
virtual void | _setTextureProjectionRelativeTo (bool enabled, const Vector3 &pos) |
Notify the rendersystem that it should adjust texture projection to be relative to a different origin. | |
virtual void | _setTextureUnitSettings (size_t texUnit, TextureUnitState &tl) |
Utility function for setting all the properties of a texture unit at once. | |
virtual void | _setVertexArrayObject (const VertexArrayObject *vao)=0 |
Part of the low level rendering interface. | |
virtual void | _setVertexTexture (size_t unit, const TexturePtr &tex) |
Binds a texture to a vertex, geometry, compute, tessellation hull or tessellation domain sampler. | |
virtual void | _setViewMatrix (const Matrix4 &m)=0 |
Sets the view transform matrix. | |
virtual void | _setViewport (Viewport *vp)=0 |
Sets the provided viewport as the active one for future rendering operations. | |
virtual void | _setWorldMatrices (const Matrix4 *m, unsigned short count) |
Sets multiple world matrices (vertex blending). | |
virtual void | _setWorldMatrix (const Matrix4 &m)=0 |
Sets the world transform matrix. | |
virtual void | _startLegacyV1Rendering (void) |
May override the current VertexArrayObject! | |
void | _update (void) |
Called once per frame, regardless of how many active workspaces there are. | |
virtual void | _useLights (const LightList &lights, unsigned short limit)=0 |
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) | |
virtual void | addClipPlane (const Plane &p) |
Add a user clipping plane. | |
virtual void | addClipPlane (Real A, Real B, Real C, Real D) |
Add a user clipping plane. | |
virtual void | addListener (Listener *l) |
Adds a listener to the custom events that this render system can raise. | |
virtual bool | areFixedFunctionLightsInViewSpace () const |
Are fixed-function lights provided in view space? Affects optimisation. | |
virtual void | attachRenderTarget (RenderTarget &target) |
Attaches the passed render target to the render system. | |
virtual void | beginGPUSampleProfile (const String &name, uint32 *hashCache)=0 |
virtual void | beginProfileEvent (const String &eventName)=0 |
This marks the beginning of an event for GPU profiling. | |
virtual void | bindGpuProgramParameters (GpuProgramType gptype, GpuProgramParametersSharedPtr params, uint16 variabilityMask)=0 |
Bind Gpu program parameters. | |
virtual void | bindGpuProgramPassIterationParameters (GpuProgramType gptype)=0 |
Only binds Gpu program parameters used for passes that have more than one iteration rendering. | |
virtual bool | checkExtension (const String &ext) const |
Checks for the presense of an API-specific extension (eg. Vulkan, GL) | |
virtual void | clearFrameBuffer (unsigned int buffers, const ColourValue &colour=ColourValue::Black, Real depth=1.0f, unsigned short stencil=0)=0 |
Clears one or more frame buffers on the active render target. | |
virtual void | clearUAVs (void)=0 |
By default queueBindUAV will keep all other slots intact. | |
virtual void | compositorWorkspaceBegin (CompositorWorkspace *workspace, const bool forceBeginFrame) |
See RenderSystem::updateCompositorManager. | |
virtual void | compositorWorkspaceEnd (CompositorWorkspace *workspace, const bool forceEndFrame) |
See RenderSystem::updateCompositorManager. | |
virtual void | compositorWorkspaceUpdate (CompositorWorkspace *workspace) |
See RenderSystem::updateCompositorManager. | |
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. | |
virtual HardwareOcclusionQuery * | createHardwareOcclusionQuery (void)=0 |
Create an object for performing hardware occlusion queries. | |
virtual MultiRenderTarget * | createMultiRenderTarget (const String &name)=0 |
Create a MultiRenderTarget, which is a render target that renders to multiple RenderTextures at once. | |
virtual RenderSystemCapabilities * | createRenderSystemCapabilities () const =0 |
Query the real capabilities of the GPU and driver in the RenderSystem. | |
virtual void | createUniqueDepthBufferFor (RenderTarget *renderTarget, bool exactMatch) |
virtual void | deinitGPUProfiling (void)=0 |
virtual void | destroyHardwareOcclusionQuery (HardwareOcclusionQuery *hq) |
Destroy a hardware occlusion query object. | |
virtual void | destroyRenderTarget (const String &name) |
Destroys a render target of any sort. | |
virtual void | destroyRenderTexture (const String &name) |
Destroys a render texture. | |
virtual void | destroyRenderWindow (const String &name) |
Destroys a render window. | |
virtual RenderTarget * | detachRenderTarget (const String &name) |
Detaches the render target with the passed name from the render system and returns a pointer to it. | |
virtual void | discardFrameBuffer (unsigned int buffers)=0 |
Instructs the viewport to 'discard' the buffers. | |
virtual void | endGPUSampleProfile (const String &name)=0 |
virtual void | endProfileEvent (void)=0 |
Ends the currently active GPU profiling event. | |
virtual void | flushUAVs (void)=0 |
Forces to take effect all the queued UAV binding requests. | |
const RenderSystemCapabilities * | getCapabilities (void) const |
Gets the capabilities of the render system. | |
virtual VertexElementType | getColourVertexElementType (void) const =0 |
Get the native VertexElementType for a compact 32-bit colour value for this rendersystem. | |
virtual ConfigOptionMap & | getConfigOptions (void)=0 |
Returns the details of this API's configuration options. | |
virtual void | getCustomAttribute (const String &name, void *pData) |
Gets a custom (maybe platform-specific) attribute. | |
bool | getDebugShaders (void) const |
virtual unsigned int | getDisplayMonitorCount () const =0 |
Gets the number of display monitors. | |
virtual const DriverVersion & | getDriverVersion (void) const |
Returns the driver version. | |
virtual String | getErrorDescription (long errorNumber) const =0 |
Returns a description of an error code. | |
virtual const String & | getFriendlyName (void) const =0 |
Returns the friendly name of the render system. | |
v1::HardwareVertexBufferSharedPtr | getGlobalInstanceVertexBuffer () const |
Returns the global instance vertex buffer. | |
v1::VertexDeclaration * | getGlobalInstanceVertexBufferVertexDeclaration () const |
Gets vertex declaration for the global vertex buffer for the global instancing. | |
size_t | getGlobalNumberOfInstances () const |
Gets the global number of instances. | |
virtual Real | getHorizontalTexelOffset (void)=0 |
Returns the horizontal texel offset value required for mapping texel origins to pixel origins in this rendersystem. | |
virtual bool | getInvertVertexWinding (void) const |
Indicates whether or not the vertex windings set will be inverted for the current render (e.g. | |
virtual Real | getMaximumDepthInputValue (void)=0 |
Gets the maximum (farthest) depth value to be used when rendering using identity transforms. | |
virtual Real | getMinimumDepthInputValue (void)=0 |
Gets the minimum (closest) depth value to be used when rendering using identity transforms. | |
RenderSystemCapabilities * | getMutableCapabilities () |
Get a pointer to the current capabilities being used by the RenderSystem. | |
virtual const String & | getName (void) const =0 |
Returns the name of the rendering system. | |
uint16 | getNativeShadingLanguageVersion () const |
Gets the native shading language version for this render system. | |
virtual const PixelFormatToShaderType * | getPixelFormatToShaderType (void) const =0 |
virtual const StringVector & | getRenderSystemEvents (void) const |
Gets a list of the rendersystem specific events that this rendersystem can raise. | |
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. | |
virtual RenderTargetIterator | getRenderTargetIterator (void) |
Returns a specialised MapIterator over all render targets attached to the RenderSystem. | |
virtual Real | getRSDepthRange (void) const |
OpenGL depth is in range [-1;1] so it returns 2.0f; D3D11 & Metal are in range [0;1] so it returns 1.0f;. | |
const StencilParams & | getStencilBufferParams (void) const |
VaoManager * | getVaoManager (void) const |
virtual Real | getVerticalTexelOffset (void)=0 |
Returns the vertical texel offset value required for mapping texel origins to pixel origins in this rendersystem. | |
bool | getWBufferEnabled (void) const |
Returns true if the renderer will try to use W-buffers when available. | |
virtual bool | hasAnisotropicMipMapFilter () const =0 |
Determines if the system has anisotropic mip map filter support. | |
virtual void | initGPUProfiling (void)=0 |
virtual bool | isGpuProgramBound (GpuProgramType gptype) |
Returns whether or not a Gpu program of the given type is currently bound. | |
virtual bool | isStaticBufferLockable () const |
virtual void | markProfileEvent (const String &event)=0 |
Marks an instantaneous event for graphics profilers. | |
void | operator delete (void *ptr) |
void | operator delete (void *ptr, const char *, int, const char *) |
void | operator delete (void *ptr, void *) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *ptr, const char *, int, const char *) |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, const char *file, int line, const char *func) |
operator new, with debug line info | |
void * | operator new (size_t sz, void *ptr) |
placement operator new | |
void * | operator new[] (size_t sz) |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info | |
virtual void | postExtraThreadsStarted ()=0 |
virtual void | preExtraThreadsStarted ()=0 |
Tell the rendersystem to perform any prep tasks it needs to directly before other threads which might access the rendering API are registered. | |
virtual void | queueBindUAV (uint32 slot, TexturePtr texture, ResourceAccess::ResourceAccess access=ResourceAccess::ReadWrite, int32 mipmapLevel=0, int32 textureArrayIndex=0, PixelFormat pixelFormat=PF_UNKNOWN)=0 |
Queues the binding of an UAV to the binding point/slot. | |
virtual void | queueBindUAV (uint32 slot, UavBufferPacked *buffer, ResourceAccess::ResourceAccess access=ResourceAccess::ReadWrite, size_t offset=0, size_t sizeBytes=0)=0 |
See other overload. | |
virtual void | registerThread ()=0 |
Register the an additional thread which may make calls to rendersystem-related objects. | |
virtual void | reinitialise (void)=0 |
Restart the renderer (normally following a change in settings). | |
virtual void | removeListener (Listener *l) |
Remove a listener to the custom events that this render system can raise. | |
virtual void | resetClipPlanes () |
Clears the user clipping region. | |
virtual void | setClipPlanes (const PlaneList &clipPlanes) |
Sets the user clipping region. | |
virtual void | setConfigOption (const String &name, const String &value)=0 |
Sets an option for this API. | |
virtual void | setCurrentPassIterationCount (const size_t count) |
set the current multi pass count value. | |
void | setDebugShaders (bool bDebugShaders) |
Instructs the RenderSystem to compile shaders without optimizations and with debug information, for easier debugging on APIs that support it. | |
virtual void | setDepthBufferFor (RenderTarget *renderTarget, bool exactMatch) |
Retrieves an existing DepthBuffer or creates a new one suited for the given RenderTarget and sets it. | |
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. | |
virtual bool | setDrawBuffer (ColourBufferType colourBuffer) |
Sets the colour buffer that the render system will to draw. | |
void | setGlobalInstanceVertexBuffer (const v1::HardwareVertexBufferSharedPtr &val) |
Sets the global instance vertex buffer. | |
void | setGlobalInstanceVertexBufferVertexDeclaration (v1::VertexDeclaration *val) |
Sets vertex declaration for the global vertex buffer for the global instancing. | |
void | setGlobalNumberOfInstances (const size_t val) |
Sets the global number of instances. | |
void | setInvertVertexWinding (bool invert) |
Sets whether or not vertex windings set should be inverted; this can be important for rendering reflections. | |
virtual void | setStencilBufferParams (uint32 refValue, const StencilParams &stencilParams) |
This method allows you to set all the stencil buffer parameters in one call. | |
virtual void | setUavStartingSlot (uint32 startingSlot) |
In Direct3D11, UAV & RenderTargets share the same slots. | |
void | setWBufferEnabled (bool enabled) |
Sets whether or not W-buffers are enabled if they are available for this renderer. | |
virtual void | shutdown (void) |
Shutdown the renderer and cleanup resources. | |
virtual void | unregisterThread ()=0 |
Unregister an additional thread which may make calls to rendersystem-related objects. | |
virtual void | updateCompositorManager (CompositorManager2 *compositorManager, SceneManagerEnumerator &sceneManagers, HlmsManager *hlmsManager) |
This gives the renderer a chance to perform the compositor update in a special way. | |
virtual void | useCustomRenderSystemCapabilities (RenderSystemCapabilities *capabilities) |
Force the render system to use the special capabilities. | |
virtual String | validateConfigOptions (void)=0 |
Validates the options set for the rendering system, returning a message if there are problems. | |
Static Public Member Functions | |
static Listener * | getSharedListener (void) |
Retrieve a pointer to the current shared render system listener. | |
static void | setSharedListener (Listener *listener) |
Sets shared listener. | |
Defines the functionality of a 3D API.
Iterator over RenderTargets.
Ogre::RenderSystem::RenderSystem | ( | ) |
Default Constructor.
|
virtual |
Destructor.
|
pure virtual |
Update a perspective projection matrix to use 'oblique depth projection'.
matrix | The existing projection matrix. Note that this must be a perspective transform (not orthographic), and must not have already been altered by this method. The matrix will be altered in-place. |
plane | The plane which is to be used as the clipping plane. This plane must be in CAMERA (view) space. |
forGpuProgram | Is this for use with a Gpu program or fixed-function |
Implemented in Ogre::D3D11RenderSystem, Ogre::D3D9RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
Signifies the beginning of a frame, i.e.
the start of rendering on a single viewport. Will occur several times per complete frame if multiple viewports exist.
Implemented in Ogre::D3D9RenderSystem, Ogre::D3D11RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
Signifies the beginning of the main frame.
i.e. will only be called once per frame, not per viewport
Reimplemented in Ogre::MetalRenderSystem.
The RenderSystem will keep a count of tris rendered, this resets the count.
|
pure virtual |
Binds an UAV texture to a Compute Shader.
OpenGL however, does not make this distinction. Hence once we switch back to 3D rendering, we need to restore UAVs set via queueBindUAV.
Implemented in Ogre::D3D11RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
Removes all depth buffers.
Should be called on device lost and shutdown
|
pure virtual |
Converts a uniform projection matrix to suitable for this render system.
Implemented in Ogre::D3D11RenderSystem, Ogre::D3D9RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
|
pure virtual |
Creates a DepthBuffer that can be attached to the specified RenderTarget.
Implemented in Ogre::D3D11RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
|
pure 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:
|
Implemented in Ogre::D3D11RenderSystem, Ogre::D3D9RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
|
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 in Ogre::D3D9RenderSystem, and Ogre::GL3PlusRenderSystem.
|
virtual |
Turns off a texture unit.
Reimplemented in Ogre::D3D11RenderSystem, and Ogre::D3D9RenderSystem.
Disables all texture units from the given unit upwards.
|
pure virtual |
Ends rendering of a frame to the current viewport.
Implemented in Ogre::D3D9RenderSystem, Ogre::D3D11RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
Called once per frame, regardless of how many active workspaces there are.
Gets called AFTER all RenderWindows have been swapped.
Reimplemented in Ogre::MetalRenderSystem.
|
inlinevirtual |
Reimplemented in Ogre::GL3PlusRenderSystem.
Reports the number of batches rendered since the last _beginGeometryCount call.
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.
Reports the number of tris rendered since the last _beginGeometryCount call.
Reports the number of vertices passed to the renderer since the last _beginGeometryCount call.
Get the current active viewport for rendering.
|
inlinevirtual |
Reimplemented in Ogre::D3D11RenderSystem, Ogre::GL3PlusRenderSystem, and Ogre::GLES2RenderSystem.
|
inlinevirtual |
Reimplemented in Ogre::D3D11RenderSystem, Ogre::GL3PlusRenderSystem, and Ogre::GLES2RenderSystem.
|
inlinevirtual |
Reimplemented in Ogre::D3D11RenderSystem, Ogre::GL3PlusRenderSystem, and Ogre::MetalRenderSystem.
|
inlinevirtual |
Reimplemented in Ogre::D3D11RenderSystem, Ogre::GL3PlusRenderSystem, and Ogre::MetalRenderSystem.
|
inlinevirtual |
Reimplemented in Ogre::D3D11RenderSystem, Ogre::GL3PlusRenderSystem, and Ogre::GLES2RenderSystem.
|
inlinevirtual |
Reimplemented in Ogre::D3D11RenderSystem, Ogre::GL3PlusRenderSystem, and Ogre::GLES2RenderSystem.
Reimplemented in Ogre::D3D11RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, and Ogre::MetalRenderSystem.
Reimplemented in Ogre::D3D11RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, and Ogre::MetalRenderSystem.
|
inlinevirtual |
Reimplemented in Ogre::D3D11RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, and Ogre::MetalRenderSystem.
|
inlinevirtual |
Reimplemented in Ogre::D3D11RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, and Ogre::MetalRenderSystem.
|
virtual |
Start up the renderer using the settings selected (Or the defaults if none have been selected).
autoCreateWindow | If true, creates a render window automatically, based on settings chosen so far. This saves an extra call to _createRenderWindow for the main render window. |
windowTitle | Sets the app window title |
Reimplemented in Ogre::D3D11RenderSystem, Ogre::D3D9RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
Utility method for initialising all render targets attached to this rendering system.
|
pure virtual |
Builds an orthographic projection matrix suitable for this render system.
Implemented in Ogre::D3D11RenderSystem, Ogre::D3D9RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
|
pure virtual |
Builds a perspective projection matrix suitable for this render system.
Implemented in Ogre::D3D11RenderSystem, Ogre::D3D9RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
|
pure virtual |
Builds a perspective projection matrix for the case when frustum is not centered around camera.
Implemented in Ogre::D3D11RenderSystem, Ogre::D3D9RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
|
inlinevirtual |
This function was created because of Metal.
The Metal API doesn't have a 'device->clear( texture )' function. Instead we must specify we want to start rendering to a cleared surface. This allows mobile TBDR GPUs to begin rendering without having to load any data from memory (saves a lot of bandwidth and battery).
Ogre will first issue a clear, then begin executing the shadow node (which switches to the shadow map) then switch back to the original rtt to resume regular rendinering. In this common case we want to delay the clear, but _setRenderTarget is clearly not an trusted indication (we would get many false positives).
previousRenderTarget | RenderTarget that was being used (and we should clear if we have to). |
Reimplemented in Ogre::MetalRenderSystem.
|
virtual |
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.
|
pure virtual |
Renders the VAO. Assumes _setVertexArrayObject has already been called.
Implemented in Ogre::D3D11RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
|
pure virtual |
|
pure virtual |
Renders a V1 RenderOperation. Assumes _setRenderOperation has already been called.
Implemented in Ogre::D3D11RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
|
pure virtual |
|
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 in Ogre::D3D11RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, and Ogre::MetalRenderSystem.
|
pure virtual |
|
pure virtual |
|
inlinevirtual |
Reimplemented in Ogre::GL3PlusRenderSystem, and Ogre::GLES2RenderSystem.
|
inlinevirtual |
Reimplemented in Ogre::GL3PlusRenderSystem, and Ogre::GLES2RenderSystem.
|
inlinevirtual |
Reimplemented in Ogre::GL3PlusRenderSystem, and Ogre::GLES2RenderSystem.
|
inlinevirtual |
Reimplemented in Ogre::GL3PlusRenderSystem, and Ogre::GLES2RenderSystem.
|
virtual |
Reimplemented in Ogre::D3D11RenderSystem.
|
inlinevirtual |
Reimplemented in Ogre::GL3PlusRenderSystem.
|
inlinevirtual |
Reimplemented in Ogre::GL3PlusRenderSystem.
|
virtual |
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 |
Set texture unit binding type.
Reimplemented in Ogre::D3D11RenderSystem.
|
pure virtual |
Unlike _setPipelineStateObject, the RenderSystem will check if the PSO has changed to avoid redundant state changes (since it's hard to do it at Hlms level)
Implemented in Ogre::D3D11RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
|
virtual |
Reimplemented in Ogre::D3D11RenderSystem, and Ogre::GL3PlusRenderSystem.
|
pure virtual |
@See HlmsSamplerblock.
This function MUST be called after _setTexture, not before. Otherwise not all APIs may see the change.
Implemented in Ogre::D3D11RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
|
pure virtual |
|
pure virtual |
@See HlmsPso
Reimplemented in Ogre::D3D11RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
|
pure virtual |
Sets the size of points and how they are attenuated with distance.
Implemented in Ogre::D3D11RenderSystem, Ogre::D3D9RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
Sets whether or not rendering points using OT_POINT_LIST will render point sprites (textured quads) or plain points.
enabled | True enables point sprites, false returns to normal point rendering. |
Implemented in Ogre::D3D11RenderSystem, Ogre::D3D9RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
Sets the projection transform matrix.
Implemented in Ogre::D3D11RenderSystem, Ogre::D3D9RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
|
pure virtual |
|
pure virtual |
Set current render target to target, enabling its device context if needed.
viewportRenderTargetFlags | See ViewportRenderTargetFlags See CompositorPassDef::mColourWrite The RenderTarget is needed to know the depth/stencil information. |
Implemented in Ogre::D3D11RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
|
pure virtual |
Sets the surface properties to be used for future rendering.
This method sets the the properties of the surfaces of objects to be rendered after it. In this context these surface properties are the amount of each type of light the object reflects (determining it's colour under different types of light), whether it emits light itself, and how shiny it is. Textures are not dealt with here, see the _setTetxure method for details. This method is used by _setMaterial so does not need to be called direct if that method is being used.
ambient | The amount of ambient (sourceless and directionless) light an object reflects. Affected by the colour/amount of ambient light in the scene. |
diffuse | The amount of light from directed sources that is reflected (affected by colour/amount of point, directed and spot light sources) |
specular | The amount of specular light reflected. This is also affected by directed light sources but represents the colour at the highlights of the object. |
emissive | The colour of light emitted from the object. Note that this will make an object seem brighter and not dependent on lights in the scene, but it will not act as a light, so will not illuminate other objects. Use a light attached to the same SceneNode as the object for this purpose. |
shininess | A value which only has an effect on specular highlights (so specular must be non-black). The higher this value, the smaller and crisper the specular highlights will be, imitating a more highly polished surface. This value is not constrained to 0.0-1.0, in fact it is likely to be more (10.0 gives a modest sheen to an object). |
tracking | A bit field that describes which of the ambient, diffuse, specular and emissive colours follow the vertex colour of the primitive. When a bit in this field is set its ColourValue is ignored. This is a combination of TVC_AMBIENT, TVC_DIFFUSE, TVC_SPECULAR(note that the shininess value is still taken from shininess) and TVC_EMISSIVE. TVC_NONE means that there will be no material property tracking the vertex colours. |
Implemented in Ogre::D3D11RenderSystem, Ogre::D3D9RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
|
virtual |
Reimplemented in Ogre::D3D11RenderSystem, and Ogre::GL3PlusRenderSystem.
|
virtual |
Reimplemented in Ogre::D3D11RenderSystem, and Ogre::GL3PlusRenderSystem.
|
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 |
texname | The name of the texture to use - this should have already been loaded with TextureManager::load. |
|
pure 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. |
Implemented in Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::D3D11RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
|
pure virtual |
Sets the texture blend modes from a TextureUnitState record.
Meant for use internally only - apps should use the Material and TextureUnitState classes.
unit | Texture unit as above |
bm | Details of the blending mode |
Implemented in Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::D3D11RenderSystem, Ogre::D3D9RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
|
pure virtual |
Sets a method for automatically calculating texture coordinates for a stage.
Should not be used by apps - for use by Ogre only.
unit | Texture unit as above |
m | Calculation method to use |
frustum | Optional Frustum param, only used for projective effects |
Implemented in Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::D3D11RenderSystem, Ogre::D3D9RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
Sets the texture coordinate set to use for a texture unit.
Meant for use internally - not generally used directly by apps - the Material and TextureUnitState classes let you manage textures far more easily.
unit | Texture unit as above |
index | The index of the texture coordinate set to use. |
Implemented in Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::D3D11RenderSystem, Ogre::D3D9RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
|
pure virtual |
Binds a regular texture to a Compute Shader.
Implemented in Ogre::D3D11RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
|
pure virtual |
Sets the texture coordinate transformation matrix for a texture unit.
unit | Texture unit to affect |
xform | The 4x4 matrix |
Implemented in Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::D3D11RenderSystem, Ogre::D3D9RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
|
virtual |
Notify the rendersystem that it should adjust texture projection to be relative to a different origin.
|
virtual |
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.
|
pure virtual |
Part of the low level rendering interface.
Tells the RS which VAO will be bound now. (i.e. Vertex Formats, buffers being bound, etc.) You don't need to rebind if the VAO's mRenderQueueId is the same as previous call.
Implemented in Ogre::D3D11RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
|
virtual |
Binds a texture to a vertex, geometry, compute, tessellation hull or tessellation domain sampler.
Reimplemented in Ogre::D3D11RenderSystem, Ogre::D3D9RenderSystem, and Ogre::GL3PlusRenderSystem.
Sets the view transform matrix.
Implemented in Ogre::D3D11RenderSystem, Ogre::D3D9RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
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. |
Implemented in Ogre::D3D11RenderSystem, Ogre::D3D9RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
|
virtual |
Sets multiple world matrices (vertex blending).
Sets the world transform matrix.
Implemented in Ogre::D3D11RenderSystem, Ogre::D3D9RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
May override the current VertexArrayObject!
Reimplemented in Ogre::GL3PlusRenderSystem, and Ogre::GLES2RenderSystem.
Called once per frame, regardless of how many active workspaces there are.
|
pure virtual |
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)
Implemented in Ogre::D3D11RenderSystem, Ogre::D3D9RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
Add a user clipping plane.
Adds a listener to the custom events that this render system can raise.
Are fixed-function lights provided in view space? Affects optimisation.
Reimplemented in Ogre::GL3PlusRenderSystem, and Ogre::GLES2RenderSystem.
|
virtual |
Attaches the passed render target to the render system.
This marks the beginning of an event for GPU profiling.
Implemented in Ogre::D3D11RenderSystem, Ogre::D3D9RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
|
pure 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 |
Implemented in Ogre::D3D11RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::D3D9RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
|
pure virtual |
Only binds Gpu program parameters used for passes that have more than one iteration rendering.
Implemented in Ogre::D3D11RenderSystem, Ogre::D3D9RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
Checks for the presense of an API-specific extension (eg. Vulkan, GL)
Reimplemented in Ogre::GLES2RenderSystem.
|
pure 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. |
Implemented in Ogre::D3D11RenderSystem, Ogre::D3D9RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
By default queueBindUAV will keep all other slots intact.
Calling this function will unset all bound UAVs. Will take effect after flushUAVs or setting a new RT.
Implemented in Ogre::D3D11RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
|
virtual |
See RenderSystem::updateCompositorManager.
Reimplemented in Ogre::MetalRenderSystem.
|
virtual |
See RenderSystem::updateCompositorManager.
Reimplemented in Ogre::MetalRenderSystem.
|
virtual |
See RenderSystem::updateCompositorManager.
Reimplemented in Ogre::MetalRenderSystem.
|
virtual |
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. |
|
pure virtual |
Create an object for performing hardware occlusion queries.
Implemented in Ogre::D3D9RenderSystem, Ogre::D3D11RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
|
pure 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.
Implemented in Ogre::D3D11RenderSystem, Ogre::D3D9RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
|
pure virtual |
Query the real capabilities of the GPU and driver in the RenderSystem.
Implemented in Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
|
virtual |
|
virtual |
Destroy a hardware occlusion query object.
Destroys a render target of any sort.
Reimplemented in Ogre::D3D11RenderSystem, and Ogre::D3D9RenderSystem.
Destroys a render texture.
Destroys a render window.
|
virtual |
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.
Instructs the viewport to 'discard' the buffers.
Implemented in Ogre::D3D11RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
Ends the currently active GPU profiling event.
Implemented in Ogre::D3D11RenderSystem, Ogre::D3D9RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
Forces to take effect all the queued UAV binding requests.
Implemented in Ogre::D3D11RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
|
inline |
Gets the capabilities of the render system.
|
pure virtual |
Get the native VertexElementType for a compact 32-bit colour value for this rendersystem.
Implemented in Ogre::D3D9RenderSystem, Ogre::D3D11RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
|
pure virtual |
Returns the details of this API's configuration options.
Implemented in Ogre::D3D9RenderSystem, Ogre::D3D11RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
Gets a custom (maybe platform-specific) attribute.
name | The name of the attribute. |
pData | Pointer to memory of the right kind of structure to receive the info. |
Reimplemented in Ogre::D3D11RenderSystem.
Gets the number of display monitors.
Implemented in Ogre::D3D11RenderSystem, Ogre::D3D9RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
|
inlinevirtual |
Returns the driver version.
Returns a description of an error code.
Implemented in Ogre::D3D11RenderSystem, Ogre::D3D9RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
Returns the friendly name of the render system.
Implemented in Ogre::D3D9RenderSystem, Ogre::D3D11RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
v1::HardwareVertexBufferSharedPtr Ogre::RenderSystem::getGlobalInstanceVertexBuffer | ( | ) | const |
Returns the global instance vertex buffer.
v1::VertexDeclaration * Ogre::RenderSystem::getGlobalInstanceVertexBufferVertexDeclaration | ( | ) | const |
Gets vertex declaration for the global vertex buffer for the global instancing.
size_t Ogre::RenderSystem::getGlobalNumberOfInstances | ( | ) | const |
Gets the global number of instances.
Returns the horizontal texel offset value required for mapping texel origins to pixel origins in this rendersystem.
Implemented in Ogre::D3D9RenderSystem, Ogre::D3D11RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
Indicates whether or not the vertex windings set will be inverted for the current render (e.g.
reflections)
Gets the maximum (farthest) depth value to be used when rendering using identity transforms.
Implemented in Ogre::D3D9RenderSystem, Ogre::D3D11RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
Gets the minimum (closest) depth value to be used when rendering using identity transforms.
Implemented in Ogre::D3D9RenderSystem, Ogre::D3D11RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
|
inline |
Get a pointer to the current capabilities being used by the RenderSystem.
Returns the name of the rendering system.
Implemented in Ogre::D3D9RenderSystem, Ogre::D3D11RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
|
inline |
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
|
pure virtual |
Implemented in Ogre::D3D11RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
|
inlinevirtual |
Gets a list of the rendersystem specific events that this rendersystem can raise.
|
virtual |
Returns a pointer to the render target with the passed name, or NULL if that render target cannot be found.
|
inlinevirtual |
Returns a specialised MapIterator over all render targets attached to the RenderSystem.
OpenGL depth is in range [-1;1] so it returns 2.0f; D3D11 & Metal are in range [0;1] so it returns 1.0f;.
Reimplemented in Ogre::D3D11RenderSystem, and Ogre::MetalRenderSystem.
Retrieve a pointer to the current shared render system listener.
|
inline |
|
inline |
Returns the vertical texel offset value required for mapping texel origins to pixel origins in this rendersystem.
Implemented in Ogre::D3D9RenderSystem, Ogre::D3D11RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
Returns true if the renderer will try to use W-buffers when available.
Determines if the system has anisotropic mip map filter support.
Implemented in Ogre::D3D11RenderSystem, Ogre::D3D9RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
|
virtual |
Returns whether or not a Gpu program of the given type is currently bound.
Reimplemented in Ogre::D3D9RenderSystem.
Marks an instantaneous event for graphics profilers.
This is equivalent to calling
Implemented in Ogre::MetalRenderSystem, Ogre::NULLRenderSystem, Ogre::D3D11RenderSystem, Ogre::D3D9RenderSystem, Ogre::GL3PlusRenderSystem, and Ogre::GLES2RenderSystem.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
operator new, with debug line info
placement operator new
|
inlineinherited |
|
inlineinherited |
array operator new, with debug line info
Tell the rendersystem to perform any prep tasks it needs to directly before other threads which might access the rendering API are registered.
Implemented in Ogre::D3D11RenderSystem, Ogre::D3D9RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
|
pure virtual |
Queues the binding of an UAV to the binding point/slot.
It won't actually take effect until you flush the UAVs or set another RTT.
bindPoint | The buffer binding location for shader access. For OpenGL this must be unique and is not related to the texture binding point. |
access | The texture access privileges given to the shader. |
mipmapLevel | The texture mipmap level to use. |
textureArrayIndex | The index of the texture array to use. If texture is not a texture array, set to 0. |
format | Texture format to be read in by shader. This may be different than the bound texture format. Will be the same is left as PF_UNKNOWN |
Implemented in Ogre::D3D11RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
|
pure virtual |
See other overload.
The slots are shared with the textures'
offset | Offset to bind, in bytes |
sizeBytes | Size to bind, in bytes. Use 0 to bind until the end of the buffer. |
Implemented in Ogre::D3D11RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
Register the an additional thread which may make calls to rendersystem-related objects.
Implemented in Ogre::D3D11RenderSystem, Ogre::D3D9RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
Restart the renderer (normally following a change in settings).
Implemented in Ogre::D3D11RenderSystem, Ogre::D3D9RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
Remove a listener to the custom events that this render system can raise.
Sets the user clipping region.
|
pure virtual |
Sets an option for this API.
name | The name of the option to alter. |
value | The value to set the option to. |
Implemented in Ogre::D3D11RenderSystem, Ogre::D3D9RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
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. |
Instructs the RenderSystem to compile shaders without optimizations and with debug information, for easier debugging on APIs that support it.
Default is true if OGRE_DEBUG_MODE >= OGRE_DEBUG_HIGH, else false
This setting takes effect for shaders compiled afterwards. Already compiled shaders won't change unless you manually rebuild them.
It is highly recommended you disable the Microcode cache before changing the default, or else debug shaders may contaminate your cache, or alternatively a shader from the cache may be used which may have been compiled with a different setting.
|
virtual |
Retrieves an existing DepthBuffer or creates a new one suited for the given RenderTarget and sets it.
|
inlinevirtual |
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 |
|
inlinevirtual |
Sets the colour buffer that the render system will to draw.
If the render system implementation or configuration does not support a particular value, then false will be returned and the current colour buffer value will not be modified.
colourBuffer | Specifies the colour buffer that will be drawn into. |
Reimplemented in Ogre::D3D11RenderSystem, and Ogre::D3D9RenderSystem.
void Ogre::RenderSystem::setGlobalInstanceVertexBuffer | ( | const v1::HardwareVertexBufferSharedPtr & | val | ) |
Sets the global instance vertex buffer.
void Ogre::RenderSystem::setGlobalInstanceVertexBufferVertexDeclaration | ( | v1::VertexDeclaration * | val | ) |
Sets vertex declaration for the global vertex buffer for the global instancing.
Sets the global number of instances.
Sets whether or not vertex windings set should be inverted; this can be important for rendering reflections.
Sets shared listener.
|
virtual |
This method allows you to set all the stencil buffer parameters in one call.
(Reference Value & Mask) CompareFunction (Stencil Buffer Value & Mask)The result of this will cause one of 3 actions depending on whether the test fails, succeeds but with the depth buffer check still failing, or succeeds with the depth buffer check passing too.
refValue | The reference value used in the comparison (dynamic) |
stencilParams | The static parameters that involve more expensive state changes. Ogre dev implementors note: Should check if the stencilParams are different from before |
Reimplemented in Ogre::D3D11RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, and Ogre::MetalRenderSystem.
In Direct3D11, UAV & RenderTargets share the same slots.
Because of this, we enforce the same behavior on all RenderSystems. An unfortunate consequence is that if you attach an MRT consisting of 3 RTs; the UAV needs to set at slot 3; not slot 0. This setting lets you tell Ogre the starting slot; so queueBindUAV( 0, ... ) can goes to slot 3 if you call setUavStartingSlot( 3 )
startingSlot | Default value: 1. |
Reimplemented in Ogre::GL3PlusRenderSystem.
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. |
Shutdown the renderer and cleanup resources.
Reimplemented in Ogre::D3D11RenderSystem, Ogre::D3D9RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
Unregister an additional thread which may make calls to rendersystem-related objects.
Implemented in Ogre::D3D11RenderSystem, Ogre::D3D9RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.
|
virtual |
This gives the renderer a chance to perform the compositor update in a special way.
When the render system is ready to perform the actual update it should just compositorManager->_updateImplementation.
Reimplemented in Ogre::MetalRenderSystem.
|
virtual |
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. |
Validates the options set for the rendering system, returning a message if there are problems.
Implemented in Ogre::D3D9RenderSystem, Ogre::D3D11RenderSystem, Ogre::GL3PlusRenderSystem, Ogre::GLES2RenderSystem, Ogre::MetalRenderSystem, and Ogre::NULLRenderSystem.