VoxelEngine
 
Loading...
Searching...
No Matches
Renderable.h
1#pragma once
2
3
4namespace engine {
5
6 struct RenderContext;
7 class Engine;
8 class Camera;
9
10 class Renderable {
11 public:
12 virtual ~Renderable() = default;
13
21 virtual void render(Engine& engine, const Camera* camera, int pass = 0) = 0;
22 };
23} // namespace engine
Definition Camera.h:29
Definition Engine.h:36
Definition Renderable.h:10
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::A...