Go to the documentation of this file.
28 #ifndef __InstanceBatchHW_VTF_H__
29 #define __InstanceBatchHW_VTF_H__
73 const HWBoneIdxVec &hwBoneIdx,
const HWBoneWgtVec& hwBoneWgt );
vector< unsigned short >::type IndexMap
bool isStatic() const
Returns true if this batch was set as static.
void createVertexSemantics(VertexData *thisVertexData, VertexData *baseVertexData, const HWBoneIdxVec &hwBoneIdx, const HWBoneWgtVec &hwBoneWgt)
Creates 2 TEXCOORD semantics that will be used to sample the vertex texture.
A viewpoint from which the scene will be rendered.
HardwareVertexBufferSharedPtr mInstanceVertexBuffer
void setupVertices(const SubMesh *baseSubMesh)
void _boundsDirty(void)
Overloaded so that we don't perform needless updates when in static mode.
virtual void _updateRenderQueue(RenderQueue *queue)
Overloaded to visibility on a per unit basis and finally updated the vertex texture.
This is the main starting point for the new instancing system.
virtual size_t updateInstanceDataBuffer(bool isFirstTime, Camera *currentCamera)
updates the vertex buffer containing the per instance data
Summary class collecting together vertex source information.
Shared pointer implementation used to share vertex buffers.
size_t calculateMaxNumInstances(const SubMesh *baseSubMesh, uint16 flags) const
Defines a part of a complete mesh.
virtual ~InstanceBatchHW_VTF()
virtual bool checkSubMeshCompatibility(const SubMesh *baseSubMesh)
Returns false on errors that would prevent building this batch from the given submesh.
Instancing implementation using vertex texture through Vertex Texture Fetch (VTF) This implementation...
size_t updateVertexTexture(Camera *currentCamera)
Keeps filling the VTF with world matrix data.
virtual bool matricesTogetherPerRow() const
Affects VTF texture's width dimension.
Instancing implementation using vertex texture through Vertex Texture Fetch (VTF) and hardware instan...
InstanceBatchHW_VTF(InstanceManager *creator, MeshPtr &meshReference, const MaterialPtr &material, size_t instancesPerBatch, const Mesh::IndexMap *indexToBoneMap, const String &batchName)
void setupIndices(const SubMesh *baseSubMesh)
void setStaticAndUpdate(bool bStatic)
Class to manage the scene object rendering queue.
vector< uint8 >::type HWBoneIdxVec
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.