Documentation
















  Site Hosted by:

SourceForge.net Logo


Support This Project


ad::Surface Struct Reference

Chunk of a mesh associated with one material. More...

#include <mesh.h>

Collaboration diagram for ad::Surface:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Surface ()
 Initialize the arrays will null pointers.
 ~Surface ()
 Destroys any arrays that have been allocated.

Public Attributes

unsigned int nameLength
 length of the texture string
char * texturename
 stores the texture filename and path loaded from the file
unsigned int numVerts
SuperVertexsuperVerts
 interleaved vertex array
unsigned int numFaces
Facefaces
 face array
void * userData
 User-defined data, loaded from UserFunction.

Detailed Description

Chunk of a mesh associated with one material.

A surface is the group of geometry that is all mapped to the same material. The geometry is defined by a set of vertices and faces. The surface also contains a pointer to user defined data that gets set when a surface is loaded from a mesh.

See also:
ad::Face, ad::SuperVertex


The documentation for this struct was generated from the following files:

© Copyright 2005 John Butterfield.
All Rights Reserved.