21 #ifndef HX3D_GRAPHICS_BASEBATCH 22 #define HX3D_GRAPHICS_BASEBATCH 24 #include "hx3d/graphics/mesh.hpp" 25 #include "hx3d/gui/text.hpp" 26 #include "hx3d/utils/ptr.hpp" 49 virtual void begin() = 0;
54 virtual void end() = 0;
virtual void begin()=0
Begin the batching.
Ptr< Shader > _shader
Shader.
virtual void draw(Mesh &mesh)=0
Draw the mesh.
Camera * getCamera()
Get the camera.
void setShader(const Ptr< Shader > &shader)
Set the shader for the next batching.
virtual void end()=0
End the batching.
Ptr< Shader > getShader()
Get the current batching shader.
Displayable 2D/3D element.
Math function definition.
void setCamera(Camera &camera)
Set the camera for the next batching.
Draw meshes and texts on screen.
std::shared_ptr< T > Ptr
Quick-typing shared ptr.