|
|
| Skybox (const Settings &settings={ .top="resources/skybox/top.jpg",.bottom="resources/skybox/bottom.jpg",.front="resources/skybox/front.jpg",.back="resources/skybox/back.jpg",.left="resources/skybox/left.jpg",.right="resources/skybox/right.jpg", }) |
| |
|
void | load (const Settings &settings) |
| |
| void | render (Engine &engine, const Camera *camera, int pass=0) override |
| | 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()
| void Skybox::render |
( |
Engine & |
engine, |
|
|
const Camera * |
camera, |
|
|
int |
pass = 0 |
|
) |
| |
|
overridevirtual |
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.
Implements engine::Renderable.
The documentation for this class was generated from the following files: