hx3d  1
2D/3D Simple Game Framework
Public Member Functions | Protected Attributes | List of all members
hx3d::graphics::BaseBatch Class Referenceabstract

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< ShadergetShader ()
 Get the current batching shader. More...
 
void setCamera (Camera &camera)
 Set the camera for the next batching. More...
 
CameragetCamera ()
 Get the camera. More...
 

Protected Attributes

Camera_camera
 Camera.
 
Ptr< Shader_shader
 Shader.
 

Detailed Description

Draw meshes and texts on screen.

Definition at line 41 of file base_batch.hpp.

Member Function Documentation

virtual void hx3d::graphics::BaseBatch::draw ( Mesh mesh)
pure virtual

Draw the mesh.

You must have called begin before.

Parameters
meshMesh

Implemented in hx3d::graphics::Batch, and hx3d::graphics::OrderedBatch.

virtual void hx3d::graphics::BaseBatch::draw ( gui::Text text)
pure virtual

Draw the text.

You must have called begin before.

Parameters
textText

Implemented in hx3d::graphics::Batch, and hx3d::graphics::OrderedBatch.

virtual void hx3d::graphics::BaseBatch::draw ( gui::Text text,
math::Function  function 
)
pure virtual

Draw the text following a function.

You must have called begin before.

Parameters
textText
functionFunction

Implemented in hx3d::graphics::Batch, and hx3d::graphics::OrderedBatch.

Camera * hx3d::graphics::BaseBatch::getCamera ( )

Get the camera.

Returns
camera Camera

Definition at line 50 of file base_batch.cpp.

Ptr< Shader > hx3d::graphics::BaseBatch::getShader ( )

Get the current batching shader.

Returns
Shader (Ptr)

Definition at line 42 of file base_batch.cpp.

void hx3d::graphics::BaseBatch::setCamera ( Camera camera)

Set the camera for the next batching.

Parameters
cameraCamera

Definition at line 46 of file base_batch.cpp.

void hx3d::graphics::BaseBatch::setShader ( const Ptr< Shader > &  shader)

Set the shader for the next batching.

Parameters
shaderShader (Ptr)

Definition at line 38 of file base_batch.cpp.


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