#include <OgreD3D9VertexDeclaration.h>
Inheritance diagram for Ogre::D3D9VertexDeclaration:
Public Types | |
typedef std::list< VertexElement > | VertexElementList |
Defines the list of vertex elements that makes up this declaration. | |
Public Methods | |
D3D9VertexDeclaration (LPDIRECT3DDEVICE9 device) | |
~D3D9VertexDeclaration () | |
const VertexElement & | addElement (unsigned short source, size_t offset, VertexElementType theType, VertexElementSemantic semantic, unsigned short index=0) |
See VertexDeclaration. | |
const VertexElement & | insertElement (unsigned short atPosition, unsigned short source, size_t offset, VertexElementType theType, VertexElementSemantic semantic, unsigned short index=0) |
See VertexDeclaration. | |
void | removeElement (unsigned short elem_index) |
See VertexDeclaration. | |
void | modifyElement (unsigned short elem_index, unsigned short source, size_t offset, VertexElementType theType, VertexElementSemantic semantic, unsigned short index=0) |
See VertexDeclaration. | |
LPDIRECT3DVERTEXDECLARATION9 | getD3DVertexDeclaration (void) |
Gets the D3D9-specific vertex declaration. | |
const VertexElementList & | getElements (void) const |
Gets read-only access to the list of vertex elements. | |
const VertexElement * | getElement (unsigned short index) |
Get a single element. | |
virtual void | removeElement (VertexElementSemantic semantic, unsigned short index=0) |
Remove the element with the given semantic and usage index. | |
virtual const VertexElement * | findElementBySemantic (VertexElementSemantic sem, unsigned short index=0) |
Finds a VertexElement with the given semantic, and index if there is more than one element with the same semantic. | |
virtual VertexElementList | findElementsBySource (unsigned short source) |
Gets a list of elements which use a given source. | |
virtual size_t | getVertexSize (unsigned short source) |
Gets the vertex size defined by this declaration for a given source. | |
virtual VertexDeclaration * | clone (void) |
Clones this declaration. | |
bool | operator== (const VertexDeclaration &rhs) const |
Protected Attributes | |
LPDIRECT3DDEVICE9 | mlpD3DDevice |
LPDIRECT3DVERTEXDECLARATION9 | mlpD3DDecl |
bool | mNeedsRebuild |
VertexElementList | mElementList |
Definition at line 34 of file OgreD3D9VertexDeclaration.h.
|
Defines the list of vertex elements that makes up this declaration.
Definition at line 248 of file OgreHardwareVertexBuffer.h. Referenced by Ogre::VertexDeclaration::findElementsBySource(). |
|
Definition at line 33 of file OgreD3D9VertexDeclaration.cpp. |
|
Definition at line 38 of file OgreD3D9VertexDeclaration.cpp. References mlpD3DDecl, and SAFE_RELEASE. |
|
See VertexDeclaration.
Reimplemented from Ogre::VertexDeclaration. Definition at line 43 of file OgreD3D9VertexDeclaration.cpp. References mNeedsRebuild, Ogre::VertexElementSemantic, and Ogre::VertexElementType. |
|
Clones this declaration.
Definition at line 315 of file OgreHardwareVertexBuffer.cpp. References Ogre::VertexDeclaration::addElement(), and Ogre::VertexDeclaration::mElementList. Referenced by Ogre::PatchMesh::PatchMesh(). |
|
Finds a VertexElement with the given semantic, and index if there is more than one element with the same semantic.
Definition at line 262 of file OgreHardwareVertexBuffer.cpp. References Ogre::VertexDeclaration::mElementList, and Ogre::VertexElementSemantic. Referenced by Ogre::ProgressiveMesh::addWorkingData(), Ogre::Mesh::buildTangentVectors(), Ogre::EdgeListBuilder::buildTrianglesEdges(), Ogre::Entity::cloneVertexDataRemoveBlendInfo(), Ogre::Mesh::compileBoneAssignments(), Ogre::PatchSurface::defineSurface(), Ogre::PatchSurface::distributeControlPoints(), Ogre::Entity::EntityShadowRenderable::EntityShadowRenderable(), Ogre::Entity::extractTempBufferInfo(), Ogre::Mesh::getTangentsBuffer(), Ogre::PatchSurface::interpolateVertexData(), Ogre::EdgeListBuilder::log(), Ogre::VertexData::prepareForShadowVolume(), Ogre::Mesh::softwareVertexBlend(), and Ogre::MeshSerializerImpl::writeGeometry(). |
|
Gets a list of elements which use a given source.
Definition at line 280 of file OgreHardwareVertexBuffer.cpp. References Ogre::VertexDeclaration::mElementList, and Ogre::VertexDeclaration::VertexElementList. |
|
Gets the D3D9-specific vertex declaration.
Definition at line 73 of file OgreD3D9VertexDeclaration.cpp. References Except, Ogre::VertexDeclaration::mElementList, mlpD3DDecl, mlpD3DDevice, mNeedsRebuild, SAFE_RELEASE, Ogre::VES_DIFFUSE, and Ogre::VES_SPECULAR. Referenced by Ogre::D3D9RenderSystem::setVertexDeclaration(). |
|
Get a single element.
Definition at line 216 of file OgreHardwareVertexBuffer.cpp. References Ogre::VertexDeclaration::mElementList. Referenced by Ogre::Mesh::compileBoneAssignments(). |
|
Gets read-only access to the list of vertex elements.
Definition at line 182 of file OgreHardwareVertexBuffer.cpp. References Ogre::VertexDeclaration::mElementList. Referenced by Ogre::GLRenderSystem::_render(), Ogre::D3DRenderSystem::_render(), Ogre::MeshSerializerImpl::calcGeometrySize(), Ogre::VertexData::clone(), and Ogre::VertexData::prepareForShadowVolume(). |
|
|
See VertexDeclaration.
Reimplemented from Ogre::VertexDeclaration. Definition at line 51 of file OgreD3D9VertexDeclaration.cpp. References mNeedsRebuild, Ogre::VertexElementSemantic, and Ogre::VertexElementType. |
|
See VertexDeclaration.
Reimplemented from Ogre::VertexDeclaration. Definition at line 65 of file OgreD3D9VertexDeclaration.cpp. References mNeedsRebuild, Ogre::VertexElementSemantic, and Ogre::VertexElementType. |
|
Definition at line 335 of file OgreHardwareVertexBuffer.h. References Ogre::VertexDeclaration::mElementList. |
|
Remove the element with the given semantic and usage index.
Definition at line 237 of file OgreHardwareVertexBuffer.cpp. References Ogre::VertexDeclaration::mElementList, and Ogre::VertexElementSemantic. |
|
See VertexDeclaration.
Reimplemented from Ogre::VertexDeclaration. Definition at line 59 of file OgreD3D9VertexDeclaration.cpp. References mNeedsRebuild. |
|
|
Definition at line 38 of file OgreD3D9VertexDeclaration.h. Referenced by getD3DVertexDeclaration(), and ~D3D9VertexDeclaration(). |
|
Definition at line 37 of file OgreD3D9VertexDeclaration.h. Referenced by getD3DVertexDeclaration(). |
|
Definition at line 39 of file OgreD3D9VertexDeclaration.h. Referenced by addElement(), getD3DVertexDeclaration(), insertElement(), modifyElement(), and removeElement(). |
Copyright © 2002-2003 by The OGRE Team
Last modified Fri May 14 23:23:56 2004