#include <OgreHardwareVertexBuffer.h>
Public Methods | |
VertexElement (unsigned short source, size_t offset, VertexElementType theType, VertexElementSemantic semantic, unsigned short index=0) | |
Constructor, should not be called directly, call VertexDeclaration::addElement. | |
unsigned short | getSource (void) const |
Gets the vertex buffer index from where this element draws it's values. | |
size_t | getOffset (void) const |
Gets the offset into the buffer where this element starts. | |
VertexElementType | getType (void) const |
Gets the data format of this element. | |
VertexElementSemantic | getSemantic (void) const |
Gets the meaning of this element. | |
unsigned short | getIndex (void) const |
Gets the index of this element, only applicable for repeating elements. | |
size_t | getSize (void) const |
Gets the size of this element in bytes. | |
bool | operator== (const VertexElement &rhs) const |
void | baseVertexPointerToElement (void *pBase, Real **pElem) const |
Adjusts a pointer to the base of a vertex to point at this element. | |
void | baseVertexPointerToElement (void *pBase, RGBA **pElem) const |
Adjusts a pointer to the base of a vertex to point at this element. | |
void | baseVertexPointerToElement (void *pBase, unsigned char **pElem) const |
Adjusts a pointer to the base of a vertex to point at this element. | |
Static Public Methods | |
size_t | getTypeSize (VertexElementType etype) |
Utility method for helping to calculate offsets. | |
unsigned short | getTypeCount (VertexElementType etype) |
Utility method which returns the count of values in a given type. | |
VertexElementType | multiplyTypeCount (VertexElementType baseType, unsigned short count) |
Simple converter function which will turn a single-value type into a multi-value type based on a parameter. | |
Protected Attributes | |
unsigned short | mSource |
The source vertex buffer, as bound to an index using VertexBufferBinding. | |
size_t | mOffset |
The offset in the buffer that this element starts at. | |
VertexElementType | mType |
The type of element. | |
VertexElementSemantic | mSemantic |
The meaning of the element. | |
unsigned short | mIndex |
Index of the item, only applicable for some elements like texture coords. |
Definition at line 115 of file OgreHardwareVertexBuffer.h.
|
Constructor, should not be called directly, call VertexDeclaration::addElement.
Definition at line 63 of file OgreHardwareVertexBuffer.cpp. References Ogre::VertexElementSemantic, and Ogre::VertexElementType. |
|
Adjusts a pointer to the base of a vertex to point at this element.
Definition at line 202 of file OgreHardwareVertexBuffer.h. |
|
Adjusts a pointer to the base of a vertex to point at this element.
Definition at line 189 of file OgreHardwareVertexBuffer.h. References Ogre::RGBA. |
|
Adjusts a pointer to the base of a vertex to point at this element.
Definition at line 172 of file OgreHardwareVertexBuffer.h. References Ogre::Real. Referenced by Ogre::ProgressiveMesh::addWorkingData(), Ogre::PatchSurface::defineSurface(), Ogre::PatchSurface::distributeControlPoints(), Ogre::PatchSurface::interpolateVertexData(), and Ogre::MeshSerializerImpl::writeCondensedVertexBuffer(). |
|
Gets the index of this element, only applicable for repeating elements.
Definition at line 141 of file OgreHardwareVertexBuffer.h. Referenced by Ogre::D3DRenderSystem::_render(), and Ogre::Mesh::compileBoneAssignmentsHardware(). |
|
Gets the offset into the buffer where this element starts.
Definition at line 135 of file OgreHardwareVertexBuffer.h. Referenced by Ogre::D3DRenderSystem::_render(), and Ogre::RenderSystem::softwareVertexBlend(). |
|
Gets the meaning of this element.
Definition at line 139 of file OgreHardwareVertexBuffer.h. References Ogre::VertexElementSemantic. Referenced by Ogre::D3DRenderSystem::_render(). |
|
Gets the size of this element in bytes.
Definition at line 70 of file OgreHardwareVertexBuffer.cpp. References getTypeSize(), and mType. Referenced by Ogre::MeshSerializerImpl::writeCondensedVertexBuffer(), and Ogre::MeshSerializerImpl::writeGeometry(). |
|
Gets the vertex buffer index from where this element draws it's values.
Definition at line 133 of file OgreHardwareVertexBuffer.h. Referenced by Ogre::D3DRenderSystem::_render(), Ogre::ProgressiveMesh::addWorkingData(), Ogre::Mesh::buildTangentVectors(), Ogre::Mesh::getTangentsBuffer(), Ogre::RenderSystem::softwareVertexBlend(), and Ogre::MeshSerializerImpl::writeGeometry(). |
|
Gets the data format of this element.
Definition at line 137 of file OgreHardwareVertexBuffer.h. References Ogre::VertexElementType. Referenced by Ogre::D3DRenderSystem::_render(), Ogre::Mesh::buildTangentVectors(), Ogre::MeshSerializerImpl::calcGeometrySize(), Ogre::PatchSurface::distributeControlPoints(), Ogre::Mesh::getTangentsBuffer(), Ogre::PatchSurface::interpolateVertexData(), Ogre::MeshSerializerImpl::writeCondensedVertexBuffer(), and Ogre::MeshSerializerImpl::writeGeometry(). |
|
Utility method which returns the count of values in a given type.
Definition at line 101 of file OgreHardwareVertexBuffer.cpp. References Except, Ogre::VertexElementType, Ogre::VET_COLOUR, Ogre::VET_FLOAT1, Ogre::VET_FLOAT2, Ogre::VET_FLOAT3, Ogre::VET_FLOAT4, Ogre::VET_SHORT1, Ogre::VET_SHORT2, Ogre::VET_SHORT3, and Ogre::VET_SHORT4. |
|
Utility method for helping to calculate offsets.
Definition at line 75 of file OgreHardwareVertexBuffer.cpp. References Ogre::VertexElementType, Ogre::VET_COLOUR, Ogre::VET_FLOAT1, Ogre::VET_FLOAT2, Ogre::VET_FLOAT3, Ogre::VET_FLOAT4, Ogre::VET_SHORT1, Ogre::VET_SHORT2, Ogre::VET_SHORT3, and Ogre::VET_SHORT4. Referenced by getSize(). |
|
Simple converter function which will turn a single-value type into a multi-value type based on a parameter.
Definition at line 128 of file OgreHardwareVertexBuffer.cpp. References Except, Ogre::VertexElementType, Ogre::VET_FLOAT1, Ogre::VET_FLOAT2, Ogre::VET_FLOAT3, Ogre::VET_FLOAT4, Ogre::VET_SHORT1, Ogre::VET_SHORT2, Ogre::VET_SHORT3, and Ogre::VET_SHORT4. |
|
Definition at line 153 of file OgreHardwareVertexBuffer.h. |
|
Index of the item, only applicable for some elements like texture coords.
Definition at line 127 of file OgreHardwareVertexBuffer.h. Referenced by operator==(). |
|
The offset in the buffer that this element starts at.
Definition at line 121 of file OgreHardwareVertexBuffer.h. Referenced by operator==(). |
|
The meaning of the element.
Definition at line 125 of file OgreHardwareVertexBuffer.h. Referenced by operator==(). |
|
The source vertex buffer, as bound to an index using VertexBufferBinding.
Definition at line 119 of file OgreHardwareVertexBuffer.h. Referenced by operator==(). |
|
The type of element.
Definition at line 123 of file OgreHardwareVertexBuffer.h. Referenced by getSize(), and operator==(). |
Copyright © 2002-2003 by The OGRE Team
Last modified Wed Jan 21 00:21:14 2004