hx3d  1
2D/3D Simple Game Framework
Public Member Functions | List of all members
hx3d::graphics::OrderedBatch Class Reference

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...
 
- Public Member Functions inherited from hx3d::graphics::BaseBatch
void setShader (const Ptr< Shader > &shader)
 Set the shader for the next batching. More...
 
Ptr< ShadergetShader ()
 Get the current batching shader. More...
 
void setCamera (Camera &camera)
 Set the camera for the next batching. More...
 
CameragetCamera ()
 Get the camera. More...
 

Additional Inherited Members

- Protected Attributes inherited from hx3d::graphics::BaseBatch
Camera_camera
 Camera.
 
Ptr< Shader_shader
 Shader.
 

Detailed Description

Draw ordered meshes and texts on screen.

Definition at line 36 of file ordered_batch.hpp.

Member Function Documentation

void hx3d::graphics::OrderedBatch::draw ( Mesh mesh)
overridevirtual

Draw the mesh.

You must have called begin before.

Parameters
meshMesh

Implements hx3d::graphics::BaseBatch.

Definition at line 126 of file ordered_batch.cpp.

void hx3d::graphics::OrderedBatch::draw ( gui::Text text)
overridevirtual

Draw the text.

You must have called begin before.

Parameters
textText

Implements hx3d::graphics::BaseBatch.

Definition at line 141 of file ordered_batch.cpp.

void hx3d::graphics::OrderedBatch::draw ( gui::Text text,
math::Function  function 
)
overridevirtual

Draw the text following a function.

You must have called begin before.

Parameters
textText
functionFunction

Implements hx3d::graphics::BaseBatch.

Definition at line 145 of file ordered_batch.cpp.

void hx3d::graphics::OrderedBatch::end ( )
overridevirtual

End the batching.

Meshes

Function texts

Texts

Implements hx3d::graphics::BaseBatch.

Definition at line 50 of file ordered_batch.cpp.


The documentation for this class was generated from the following files: