This class is used to access specific elements in an untyped chunk of memory. More...
#include <NxApexCustomBufferIterator.h>
Public Member Functions | |
| virtual void * | getVertex (physx::PxU32 triangleIndex, physx::PxU32 vertexIndex) const =0 |
| Returns the memory start of a specific vertex. | |
| virtual physx::PxI32 | getAttributeIndex (const char *attributeName) const =0 |
| Returns the index of a certain custom buffer. | |
| virtual void * | getVertexAttribute (physx::PxU32 triangleIndex, physx::PxU32 vertexIndex, const char *attributeName, NxRenderDataFormat::Enum &outFormat) const =0 |
| Returns a pointer to a certain attribute of the specified vertex/triangle. | |
| virtual void * | getVertexAttribute (physx::PxU32 triangleIndex, physx::PxU32 vertexIndex, physx::PxU32 attributeIndex, NxRenderDataFormat::Enum &outFormat, const char *&outName) const =0 |
| Returns a pointer to a certain attribute of the specified vertex/triangle. | |
This class is used to access specific elements in an untyped chunk of memory.
| virtual physx::PxI32 physx::apex::NxApexCustomBufferIterator::getAttributeIndex | ( | const char * | attributeName | ) | const [pure virtual] |
Returns the index of a certain custom buffer.
| virtual void* physx::apex::NxApexCustomBufferIterator::getVertex | ( | physx::PxU32 | triangleIndex, |
| physx::PxU32 | vertexIndex | ||
| ) | const [pure virtual] |
Returns the memory start of a specific vertex.
All custom buffers are stored interleaved, so this is also the memory start of the first attribute of this vertex.
| virtual void* physx::apex::NxApexCustomBufferIterator::getVertexAttribute | ( | physx::PxU32 | triangleIndex, |
| physx::PxU32 | vertexIndex, | ||
| const char * | attributeName, | ||
| NxRenderDataFormat::Enum & | outFormat | ||
| ) | const [pure virtual] |
Returns a pointer to a certain attribute of the specified vertex/triangle.
| [in] | triangleIndex | Which triangle |
| [in] | vertexIndex | Which of the vertices of this triangle (must be either 0, 1 or 2) |
| [in] | attributeName | The name of the attribute you wish the data for |
| [out] | outFormat | The format of the attribute, reinterpret_cast the void pointer accordingly. |
| virtual void* physx::apex::NxApexCustomBufferIterator::getVertexAttribute | ( | physx::PxU32 | triangleIndex, |
| physx::PxU32 | vertexIndex, | ||
| physx::PxU32 | attributeIndex, | ||
| NxRenderDataFormat::Enum & | outFormat, | ||
| const char *& | outName | ||
| ) | const [pure virtual] |
Returns a pointer to a certain attribute of the specified vertex/triangle.
| [in] | triangleIndex | Which triangle |
| [in] | vertexIndex | Which of the vertices of this triangle (must be either 0, 1 or 2) |
| [in] | attributeIndex | The indexof the attribute you wish the data for (use NxApexCustomBufferIterator::getAttributeIndex to find the index to a certain attribute name |
| [out] | outFormat | The format of the attribute, reinterpret_cast the void pointer accordingly. |
| [out] | outName | The name associated with the attribute |