|
| Sprite () |
| Constructor. More...
|
|
| Sprite (MaterialPtr material, bool flipT, PropertiesPtr properties=nullptr) |
| Constructor. More...
|
|
| Sprite (ObjectManager *o, const std::string &textureFileName, const std::string &materialName, ShaderPtr shader, bool flipT, PropertiesPtr properties=nullptr) |
| Constructor. More...
|
|
| Sprite (ObjectManager *o, const std::string &name, const std::string &textureFileName, GLuint shaderMaxLights, bool variableNumberOfLights, bool flipT, PropertiesPtr properties=nullptr) |
| Constructor. More...
|
|
virtual | ~Sprite () |
| Virtual destructor. More...
|
|
| Model () |
| Constructor. More...
|
|
| Model (ObjectManager *o, const ModelData &modelData, GLuint shaderMaxLights, bool variableNumberOfLights, bool shaderFromFile, bool ambientLighting, PropertiesPtr properties=nullptr) |
| Constructor. More...
|
|
| Model (ObjectManager *o, const ModelData &modelData, ShaderPtr shader, PropertiesPtr properties=nullptr) |
| Constructor. More...
|
|
| Model (const ModelData &modelData, MaterialPtr material, PropertiesPtr properties=nullptr) |
| Constructor. More...
|
|
virtual | ~Model () |
| Virtual destructor. More...
|
|
virtual void | draw (GLenum mode=GL_TRIANGLES) override |
| Draws the model to the screen. More...
|
|
virtual void | draw (const std::string &geometryName, GLenum mode=GL_TRIANGLES) |
| Draws the specified group of geometry to the screen. More...
|
|
virtual void | drawInstance (const std::string &instanceName, GLenum mode=GL_TRIANGLES) override |
| Draws an instance of the model to the screen. More...
|
|
virtual InstanceMapPtr | addInstance (const std::string &instanceName) |
| Creates an instance of this model and associated geometry. More...
|
|
virtual PropertiesPtr | getInstanceProperties (const std::string &instanceName, const std::string &geometryName) |
| Get the properties of a geometry instance. More...
|
|
virtual InstanceMapPtr | getInstanceProperties (const std::string &instanceName) |
| Get the instance properties for every shader used in the model. More...
|
|
virtual void | removeInstance (const std::string &instanceName) |
| Removes an instance of the model and associated geometry. More...
|
|
virtual void | clearInstances () |
| Removes all instances of the model and associated geometry. More...
|
|
MaterialPtr | getMaterial () |
| Returns the material of the model. More...
|
|
void | setMaterial (MaterialPtr arg) |
| Sets the material of the model. More...
|
|
PropertiesPtr | getProperties () |
| Returns the properties of the model. More...
|
|
void | setProperties (PropertiesPtr arg) |
| Sets the properties of the model. More...
|
|
GroupMap & | getGroups () |
| Returns the groups of geometry of the model. More...
|
|
vmml::AABBf & | getBoundingBoxObjectSpace () |
| Returns the bounding box of the geometry in object space. More...
|
|
void | setBoundingBoxObjectSpace (vmml::AABBf arg) |
| Sets the bounding box of the geometry in object space. More...
|
|
virtual void | addGeometry (const std::string &name, GeometryPtr geometry) |
| Adds geometry to the model. More...
|
|
virtual void | removeGeometry (const std::string &name) |
| Removes geometry from the model. More...
|
|
virtual void | deleteModelGeometry () |
| Deletes all geometry of the model. More...
|
|
virtual | ~IDrawable () |
| Virtual destructor. More...
|
|
A 2d plane that can be rendered to the screen.
- Author
- Benjamin Buergisser