Public Member Functions
physx::apex::NxApexCustomBufferIterator Class Reference

This class is used to access specific elements in an untyped chunk of memory. More...

#include <NxApexCustomBufferIterator.h>

List of all members.

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.

Detailed Description

This class is used to access specific elements in an untyped chunk of memory.


Member Function Documentation

virtual physx::PxI32 physx::apex::NxApexCustomBufferIterator::getAttributeIndex ( const char *  attributeName) const [pure virtual]

Returns the index of a certain custom buffer.

Note:
This is constant throughout the existence of this class.
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.

Parameters:
[in]triangleIndexWhich triangle
[in]vertexIndexWhich of the vertices of this triangle (must be either 0, 1 or 2)
[in]attributeNameThe name of the attribute you wish the data for
[out]outFormatThe 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.

Note:
This is the faster method than the one above since it won't do any string comparisons
Parameters:
[in]triangleIndexWhich triangle
[in]vertexIndexWhich of the vertices of this triangle (must be either 0, 1 or 2)
[in]attributeIndexThe indexof the attribute you wish the data for (use NxApexCustomBufferIterator::getAttributeIndex to find the index to a certain attribute name
[out]outFormatThe format of the attribute, reinterpret_cast the void pointer accordingly.
[out]outNameThe name associated with the attribute

The documentation for this class was generated from the following file:

Generated on Mon Apr 28 2014 08:01:36

Copyright © 2012-2014 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved.