OpenGL Triangle Mesh Object
Inheritance:
Public Methods
-
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
-
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
-
FXGLTriangleMesh(const FXGLTriangleMesh& orig)
- Copy constructor
-
virtual FXGLObject* copy()
- Copy this object
-
void setVertexNumber(FXint nvertices)
- Change number of vertices
-
FXint getVertexNumber() const
- Get number of vertices
-
void setVertexBuffer(FXfloat* vertices)
- Set vertex buffer
-
FXfloat* getVertexBuffer() const
- Get vertex buffer
-
void setColorBuffer(FXfloat* colors)
- Set color buffer
-
FXfloat* getColorBuffer() const
- Get color buffer
-
void setNormalBuffer(FXfloat* normals)
- Set normals buffer
-
FXfloat* getNormalBuffer() const
- Get normals buffer
-
void setTextureCoordBuffer(FXfloat* textures)
- Set texture coordinate buffer
-
FXfloat* getTextureCoordBuffer() const
- Get texture coordinate buffer
-
virtual void save(FXStream& store) const
- Save to a stream
-
virtual void load(FXStream& store)
- Load from a stream
-
virtual ~FXGLTriangleMesh()
- Destructor
Public Methods
-
virtual void bounds(FXRange& box)
-
virtual void draw(FXGLViewer* viewer)
-
virtual void hit(FXGLViewer* viewer)
-
virtual FXbool canDrag() const
-
virtual FXbool canDelete() const
-
virtual FXbool drag(FXGLViewer* viewer, FXint fx, FXint fy, FXint tx, FXint ty)
-
void setTipText(const FXString& text)
-
FXString getTipText() const
-
void setMaterial(FXint side, const FXMaterial &mtl)
-
void getMaterial(FXint side, FXMaterial &mtl) const
Public Methods
-
virtual FXGLObject* identify(FXuint* path)
Public Methods
-
const FXchar* getClassName() const
-
FXbool isMemberOf(const FXMetaClass* metaclass) const
Documentation
OpenGL Triangle Mesh Object
- 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
- 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
- FXGLTriangleMesh(const FXGLTriangleMesh& orig)
- Copy constructor
- virtual FXGLObject* copy()
- Copy this object
- void setVertexNumber(FXint nvertices)
- Change number of vertices
- FXint getVertexNumber() const
- Get number of vertices
- void setVertexBuffer(FXfloat* vertices)
- Set vertex buffer
- FXfloat* getVertexBuffer() const
- Get vertex buffer
- void setColorBuffer(FXfloat* colors)
- Set color buffer
- FXfloat* getColorBuffer() const
- Get color buffer
- void setNormalBuffer(FXfloat* normals)
- Set normals buffer
- FXfloat* getNormalBuffer() const
- Get normals buffer
- void setTextureCoordBuffer(FXfloat* textures)
- Set texture coordinate buffer
- FXfloat* getTextureCoordBuffer() const
- Get texture coordinate buffer
- virtual void save(FXStream& store) const
- Save to a stream
- virtual void load(FXStream& store)
- Load from a stream
- virtual ~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++.