hx3d
1
2D/3D Simple Game Framework
|
Draw meshes and texts on screen. More...
#include <base_batch.hpp>
Public Member Functions | |
virtual void | begin ()=0 |
Begin the batching. | |
virtual void | end ()=0 |
End the batching. | |
virtual void | draw (Mesh &mesh)=0 |
Draw the mesh. More... | |
virtual void | draw (gui::Text &text)=0 |
Draw the text. More... | |
virtual void | draw (gui::Text &text, math::Function function)=0 |
Draw the text following a function. More... | |
void | setShader (const Ptr< Shader > &shader) |
Set the shader for the next batching. More... | |
Ptr< Shader > | getShader () |
Get the current batching shader. More... | |
void | setCamera (Camera &camera) |
Set the camera for the next batching. More... | |
Camera * | getCamera () |
Get the camera. More... | |
Protected Attributes | |
Camera * | _camera |
Camera. | |
Ptr< Shader > | _shader |
Shader. | |
Draw meshes and texts on screen.
Definition at line 41 of file base_batch.hpp.
|
pure virtual |
Draw the mesh.
You must have called begin before.
mesh | Mesh |
Implemented in hx3d::graphics::Batch, and hx3d::graphics::OrderedBatch.
|
pure virtual |
Draw the text.
You must have called begin before.
text | Text |
Implemented in hx3d::graphics::Batch, and hx3d::graphics::OrderedBatch.
|
pure virtual |
Draw the text following a function.
You must have called begin before.
text | Text |
function | Function |
Implemented in hx3d::graphics::Batch, and hx3d::graphics::OrderedBatch.
Camera * hx3d::graphics::BaseBatch::getCamera | ( | ) |
void hx3d::graphics::BaseBatch::setCamera | ( | Camera & | camera | ) |
Set the camera for the next batching.
camera | Camera |
Definition at line 46 of file base_batch.cpp.
Set the shader for the next batching.
shader | Shader (Ptr) |
Definition at line 38 of file base_batch.cpp.