OGRE  1.12.13
Object-Oriented Graphics Rendering Engine
Ogre::D3D11RenderToVertexBuffer Class Reference

An object which renders geometry to a vertex. More...

#include <OgreD3D11RenderToVertexBuffer.h>

+ Inheritance diagram for Ogre::D3D11RenderToVertexBuffer:

Public Member Functions

 D3D11RenderToVertexBuffer (D3D11Device &device, D3D11HardwareBufferManagerBase *bufManager)
 
virtual ~D3D11RenderToVertexBuffer (void)
 
virtual void getRenderOperation (RenderOperation &op)
 Get the render operation for this buffer. More...
 
void reallocateBuffer (size_t index)
 
virtual void update (SceneManager *sceneMgr)
 Update the contents of this vertex buffer by rendering. More...
 
- Public Member Functions inherited from Ogre::RenderToVertexBuffer
 RenderToVertexBuffer ()
 
virtual ~RenderToVertexBuffer ()
 
unsigned int getMaxVertexCount () const
 Get the maximum number of vertices that the buffer will hold. More...
 
RenderOperation::OperationType getOperationType () const
 What type of primitives does this object generate? More...
 
const MaterialPtrgetRenderToBufferMaterial ()
 Get the material which is used to render the geometry into the vertex buffer. More...
 
bool getResetsEveryUpdate () const
 Does this object reset its buffer each time it updates? More...
 
const RenderablegetSourceRenderable () const
 Get the source renderable of this object. More...
 
VertexDeclarationgetVertexDeclaration ()
 Get the vertex declaration that the pass will output. More...
 
virtual void reset ()
 Reset the vertex buffer to the initial state. More...
 
void setMaxVertexCount (unsigned int maxVertexCount)
 Set the maximum number of vertices that the buffer will hold. More...
 
void setOperationType (RenderOperation::OperationType operationType)
 Set the type of primitives that this object generates. More...
 
void setRenderToBufferMaterialName (const String &materialName)
 Set the material name which is used to render the geometry into the vertex buffer. More...
 
void setResetsEveryUpdate (bool resetsEveryUpdate)
 Set whether this object resets its buffers each time it updates. More...
 
void setSourceRenderable (Renderable *source)
 Set the source renderable of this object. More...
 

Detailed Description

An object which renders geometry to a vertex.

Remarks
This is especially useful together with geometry shaders, as you can render procedural geometry which will get saved to a vertex buffer for reuse later, without regenerating it again. You can also create shaders that run on previous results of those shaders, creating stateful shaders.

Constructor & Destructor Documentation

◆ D3D11RenderToVertexBuffer()

Ogre::D3D11RenderToVertexBuffer::D3D11RenderToVertexBuffer ( D3D11Device device,
D3D11HardwareBufferManagerBase bufManager 
)

◆ ~D3D11RenderToVertexBuffer()

virtual Ogre::D3D11RenderToVertexBuffer::~D3D11RenderToVertexBuffer ( void  )
virtual

Member Function Documentation

◆ getRenderOperation()

virtual void Ogre::D3D11RenderToVertexBuffer::getRenderOperation ( RenderOperation op)
virtual

Get the render operation for this buffer.

Implements Ogre::RenderToVertexBuffer.

◆ update()

virtual void Ogre::D3D11RenderToVertexBuffer::update ( SceneManager sceneMgr)
virtual

Update the contents of this vertex buffer by rendering.

Implements Ogre::RenderToVertexBuffer.

◆ reallocateBuffer()

void Ogre::D3D11RenderToVertexBuffer::reallocateBuffer ( size_t  index)

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