diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-11-13 14:43:20 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-11-14 23:46:14 +0000 |
commit | 5b854f135a4bf38ce993cc567461bf204894fb44 (patch) | |
tree | 23c3a2d7e215923d8fef821ebb9b47438681b8cf /ui/sceneRenderer.h | |
parent | Pass flags to Window constructor (diff) | |
download | ilt-5b854f135a4bf38ce993cc567461bf204894fb44.tar.bz2 ilt-5b854f135a4bf38ce993cc567461bf204894fb44.tar.xz ilt-5b854f135a4bf38ce993cc567461bf204894fb44.zip |
Pass the output framebuffer id to scene renderer
Diffstat (limited to 'ui/sceneRenderer.h')
-rw-r--r-- | ui/sceneRenderer.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/sceneRenderer.h b/ui/sceneRenderer.h index 6c96418..9352fc9 100644 --- a/ui/sceneRenderer.h +++ b/ui/sceneRenderer.h @@ -7,11 +7,12 @@ class SceneRenderer { public: - explicit SceneRenderer(glm::ivec2 size); + explicit SceneRenderer(glm::ivec2 size, GLuint output); void render(std::function<void()> content) const; private: + GLuint output; glFrameBuffer gBuffer; glTexture gPosition, gNormal, gAlbedoSpec; glRenderBuffer depth; |