This class declares the usage of a single vertex buffer as a component of a complete VertexDeclaration.
More...
#include <OgreHardwareVertexBuffer.h>
|
| | 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 () const |
| | Gets the index of this element, only applicable for repeating elements.
|
| |
| size_t | getOffset () const |
| | Gets the offset into the buffer where this element starts.
|
| |
| VertexElementSemantic | getSemantic () const |
| | Gets the meaning of this element.
|
| |
| uint32 | getSize () const |
| | Gets the size of this element in bytes.
|
| |
| unsigned short | getSource () const |
| | Gets the vertex buffer index from where this element draws it's values.
|
| |
| VertexElementType | getType () const |
| | Gets the data format of this element.
|
| |
| bool | operator== (const VertexElement &rhs) const |
| |
This class declares the usage of a single vertex buffer as a component of a complete VertexDeclaration.
◆ VertexElement() [1/2]
| Ogre::v1::VertexElement::VertexElement |
( |
| ) |
|
|
inline |
Constructor, should not be called directly, only needed because of list.
Referenced by operator==().
◆ VertexElement() [2/2]
◆ baseVertexPointerToElement() [1/5]
| void Ogre::v1::VertexElement::baseVertexPointerToElement |
( |
void * | pBase, |
|
|
float ** | pElem ) const |
|
inline |
Adjusts a pointer to the base of a vertex to point at this element.
- Parameters
-
| 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. |
◆ baseVertexPointerToElement() [2/5]
| void Ogre::v1::VertexElement::baseVertexPointerToElement |
( |
void * | pBase, |
|
|
RGBA ** | pElem ) const |
|
inline |
Adjusts a pointer to the base of a vertex to point at this element.
- Parameters
-
| 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. |
◆ baseVertexPointerToElement() [3/5]
| void Ogre::v1::VertexElement::baseVertexPointerToElement |
( |
void * | pBase, |
|
|
unsigned char ** | pElem ) const |
|
inline |
Adjusts a pointer to the base of a vertex to point at this element.
- Parameters
-
| 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. |
◆ baseVertexPointerToElement() [4/5]
| void Ogre::v1::VertexElement::baseVertexPointerToElement |
( |
void * | pBase, |
|
|
unsigned short ** | pElem ) const |
|
inline |
Adjusts a pointer to the base of a vertex to point at this element.
- Parameters
-
| 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. |
◆ baseVertexPointerToElement() [5/5]
| void Ogre::v1::VertexElement::baseVertexPointerToElement |
( |
void * | pBase, |
|
|
void ** | pElem ) const |
|
inline |
Adjusts a pointer to the base of a vertex to point at this element.
- Parameters
-
| 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. |
◆ convertColourValue() [1/2]
Utility method for converting colour to a packed 32-bit colour type.
- Parameters
-
| src | source colour |
| dst | The destination type |
◆ convertColourValue() [2/2]
Utility method for converting colour from one packed 32-bit colour type to another.
- Parameters
-
| srcType | The source type |
| dstType | The destination type |
| ptr | Read / write value to change |
◆ getBaseType()
◆ getBestColourVertexElementType()
Utility method to get the most appropriate packed colour vertex element format.
◆ getIndex()
| unsigned short Ogre::v1::VertexElement::getIndex |
( |
| ) |
const |
|
inline |
Gets the index of this element, only applicable for repeating elements.
◆ getOffset()
| size_t Ogre::v1::VertexElement::getOffset |
( |
| ) |
const |
|
inline |
Gets the offset into the buffer where this element starts.
◆ getSemantic()
Gets the meaning of this element.
◆ getSize()
| uint32 Ogre::v1::VertexElement::getSize |
( |
| ) |
const |
Gets the size of this element in bytes.
◆ getSource()
| unsigned short Ogre::v1::VertexElement::getSource |
( |
| ) |
const |
|
inline |
Gets the vertex buffer index from where this element draws it's values.
◆ getType()
Gets the data format of this element.
◆ getTypeCount()
◆ getTypeSize()
◆ isTypeNormalized()
Utility method which returns true if the type is SNORM or NORM.
◆ multiplyTypeCount()
Simple converter function which will turn a single-value type into a multi-value type based on a parameter.
◆ operator==()
| bool Ogre::v1::VertexElement::operator== |
( |
const VertexElement & | rhs | ) |
const |
|
inline |
The documentation for this class was generated from the following file: