|  | OGRE-Next
    2.3
    Object-Oriented Graphics Rendering Engine | 
This class declares the usage of a single vertex buffer as a component of a complete VertexDeclaration. More...
#include <OgreHardwareVertexBuffer.h>
 Inheritance diagram for Ogre::v1::VertexElement:
 Inheritance diagram for Ogre::v1::VertexElement:| Public Member Functions | |
| VertexElement () | |
| Constructor, should not be called directly, only needed because of list.  More... | |
| VertexElement (unsigned short source, size_t offset, VertexElementType theType, VertexElementSemantic semantic, unsigned short index=0) | |
| Constructor, should not be called directly, call VertexDeclaration::addElement.  More... | |
| void | baseVertexPointerToElement (void *pBase, float **pElem) const | 
| Adjusts a pointer to the base of a vertex to point at this element.  More... | |
| void | baseVertexPointerToElement (void *pBase, RGBA **pElem) const | 
| Adjusts a pointer to the base of a vertex to point at this element.  More... | |
| void | baseVertexPointerToElement (void *pBase, unsigned char **pElem) const | 
| Adjusts a pointer to the base of a vertex to point at this element.  More... | |
| void | baseVertexPointerToElement (void *pBase, unsigned short **pElem) const | 
| Adjusts a pointer to the base of a vertex to point at this element.  More... | |
| void | baseVertexPointerToElement (void *pBase, void **pElem) const | 
| Adjusts a pointer to the base of a vertex to point at this element.  More... | |
| unsigned short | getIndex () const | 
| Gets the index of this element, only applicable for repeating elements.  More... | |
| size_t | getOffset () const | 
| Gets the offset into the buffer where this element starts.  More... | |
| VertexElementSemantic | getSemantic () const | 
| Gets the meaning of this element.  More... | |
| size_t | getSize () const | 
| Gets the size of this element in bytes.  More... | |
| unsigned short | getSource () const | 
| Gets the vertex buffer index from where this element draws it's values.  More... | |
| VertexElementType | getType () const | 
| Gets the data format of this element.  More... | |
| 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  More... | |
| void * | operator new (size_t sz, void *ptr) | 
| placement operator new  More... | |
| 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  More... | |
| 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.  More... | |
| static void | convertColourValue (VertexElementType srcType, VertexElementType dstType, uint32 *ptr) | 
| Utility method for converting colour from one packed 32-bit colour type to another.  More... | |
| static VertexElementType | getBaseType (VertexElementType multiType) | 
| Simple converter function which will a type into it's single-value equivalent - makes switches on type easier.  More... | |
| static VertexElementType | getBestColourVertexElementType () | 
| Utility method to get the most appropriate packed colour vertex element format.  More... | |
| static unsigned short | getTypeCount (VertexElementType etype) | 
| Utility method which returns the count of values in a given type.  More... | |
| static size_t | getTypeSize (VertexElementType etype) | 
| Utility method for helping to calculate offsets.  More... | |
| static bool | isTypeNormalized (VertexElementType etype) | 
| Utility method which returns true if the type is SNORM or NORM.  More... | |
| 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.  More... | |
This class declares the usage of a single vertex buffer as a component of a complete VertexDeclaration.
| 
 | inline | 
Constructor, should not be called directly, only needed because of list.
| Ogre::v1::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.
| 
 | inline | 
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. | 
| 
 | inline | 
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. | 
| 
 | inline | 
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. | 
| 
 | inline | 
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. | 
| 
 | inline | 
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. | 
| 
 | 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.
Referenced by Ogre::VertexBufferDownloadHelper::getNormal(), and Ogre::VertexBufferDownloadHelper::getVector4().
| 
 | static | 
Utility method to get the most appropriate packed colour vertex element format.
| 
 | inline | 
Gets the index of this element, only applicable for repeating elements.
| 
 | inline | 
Gets the offset into the buffer where this element starts.
| 
 | inline | 
Gets the meaning of this element.
| size_t Ogre::v1::VertexElement::getSize | ( | ) | const | 
Gets the size of this element in bytes.
| 
 | inline | 
Gets the vertex buffer index from where this element draws it's values.
| 
 | inline | 
Gets the data format of this element.
| 
 | static | 
Utility method which returns the count of values in a given type.
Referenced by Ogre::VertexBufferDownloadHelper::getVector4().
| 
 | static | 
Utility method for helping to calculate offsets.
Referenced by Ogre::VertexBufferDownloadHelper::getNormal(), and Ogre::VertexBufferDownloadHelper::getVector4().
| 
 | static | 
Utility method which returns true if the type is SNORM or NORM.
| 
 | static | 
Simple converter function which will turn a single-value type into a multi-value type based on a parameter.
| 
 | inlineinherited | 
| 
 | inlineinherited | 
| 
 | inlineinherited | 
| 
 | inlineinherited | 
| 
 | inlineinherited | 
| 
 | inlineinherited | 
| 
 | inlineinherited | 
operator new, with debug line info
| 
 | inlineinherited | 
placement operator new
| 
 | inlineinherited | 
| 
 | inlineinherited | 
array operator new, with debug line info
| 
 | inline |