Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXGLTriangleMesh Class Reference

#include <FXGLTriangleMesh.h>

Inheritance diagram for FX::FXGLTriangleMesh:
FX::FXGLShape FX::FXGLObject FX::FXObject

List of all members.

Public Member Functions

 FXGLTriangleMesh (FXfloat x, FXfloat y, FXfloat z, FXint nv, FXfloat *v, FXfloat *n=NULL, FXfloat *c=NULL, FXfloat *t=NULL)
 FXGLTriangleMesh (FXfloat x, FXfloat y, FXfloat z, FXint nv, FXfloat *v, FXfloat *n, FXfloat *c, FXfloat *t, const FXMaterial &mtl)
 FXGLTriangleMesh (const FXGLTriangleMesh &orig)
virtual FXGLObjectcopy ()
void setVertexNumber (FXint nvertices)
FXint getVertexNumber () const
void setVertexBuffer (FXfloat *vertices)
FXfloatgetVertexBuffer () const
void setColorBuffer (FXfloat *colors)
FXfloatgetColorBuffer () const
void setNormalBuffer (FXfloat *normals)
FXfloatgetNormalBuffer () const
void setTextureCoordBuffer (FXfloat *textures)
FXfloatgetTextureCoordBuffer () const
virtual void save (FXStream &store) const
virtual void load (FXStream &store)
virtual ~FXGLTriangleMesh ()

Detailed Description

OpenGL Triangle Mesh Object.


Constructor & Destructor Documentation

FX::FXGLTriangleMesh::FXGLTriangleMesh ( FXfloat  x,
FXfloat  y,
FXfloat  z,
FXint  nv,
FXfloat v,
FXfloat n = NULL,
FXfloat c = NULL,
FXfloat t = NULL 
)

Construct triangle mesh with nv vertices, and optional normals, colors, and texture coordinates.

FX::FXGLTriangleMesh::FXGLTriangleMesh ( FXfloat  x,
FXfloat  y,
FXfloat  z,
FXint  nv,
FXfloat v,
FXfloat n,
FXfloat c,
FXfloat t,
const FXMaterial mtl 
)

Construct triangle mesh with nv vertices, and optional normals, colors, and texture coordinates, and surface material.

Copy constructor.

Destructor.


Member Function Documentation

virtual FXGLObject* FX::FXGLTriangleMesh::copy ( ) [virtual]

Copy this object.

Reimplemented from FX::FXGLShape.

void FX::FXGLTriangleMesh::setVertexNumber ( FXint  nvertices) [inline]

Change number of vertices.

Get number of vertices.

Set vertex buffer.

Get vertex buffer.

void FX::FXGLTriangleMesh::setColorBuffer ( FXfloat colors) [inline]

Set color buffer.

Get color buffer.

void FX::FXGLTriangleMesh::setNormalBuffer ( FXfloat normals) [inline]

Set normals buffer.

Get normals buffer.

Set texture coordinate buffer.

Get texture coordinate buffer.

virtual void FX::FXGLTriangleMesh::save ( FXStream store) const [virtual]

Save to a stream.

Reimplemented from FX::FXGLShape.

virtual void FX::FXGLTriangleMesh::load ( FXStream store) [virtual]

Load from a stream.

Reimplemented from FX::FXGLShape.

Copyright © 1997-2005 Jeroen van der Zijp