hx3d
1
2D/3D Simple Game Framework
|
Displayable 2D/3D element. More...
#include <mesh.hpp>
Public Member Functions | |
virtual void | draw (Ptr< Shader > shader) |
Draw the mesh using a shader. More... | |
void | setTint (Color tint) |
Set the mesh tint. More... | |
Color & | getTint () |
Get the mesh tint. More... | |
void | updateColor () |
Update the mesh color from the tint. | |
void | setGeometry (Ptr< geom::BaseGeometry > geometry) |
Set the mesh geometry. More... | |
Ptr< geom::BaseGeometry > & | getGeometry () |
Get the mesh geometry. More... | |
Public Attributes | |
Transform | transform |
Mesh transformation. | |
Protected Attributes | |
Color | _tint |
Tint color. | |
Ptr< geom::BaseGeometry > | _geometry |
Current geometry. | |
Draw the mesh using a shader.
shader | Shader (Ptr) |
Reimplemented in hx3d::graphics::Sprite.
Ptr< geom::BaseGeometry > & hx3d::graphics::Mesh::getGeometry | ( | ) |
Color & hx3d::graphics::Mesh::getTint | ( | ) |
void hx3d::graphics::Mesh::setGeometry | ( | Ptr< geom::BaseGeometry > | geometry | ) |
void hx3d::graphics::Mesh::setTint | ( | Color | tint | ) |