KGLLib
KGLLib::Mesh Class Reference
#include <mesh.h>
Inheritance diagram for KGLLib::Mesh:

Detailed Description
Set of geometry with program and texture(s).Mesh expands the functionality of Batch by adding a program and textures.
You can specify a Program object and one or multiple Texture objects that are used when rendering the Mesh. Both of those features are optional.
Definition at line 39 of file mesh.h.
Public Member Functions | |
| virtual void | bind () |
| Mesh (GeometryBuffer *buffer, int offset, int indexOffset) | |
| Mesh () | |
| KGLLib::Program * | program () const |
| virtual void | setProgram (KGLLib::Program *program) |
| virtual void | setTexture (int index, KGLLib::Texture *tex) |
| void | setTexture (KGLLib::Texture *tex) |
| KGLLib::Texture * | texture (int index) const |
| KGLLib::Texture * | texture () const |
| virtual void | unbind () |
| virtual | ~Mesh () |
Constructor & Destructor Documentation
| KGLLib::Mesh::Mesh | ( | GeometryBuffer * | buffer, | |
| int | offset, | |||
| int | indexOffset | |||
| ) |
Member Function Documentation
| void KGLLib::Mesh::bind | ( | ) | [virtual] |
Binds the GeometryBuffer used by this batch.
update() is automatically called if Batch's data has changed.
Reimplemented from KGLLib::Batch.
| KGLLib::Program* KGLLib::Mesh::program | ( | ) | const [inline] |
| void KGLLib::Mesh::setProgram | ( | KGLLib::Program * | program | ) | [virtual] |
| void KGLLib::Mesh::setTexture | ( | int | index, | |
| KGLLib::Texture * | tex | |||
| ) | [virtual] |
| void KGLLib::Mesh::setTexture | ( | KGLLib::Texture * | tex | ) | [inline] |
| KGLLib::Texture * KGLLib::Mesh::texture | ( | int | index | ) | const |
| KGLLib::Texture* KGLLib::Mesh::texture | ( | ) | const [inline] |
| void KGLLib::Mesh::unbind | ( | ) | [virtual] |
The documentation for this class was generated from the following files:
KDE 4.2 API Reference