![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXGLTriangleMesh.h>
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 FXGLObject * | copy () |
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 () |
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.
virtual FXGLObject* FX::FXGLTriangleMesh::copy | ( | ) | [virtual] |
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] |
virtual void FX::FXGLTriangleMesh::load | ( | FXStream & | store | ) | [virtual] |
![]() |