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

FX::FXGLTriangleMesh Class Reference

OpenGL Triangle Mesh Object. More...

#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)
FXfloat * getVertexBuffer () const
void setColorBuffer (FXfloat *colors)
FXfloat * getColorBuffer () const
void setNormalBuffer (FXfloat *normals)
FXfloat * getNormalBuffer () const
void setTextureCoordBuffer (FXfloat *textures)
FXfloat * getTextureCoordBuffer () 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.

FX::FXGLTriangleMesh::FXGLTriangleMesh const FXGLTriangleMesh orig  ) 
 

Copy constructor.

virtual FX::FXGLTriangleMesh::~FXGLTriangleMesh  )  [virtual]
 

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.

FXint FX::FXGLTriangleMesh::getVertexNumber  )  const [inline]
 

Get number of vertices.

void FX::FXGLTriangleMesh::setVertexBuffer FXfloat *  vertices  ) 
 

Set vertex buffer.

FXfloat* FX::FXGLTriangleMesh::getVertexBuffer  )  const [inline]
 

Get vertex buffer.

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

Set color buffer.

FXfloat* FX::FXGLTriangleMesh::getColorBuffer  )  const [inline]
 

Get color buffer.

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

Set normals buffer.

FXfloat* FX::FXGLTriangleMesh::getNormalBuffer  )  const [inline]
 

Get normals buffer.

void FX::FXGLTriangleMesh::setTextureCoordBuffer FXfloat *  textures  )  [inline]
 

Set texture coordinate buffer.

FXfloat* FX::FXGLTriangleMesh::getTextureCoordBuffer  )  const [inline]
 

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-2004 Jeroen van der Zijp