APEX Framework: nvidia::apex::RenderSubmesh Class Reference

NVIDIA APEX

nvidia::apex::RenderSubmesh Class Reference

a mesh that has only one material (or render state, in general) More...

#include <RenderMesh.h>

List of all members.

Public Member Functions

virtual uint32_t getVertexCount (uint32_t partIndex) const =0
virtual const VertexBuffergetVertexBuffer () const =0
virtual VertexBuffergetVertexBufferWritable ()=0
virtual uint32_t getFirstVertexIndex (uint32_t partIndex) const =0
virtual uint32_t getIndexCount (uint32_t partIndex) const =0
virtual const uint32_t * getIndexBuffer (uint32_t partIndex) const =0
virtual const uint32_t * getSmoothingGroups (uint32_t partIndex) const =0

Detailed Description

a mesh that has only one material (or render state, in general)


Member Function Documentation

virtual uint32_t nvidia::apex::RenderSubmesh::getFirstVertexIndex ( uint32_t  partIndex) const [pure virtual]

Vertices for a given part are contiguous within the vertex buffer. This function returns the first vertex index for the indexed part.

virtual const uint32_t* nvidia::apex::RenderSubmesh::getIndexBuffer ( uint32_t  partIndex) const [pure virtual]

Returns the index buffer associated with the indexed part.

virtual uint32_t nvidia::apex::RenderSubmesh::getIndexCount ( uint32_t  partIndex) const [pure virtual]

Returns the number of indices in the part's index buffer.

virtual const uint32_t* nvidia::apex::RenderSubmesh::getSmoothingGroups ( uint32_t  partIndex) const [pure virtual]

Returns an array of smoothing groups for the given part, if one exists. Otherwise, returns NULL. If not NULL, the size of the array is the number of triangles in the part. Since only triangle lists are currently supported, the size of this array is getIndexCount(partIndex)/3.

virtual const VertexBuffer& nvidia::apex::RenderSubmesh::getVertexBuffer ( ) const [pure virtual]

Returns the submesh's vertex buffer (contains all parts' vertices)

virtual VertexBuffer& nvidia::apex::RenderSubmesh::getVertexBufferWritable ( ) [pure virtual]

Returns the submesh's index buffer (contains all parts' vertices). Can be changed.

virtual uint32_t nvidia::apex::RenderSubmesh::getVertexCount ( uint32_t  partIndex) const [pure virtual]

Returns the number of vertices associated with the indexed part.


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

Generated on Fri Dec 15 2017 13:58:40
Copyright © 2012-2017 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved.