fluidvis
|
#include <SXCore.h>
Public Member Functions | |
EX | ~Mesh () |
EX void | setFaceSize (unsigned int faceSize) |
EX unsigned int | getFaceSize () const |
EX unsigned int | getVertexCount () const |
virtual void | render (Shader &shader)=0 |
Public Member Functions inherited from sx::SXResource | |
virtual EX | ~SXResource () |
EX const string & | getID () const |
virtual bool | isLoaded () const =0 |
virtual void | load ()=0 |
Protected Attributes | |
unsigned int | newFaceSize |
unsigned int | faceSize |
unsigned int | vertexCount |
Protected Attributes inherited from sx::SXResource | |
string | id |
A mesh. Every mesh is a set of vertex attributes, which are available at the same time during rendering.
EX sx::Mesh::~Mesh | ( | ) |
deconstructor
EX unsigned int sx::Mesh::getFaceSize | ( | ) | const |
getter
EX unsigned int sx::Mesh::getVertexCount | ( | ) | const |
getter
|
pure virtual |
renders all attribute buffers currently loaded simultaneously using the shader specified
Implemented in sx::BufferedMesh.
EX void sx::Mesh::setFaceSize | ( | unsigned int | faceSize | ) |
setter
|
protected |
The number of vertices per face of the loaded mesh, can only have values one, two or three. If the load operation could not be executed successfully, the value is undefined.
|
protected |
the number of vertices per face of the next mesh after the load operation
|
protected |
number of vertices, divisible by faceSize