VoxelEngine
 
Loading...
Searching...
No Matches
engine::Skybox Class Reference
Inheritance diagram for engine::Skybox:
engine::Renderable

Classes

struct  Settings
 

Public Member Functions

 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.
 

Member Function Documentation

◆ 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
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.

Implements engine::Renderable.


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