hx3d  1
2D/3D Simple Game Framework
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | List of all members
hx3d::graphics::Batch Class Reference

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...
 
- 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

Simple base batch implementation. Draw at each draw call.

Definition at line 36 of file batch.hpp.

Member Function Documentation

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

Draw the mesh.

You must have called begin before.

Parameters
meshMesh

Implements hx3d::graphics::BaseBatch.

Definition at line 53 of file batch.cpp.

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

Draw the text.

You must have called begin before.

Parameters
textText

Implements hx3d::graphics::BaseBatch.

Definition at line 61 of file batch.cpp.

void hx3d::graphics::Batch::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 88 of file batch.cpp.


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