|
| 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.
|
| |
◆ 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
-
| Engine | The render engine to which you can push RenderContext to schedule rendering. |
| pass | Number 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: