Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

nvsg::Face< n > Struct Template Reference

Helper class for Quads and Triangles. More...

#include <Face.h>

List of all members.

Public Methods

unsigned int & operator[] (size_t i)
 Random access operator for more convenient usage. More...

const unsigned int & operator[] (size_t i) const
 Random access operator for more convenient usage, constant version. More...


Public Attributes

unsigned int indices [n]
 Array of indices into a vertex array. Indices have a precision of 32-bits! More...


Detailed Description

template<size_t n>
struct nvsg::Face< n >

Helper class for Quads and Triangles.

A Face consists of indices into a vertex array, forming a face.


Member Function Documentation

template<size_t n>
unsigned int& nvsg::Face< n >::operator[] size_t    i [inline]
 

Random access operator for more convenient usage.

Returns:
index of vertex i of this Face in a vertex array
Parameters:
i  index into the Face<n> (0,1,...,n-1)

template<size_t n>
const unsigned int& nvsg::Face< n >::operator[] size_t    i const [inline]
 

Random access operator for more convenient usage, constant version.

Returns:
index of vertex i of this Face in a vertex array
Parameters:
i  index into the Face<n> (0,1,...,n-1)


Member Data Documentation

template<size_t n>
unsigned int nvsg::Face< n >::indices[n]
 

Array of indices into a vertex array. Indices have a precision of 32-bits!


The documentation for this struct was generated from the following file:
Generated on Tue Mar 1 13:20:25 2005 for NVSGSDK by NVIDIA