FXGLTriangleMesh

class FXGLTriangleMesh

OpenGL Triangle Mesh Object

Inheritance:


Public Methods

[more] 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
[more] 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
[more] FXGLTriangleMesh(const FXGLTriangleMesh& orig)
Copy constructor
[more]virtual FXGLObject* copy()
Copy this object
[more]void setVertexNumber(FXint nvertices)
Change number of vertices
[more]FXint getVertexNumber() const
Get number of vertices
[more]void setVertexBuffer(FXfloat* vertices)
Set vertex buffer
[more]FXfloat* getVertexBuffer() const
Get vertex buffer
[more]void setColorBuffer(FXfloat* colors)
Set color buffer
[more]FXfloat* getColorBuffer() const
Get color buffer
[more]void setNormalBuffer(FXfloat* normals)
Set normals buffer
[more]FXfloat* getNormalBuffer() const
Get normals buffer
[more]void setTextureCoordBuffer(FXfloat* textures)
Set texture coordinate buffer
[more]FXfloat* getTextureCoordBuffer() const
Get texture coordinate buffer
[more]virtual void save(FXStream& store) const
Save to a stream
[more]virtual void load(FXStream& store)
Load from a stream
[more]virtual ~FXGLTriangleMesh()
Destructor


Inherited from FXGLShape:

Public Methods

ovirtual void bounds(FXRange& box)
ovirtual void draw(FXGLViewer* viewer)
ovirtual void hit(FXGLViewer* viewer)
ovirtual FXbool canDrag() const
ovirtual FXbool canDelete() const
ovirtual FXbool drag(FXGLViewer* viewer, FXint fx, FXint fy, FXint tx, FXint ty)
ovoid setTipText(const FXString& text)
oFXString getTipText() const
ovoid setMaterial(FXint side, const FXMaterial &mtl)
ovoid getMaterial(FXint side, FXMaterial &mtl) const


Inherited from FXGLObject:

Public Methods

ovirtual FXGLObject* identify(FXuint* path)


Inherited from FXObject:

Public Methods

oconst FXchar* getClassName() const
oFXbool isMemberOf(const FXMetaClass* metaclass) const


Documentation

OpenGL Triangle Mesh Object
o 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

o 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

o FXGLTriangleMesh(const FXGLTriangleMesh& orig)
Copy constructor

ovirtual FXGLObject* copy()
Copy this object

ovoid setVertexNumber(FXint nvertices)
Change number of vertices

oFXint getVertexNumber() const
Get number of vertices

ovoid setVertexBuffer(FXfloat* vertices)
Set vertex buffer

oFXfloat* getVertexBuffer() const
Get vertex buffer

ovoid setColorBuffer(FXfloat* colors)
Set color buffer

oFXfloat* getColorBuffer() const
Get color buffer

ovoid setNormalBuffer(FXfloat* normals)
Set normals buffer

oFXfloat* getNormalBuffer() const
Get normals buffer

ovoid setTextureCoordBuffer(FXfloat* textures)
Set texture coordinate buffer

oFXfloat* getTextureCoordBuffer() const
Get texture coordinate buffer

ovirtual void save(FXStream& store) const
Save to a stream

ovirtual void load(FXStream& store)
Load from a stream

ovirtual ~FXGLTriangleMesh()
Destructor


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.