diff options
Diffstat (limited to 'ui/sceneRenderer.h')
-rw-r--r-- | ui/sceneRenderer.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ui/sceneRenderer.h b/ui/sceneRenderer.h new file mode 100644 index 0000000..2e1c372 --- /dev/null +++ b/ui/sceneRenderer.h @@ -0,0 +1,18 @@ +#pragma once + +#include "gfx/gl/shader.h" +#include "lib/glArrays.h" +#include <functional> + +class SceneRenderer { +public: + SceneRenderer(glm::ivec2 size); + + void render(std::function<void()> content) const; + +private: + glFrameBuffer gBuffer; + glTexture gPosition, gNormal, gAlbedoSpec; + glRenderBuffer depth; + ProgramHandleBase lighting; +}; |