#include <OgreHardwareVertexBuffer.h>
Public Member Functions | |
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, void **pElem) const |
Adjusts a pointer to the base of a vertex to point at this element. | |
void | baseVertexPointerToElement (void *pBase, float **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. | |
void | baseVertexPointerToElement (void *pBase, unsigned short **pElem) const |
Adjusts a pointer to the base of a vertex to point at this element. | |
Static Public Member Functions | |
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. | |
VertexElementType | getBaseType (VertexElementType multiType) |
Simple converter function which will a type into it's single-value equivalent - makes switches on type easier. | |
void | convertColourValue (VertexElementType srcType, VertexElementType dstType, uint32 *ptr) |
Utility method for converting colour from one packed 32-bit colour type to another. | |
uint32 | convertColourValue (const ColourValue &src, VertexElementType dst) |
Utility method for converting colour to a packed 32-bit colour type. | |
VertexElementType | getBestColourVertexElementType (void) |
Utility method to get the most appropriate packed colour vertex element format. | |
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 121 of file OgreHardwareVertexBuffer.h.
|
Constructor, should not be called directly, call VertexDeclaration::addElement.
|
|
Adjusts a pointer to the base of a vertex to point at this element.
Definition at line 258 of file OgreHardwareVertexBuffer.h. |
|
Adjusts a pointer to the base of a vertex to point at this element.
Definition at line 246 of file OgreHardwareVertexBuffer.h. |
|
Adjusts a pointer to the base of a vertex to point at this element.
Definition at line 233 of file OgreHardwareVertexBuffer.h. References Ogre::RGBA. |
|
Adjusts a pointer to the base of a vertex to point at this element.
Definition at line 216 of file OgreHardwareVertexBuffer.h. |
|
Adjusts a pointer to the base of a vertex to point at this element.
Definition at line 202 of file OgreHardwareVertexBuffer.h. |
|
Utility method for converting colour to a packed 32-bit colour type.
|
|
Utility method for converting colour from one packed 32-bit colour type to another.
|
|
Simple converter function which will a type into it's single-value equivalent - makes switches on type easier.
|
|
Utility method to get the most appropriate packed colour vertex element format.
|
|
Gets the index of this element, only applicable for repeating elements.
Definition at line 147 of file OgreHardwareVertexBuffer.h. |
|
Gets the offset into the buffer where this element starts.
Definition at line 141 of file OgreHardwareVertexBuffer.h. |
|
Gets the meaning of this element.
Definition at line 145 of file OgreHardwareVertexBuffer.h. References Ogre::VertexElementSemantic. |
|
Gets the size of this element in bytes.
|
|
Gets the vertex buffer index from where this element draws it's values.
Definition at line 139 of file OgreHardwareVertexBuffer.h. |
|
Gets the data format of this element.
Definition at line 143 of file OgreHardwareVertexBuffer.h. References Ogre::VertexElementType. |
|
Utility method which returns the count of values in a given type.
|
|
Utility method for helping to calculate offsets.
|
|
Simple converter function which will turn a single-value type into a multi-value type based on a parameter.
|
|
Definition at line 183 of file OgreHardwareVertexBuffer.h. |
|
Index of the item, only applicable for some elements like texture coords.
Definition at line 133 of file OgreHardwareVertexBuffer.h. Referenced by operator==(). |
|
The offset in the buffer that this element starts at.
Definition at line 127 of file OgreHardwareVertexBuffer.h. Referenced by operator==(). |
|
The meaning of the element.
Definition at line 131 of file OgreHardwareVertexBuffer.h. Referenced by operator==(). |
|
The source vertex buffer, as bound to an index using VertexBufferBinding.
Definition at line 125 of file OgreHardwareVertexBuffer.h. Referenced by operator==(). |
|
The type of element.
Definition at line 129 of file OgreHardwareVertexBuffer.h. Referenced by operator==(). |
Copyright © 2000-2005 by The OGRE Team
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Mar 12 14:39:16 2006