hx3d
1
2D/3D Simple Game Framework
|
Draw ordered meshes and texts on screen. More...
#include <ordered_batch.hpp>
Public Member Functions | |
virtual void | begin () override |
Begin the batching. | |
virtual void | end () override |
End the batching. More... | |
virtual void | draw (Mesh &mesh) override |
Draw the mesh. More... | |
virtual void | draw (gui::Text &text) override |
Draw the text. More... | |
virtual void | draw (gui::Text &text, math::Function function) override |
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... | |
Additional Inherited Members | |
![]() | |
Camera * | _camera |
Camera. | |
Ptr< Shader > | _shader |
Shader. | |
Draw ordered meshes and texts on screen.
Definition at line 36 of file ordered_batch.hpp.
|
overridevirtual |
Draw the mesh.
You must have called begin before.
mesh | Mesh |
Implements hx3d::graphics::BaseBatch.
Definition at line 126 of file ordered_batch.cpp.
|
overridevirtual |
Draw the text.
You must have called begin before.
text | Text |
Implements hx3d::graphics::BaseBatch.
Definition at line 141 of file ordered_batch.cpp.
|
overridevirtual |
Draw the text following a function.
You must have called begin before.
text | Text |
function | Function |
Implements hx3d::graphics::BaseBatch.
Definition at line 145 of file ordered_batch.cpp.
|
overridevirtual |
End the batching.
Meshes
Function texts
Texts
Implements hx3d::graphics::BaseBatch.
Definition at line 50 of file ordered_batch.cpp.