28#ifndef __RenderToVertexBuffer_H__
29#define __RenderToVertexBuffer_H__
'New' rendering operation using vertex buffers.
OperationType
The rendering operation type to perform.
unsigned int mMaxVertexCount
void setSourceRenderable(Renderable *source)
Set the source renderable of this object.
void setRenderToBufferMaterialName(const String &materialName)
Set the material name which is used to render the geometry into the vertex buffer.
virtual void reset()
Reset the vertex buffer to the initial state.
Renderable * mSourceRenderable
void setMaxVertexCount(unsigned int maxVertexCount)
Set the maximum number of vertices that the buffer will hold.
virtual void getRenderOperation(RenderOperation &op)=0
Get the render operation for this buffer.
void setOperationType(RenderOperation::OperationType operationType)
Set the type of primitives that this object generates.
RenderOperation::OperationType getOperationType() const
What type of primitives does this object generate?
unsigned int getMaxVertexCount() const
Get the maximum number of vertices that the buffer will hold.
virtual ~RenderToVertexBuffer()
D'tor.
bool getResetsEveryUpdate() const
Does this object reset its buffer each time it updates?
void setResetsEveryUpdate(bool resetsEveryUpdate)
Set whether this object resets its buffers each time it updates.
RenderToVertexBuffer()
C'tor.
RenderOperation::OperationType mOperationType
const Renderable * getSourceRenderable() const
Get the source renderable of this object.
virtual void update(SceneManager *sceneMgr)=0
Update the contents of this vertex buffer by rendering.
const MaterialPtr & getRenderToBufferMaterial()
Get the material which is used to render the geometry into the vertex buffer.
VertexDeclaration * getVertexDeclaration()
Abstract class defining the interface all renderable objects must implement.
Manages the organisation and rendering of a 'scene' i.e.
Reference-counted shared pointer, used for objects where implicit destruction is required.
Summary class collecting together vertex source information.
This class declares the format of a set of vertex inputs, which can be issued to the rendering API th...
SharedPtr< RenderToVertexBuffer > RenderToVertexBufferSharedPtr
SharedPtr< Material > MaterialPtr