hx3d
1
2D/3D Simple Game Framework
|
Simple base batch implementation. Draw at each draw call. More...
#include <batch.hpp>
Public Member Functions | |
virtual void | begin () override |
Begin the batching. | |
virtual void | end () override |
End the batching. | |
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. | |
|
overridevirtual |
Draw the mesh.
You must have called begin before.
mesh | Mesh |
Implements hx3d::graphics::BaseBatch.
|
overridevirtual |
Draw the text.
You must have called begin before.
text | Text |
Implements hx3d::graphics::BaseBatch.
|
overridevirtual |
Draw the text following a function.
You must have called begin before.
text | Text |
function | Function |
Implements hx3d::graphics::BaseBatch.