#include <OGREInterfaces.h>
Inherits DigitalSpaces::DIObjectBase.
Public Member Functions | |
| unsigned long | GetElementCount (void) |
| Get the number of elements in the declaration. | |
| DIOGREVertexElement * | GetElement (unsigned short index) |
| Gets read-only access to the list of vertex elements. | |
| void | Sort (void) |
| Sorts the elements in this list to be compatible with the maximum number of rendering APIs / graphics cards. | |
| void | CloseGapsInSource (void) |
| Remove any gaps in the source buffer list used by this declaration. | |
| DIOGREVertexDeclaration * | GetAutoOrganisedDeclaration (bool skeletalAnimation, bool vertexAnimation) |
| Generates a new VertexDeclaration for optimal usage based on the current vertex declaration, which can be used with VertexData::reorganiseBuffers later if you wish, or simply used as a template. | |
| unsigned short | GetMaxSource (void) |
| Gets the indeex of the highest source value referenced by this declaration. | |
| DIOGREVertexElement * | AddElement (unsigned short source, unsigned long offset, OGREVertexElementType theType, OGREVertexElementSemantic semantic) |
| Adds a new VertexElement to this declaration. | |
| DIOGREVertexElement * | AddElement (unsigned short source, unsigned long offset, OGREVertexElementType theType, OGREVertexElementSemantic semantic, unsigned short index) |
| DIOGREVertexElement * | InsertElement (unsigned short atPosition, unsigned short source, unsigned long offset, OGREVertexElementType theType, OGREVertexElementSemantic semantic) |
| Inserts a new VertexElement at a given position in this declaration. | |
| DIOGREVertexElement * | InsertElement (unsigned short atPosition, unsigned short source, unsigned long offset, OGREVertexElementType theType, OGREVertexElementSemantic semantic, unsigned short index) |
| void | RemoveElement (unsigned short elem_index) |
| Remove the element at the given index from this declaration. | |
| void | RemoveElement (OGREVertexElementSemantic semantic) |
| Remove the element with the given semantic and usage index. | |
| void | RemoveElement (OGREVertexElementSemantic semantic, unsigned short index) |
| void | ModifyElement (unsigned short elem_index, unsigned short source, unsigned long offset, OGREVertexElementType theType, OGREVertexElementSemantic semantic) |
| Modify an element in-place, params as addElement. | |
| void | ModifyElement (unsigned short elem_index, unsigned short source, unsigned long offset, OGREVertexElementType theType, OGREVertexElementSemantic semantic, unsigned short index) |
| DIOGREVertexElement * | FindElementBySemantic (OGREVertexElementSemantic sem) |
| Finds a VertexElement with the given semantic, and index if there is more than one element with the same semantic. | |
| DIOGREVertexElement * | FindElementBySemantic (OGREVertexElementSemantic sem, unsigned short index) |
| unsigned long | GetVertexSize (unsigned short source) |
| Based on the current elements, gets the size of the vertex for a given buffer source. | |
| DIOGREVertexDeclaration * | Clone (void) |
| Clones this declaration. | |
| unsigned long DigitalSpaces::DIOGREVertexDeclaration::GetElementCount | ( | void | ) |
Get the number of elements in the declaration.
| DIOGREVertexElement* DigitalSpaces::DIOGREVertexDeclaration::GetElement | ( | unsigned short | index | ) |
Gets read-only access to the list of vertex elements.
Get a single element.
| void DigitalSpaces::DIOGREVertexDeclaration::Sort | ( | void | ) |
Sorts the elements in this list to be compatible with the maximum number of rendering APIs / graphics cards.
| void DigitalSpaces::DIOGREVertexDeclaration::CloseGapsInSource | ( | void | ) |
Remove any gaps in the source buffer list used by this declaration.
| DIOGREVertexDeclaration* DigitalSpaces::DIOGREVertexDeclaration::GetAutoOrganisedDeclaration | ( | bool | skeletalAnimation, | |
| bool | vertexAnimation | |||
| ) |
Generates a new VertexDeclaration for optimal usage based on the current vertex declaration, which can be used with VertexData::reorganiseBuffers later if you wish, or simply used as a template.
| animated | Whether this vertex data is going to be animated; this affects the choice of both usage and buffer splits. |
| unsigned short DigitalSpaces::DIOGREVertexDeclaration::GetMaxSource | ( | void | ) |
Gets the indeex of the highest source value referenced by this declaration.
| DIOGREVertexElement* DigitalSpaces::DIOGREVertexDeclaration::AddElement | ( | unsigned short | source, | |
| unsigned long | offset, | |||
| OGREVertexElementType | theType, | |||
| OGREVertexElementSemantic | semantic | |||
| ) |
Adds a new VertexElement to this declaration.
| source | The binding index of HardwareVertexBuffer which will provide the source for this element. See VertexBufferBindingState for full information. | |
| offset | The offset in bytes where this element is located in the buffer | |
| theType | The data format of the element (3 floats, a colour etc) | |
| semantic | The meaning of the data (position, normal, diffuse colour etc) | |
| index | Optional index for multi-input elements like texture coordinates |
| DIOGREVertexElement* DigitalSpaces::DIOGREVertexDeclaration::AddElement | ( | unsigned short | source, | |
| unsigned long | offset, | |||
| OGREVertexElementType | theType, | |||
| OGREVertexElementSemantic | semantic, | |||
| unsigned short | index | |||
| ) |
| DIOGREVertexElement* DigitalSpaces::DIOGREVertexDeclaration::InsertElement | ( | unsigned short | atPosition, | |
| unsigned short | source, | |||
| unsigned long | offset, | |||
| OGREVertexElementType | theType, | |||
| OGREVertexElementSemantic | semantic | |||
| ) |
Inserts a new VertexElement at a given position in this declaration.
| source | The binding index of HardwareVertexBuffer which will provide the source for this element. See VertexBufferBindingState for full information. | |
| offset | The offset in bytes where this element is located in the buffer | |
| theType | The data format of the element (3 floats, a colour etc) | |
| semantic | The meaning of the data (position, normal, diffuse colour etc) | |
| index | Optional index for multi-input elements like texture coordinates |
| DIOGREVertexElement* DigitalSpaces::DIOGREVertexDeclaration::InsertElement | ( | unsigned short | atPosition, | |
| unsigned short | source, | |||
| unsigned long | offset, | |||
| OGREVertexElementType | theType, | |||
| OGREVertexElementSemantic | semantic, | |||
| unsigned short | index | |||
| ) |
| void DigitalSpaces::DIOGREVertexDeclaration::RemoveElement | ( | unsigned short | elem_index | ) |
Remove the element at the given index from this declaration.
| void DigitalSpaces::DIOGREVertexDeclaration::RemoveElement | ( | OGREVertexElementSemantic | semantic | ) |
Remove the element with the given semantic and usage index.
| void DigitalSpaces::DIOGREVertexDeclaration::RemoveElement | ( | OGREVertexElementSemantic | semantic, | |
| unsigned short | index | |||
| ) |
| void DigitalSpaces::DIOGREVertexDeclaration::ModifyElement | ( | unsigned short | elem_index, | |
| unsigned short | source, | |||
| unsigned long | offset, | |||
| OGREVertexElementType | theType, | |||
| OGREVertexElementSemantic | semantic | |||
| ) |
Modify an element in-place, params as addElement.
| void DigitalSpaces::DIOGREVertexDeclaration::ModifyElement | ( | unsigned short | elem_index, | |
| unsigned short | source, | |||
| unsigned long | offset, | |||
| OGREVertexElementType | theType, | |||
| OGREVertexElementSemantic | semantic, | |||
| unsigned short | index | |||
| ) |
| DIOGREVertexElement* DigitalSpaces::DIOGREVertexDeclaration::FindElementBySemantic | ( | OGREVertexElementSemantic | sem | ) |
Finds a VertexElement with the given semantic, and index if there is more than one element with the same semantic.
| DIOGREVertexElement* DigitalSpaces::DIOGREVertexDeclaration::FindElementBySemantic | ( | OGREVertexElementSemantic | sem, | |
| unsigned short | index | |||
| ) |
| unsigned long DigitalSpaces::DIOGREVertexDeclaration::GetVertexSize | ( | unsigned short | source | ) |
Based on the current elements, gets the size of the vertex for a given buffer source.
| source | The buffer binding index for which to get the vertex size. Gets a list of elements which use a given source. |
| DIOGREVertexDeclaration* DigitalSpaces::DIOGREVertexDeclaration::Clone | ( | void | ) |
Clones this declaration.
1.5.6