This class declares the usage of a single vertex buffer as a component of a complete VertexDeclaration. More...
#include <OgreHardwareVertexBuffer.h>
Public Member Functions | |
VertexElement () | |
Constructor, should not be called directly, only needed because of list. | |
VertexElement (unsigned short source, size_t offset, VertexElementType theType, VertexElementSemantic semantic, unsigned short index=0) | |
Constructor, should not be called directly, call VertexDeclaration::addElement. | |
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. | |
void | baseVertexPointerToElement (void *pBase, void **pElem) const |
Adjusts a pointer to the base of a vertex to point at this element. | |
unsigned short | getIndex (void) const |
Gets the index of this element, only applicable for repeating elements. | |
size_t | getOffset (void) const |
Gets the offset into the buffer where this element starts. | |
VertexElementSemantic | getSemantic (void) const |
Gets the meaning of this element. | |
size_t | getSize (void) const |
Gets the size of this element in bytes. | |
unsigned short | getSource (void) const |
Gets the vertex buffer index from where this element draws it's values. | |
VertexElementType | getType (void) const |
Gets the data format of this element. | |
void | operator delete (void *ptr) |
void | operator delete (void *ptr, const char *, int, const char *) |
void | operator delete (void *ptr, void *) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *ptr, const char *, int, const char *) |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, const char *file, int line, const char *func) |
operator new, with debug line info | |
void * | operator new (size_t sz, void *ptr) |
placement operator new | |
void * | operator new[] (size_t sz) |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info | |
bool | operator== (const VertexElement &rhs) const |
Static Public Member Functions | |
static uint32 | convertColourValue (const ColourValue &src, VertexElementType dst) |
Utility method for converting colour to a packed 32-bit colour type. | |
static void | convertColourValue (VertexElementType srcType, VertexElementType dstType, uint32 *ptr) |
Utility method for converting colour from one packed 32-bit colour type to another. | |
static VertexElementType | getBaseType (VertexElementType multiType) |
Simple converter function which will a type into it's single-value equivalent - makes switches on type easier. | |
static VertexElementType | getBestColourVertexElementType (void) |
Utility method to get the most appropriate packed colour vertex element format. | |
static unsigned short | getTypeCount (VertexElementType etype) |
Utility method which returns the count of values in a given type. | |
static size_t | getTypeSize (VertexElementType etype) |
Utility method for helping to calculate offsets. | |
static 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 | mIndex |
Index of the item, only applicable for some elements like texture coords. | |
size_t | mOffset |
The offset in the buffer that this element starts at. | |
VertexElementSemantic | mSemantic |
The meaning of the element. | |
unsigned short | mSource |
The source vertex buffer, as bound to an index using VertexBufferBinding. | |
VertexElementType | mType |
The type of element. | |
This class declares the usage of a single vertex buffer as a component of a complete VertexDeclaration.
Definition at line 167 of file OgreHardwareVertexBuffer.h.
Ogre::VertexElement::VertexElement | ( | ) |
Constructor, should not be called directly, only needed because of list.
Definition at line 182 of file OgreHardwareVertexBuffer.h.
Ogre::VertexElement::VertexElement | ( | unsigned short | source, |
size_t | offset, | ||
VertexElementType | theType, | ||
VertexElementSemantic | semantic, | ||
unsigned short | index = 0 |
||
) |
Constructor, should not be called directly, call VertexDeclaration::addElement.
Adjusts a pointer to the base of a vertex to point at this element.
pBase | Pointer to the start of a vertex in this buffer. |
pElem | Pointer to a pointer which will be set to the start of this element. |
Definition at line 264 of file OgreHardwareVertexBuffer.h.
Adjusts a pointer to the base of a vertex to point at this element.
pBase | Pointer to the start of a vertex in this buffer. |
pElem | Pointer to a pointer which will be set to the start of this element. |
Definition at line 281 of file OgreHardwareVertexBuffer.h.
Adjusts a pointer to the base of a vertex to point at this element.
pBase | Pointer to the start of a vertex in this buffer. |
pElem | Pointer to a pointer which will be set to the start of this element. |
Definition at line 294 of file OgreHardwareVertexBuffer.h.
void Ogre::VertexElement::baseVertexPointerToElement | ( | void * | pBase, |
unsigned short ** | pElem | ||
) | const |
Adjusts a pointer to the base of a vertex to point at this element.
pBase | Pointer to the start of a vertex in this buffer. |
pElem | Pointer to a pointer which will be set to the start of this element. |
Definition at line 306 of file OgreHardwareVertexBuffer.h.
Adjusts a pointer to the base of a vertex to point at this element.
pBase | Pointer to the start of a vertex in this buffer. |
pElem | Pointer to a pointer which will be set to the start of this element. |
Definition at line 250 of file OgreHardwareVertexBuffer.h.
|
static |
Utility method for converting colour to a packed 32-bit colour type.
src | source colour |
dst | The destination type |
|
static |
Utility method for converting colour from one packed 32-bit colour type to another.
srcType | The source type |
dstType | The destination type |
ptr | Read / write value to change |
|
static |
Simple converter function which will a type into it's single-value equivalent - makes switches on type easier.
|
static |
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 195 of file OgreHardwareVertexBuffer.h.
Gets the offset into the buffer where this element starts.
Definition at line 189 of file OgreHardwareVertexBuffer.h.
VertexElementSemantic Ogre::VertexElement::getSemantic | ( | void | ) | const |
Gets the meaning of this element.
Definition at line 193 of file OgreHardwareVertexBuffer.h.
Gets the vertex buffer index from where this element draws it's values.
Definition at line 187 of file OgreHardwareVertexBuffer.h.
VertexElementType Ogre::VertexElement::getType | ( | void | ) | const |
Gets the data format of this element.
Definition at line 191 of file OgreHardwareVertexBuffer.h.
|
static |
Utility method which returns the count of values in a given type.
|
static |
Utility method for helping to calculate offsets.
|
static |
Simple converter function which will turn a single-value type into a multi-value type based on a parameter.
Definition at line 96 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 108 of file OgreMemoryAllocatedObject.h.
Definition at line 102 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 113 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 119 of file OgreMemoryAllocatedObject.h.
Definition at line 73 of file OgreMemoryAllocatedObject.h.
|
inherited |
operator new, with debug line info
Definition at line 68 of file OgreMemoryAllocatedObject.h.
placement operator new
Definition at line 79 of file OgreMemoryAllocatedObject.h.
Definition at line 91 of file OgreMemoryAllocatedObject.h.
|
inherited |
array operator new, with debug line info
Definition at line 86 of file OgreMemoryAllocatedObject.h.
bool Ogre::VertexElement::operator== | ( | const VertexElement & | rhs | ) | const |
Definition at line 231 of file OgreHardwareVertexBuffer.h.
Index of the item, only applicable for some elements like texture coords.
Definition at line 179 of file OgreHardwareVertexBuffer.h.
|
protected |
The offset in the buffer that this element starts at.
Definition at line 173 of file OgreHardwareVertexBuffer.h.
|
protected |
The meaning of the element.
Definition at line 177 of file OgreHardwareVertexBuffer.h.
The source vertex buffer, as bound to an index using VertexBufferBinding.
Definition at line 171 of file OgreHardwareVertexBuffer.h.
|
protected |
The type of element.
Definition at line 175 of file OgreHardwareVertexBuffer.h.
Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.