fluidvis
Public Member Functions | Protected Attributes | List of all members
sx::Mesh Class Referenceabstract

#include <SXCore.h>

Inheritance diagram for sx::Mesh:
sx::SXResource sx::BufferedMesh

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
 

Detailed Description

A mesh. Every mesh is a set of vertex attributes, which are available at the same time during rendering.

Constructor & Destructor Documentation

EX sx::Mesh::~Mesh ( )

deconstructor

Member Function Documentation

EX unsigned int sx::Mesh::getFaceSize ( ) const

getter

EX unsigned int sx::Mesh::getVertexCount ( ) const

getter

virtual void sx::Mesh::render ( Shader shader)
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

Member Data Documentation

unsigned int sx::Mesh::faceSize
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.

unsigned int sx::Mesh::newFaceSize
protected

the number of vertices per face of the next mesh after the load operation

unsigned int sx::Mesh::vertexCount
protected

number of vertices, divisible by faceSize


The documentation for this class was generated from the following file: