VoxelEngine
 
Loading...
Searching...
No Matches
engine::Renderable Class Referenceabstract
Inheritance diagram for engine::Renderable:
engine::Chunk engine::Skybox engine::World

Public Member Functions

virtual void render (Engine &engine, const Camera *camera, int pass=0)=0
 Engine will call this method before rendering the object. You have to set at the very least the gl::Attributes instance and material. Model matrix is optional, but recommended.
 

Member Function Documentation

◆ render()

virtual void engine::Renderable::render ( Engine engine,
const Camera camera,
int  pass = 0 
)
pure virtual

Engine will call this method before rendering the object. You have to set at the very least the gl::Attributes instance and material. Model matrix is optional, but recommended.

Parameters
EngineThe render engine to which you can push RenderContext to schedule rendering.
passNumber indicating the pass, if you need multiple passes for rendering.
Note
The render pass has to be set by the caller of this method.
The render context has to be filled with the necessary data for rendering.

Implemented in engine::Chunk, engine::World, and engine::Skybox.


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