diff options
author | Sebastian Park <SebPark03@gmail.com> | 2024-05-05 02:41:56 -0400 |
---|---|---|
committer | Sebastian Park <SebPark03@gmail.com> | 2024-05-05 02:41:56 -0400 |
commit | 551b160b816cdfa446de800140aa1c7aef352b19 (patch) | |
tree | 3f5c1f7c24f187e0dae9da6c95538312cdb11489 /src/glwidget.h | |
parent | 045eb047c556898606005e548c16f102ac02e995 (diff) |
Get FBOs working.
Diffstat (limited to 'src/glwidget.h')
-rwxr-xr-x | src/glwidget.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/glwidget.h b/src/glwidget.h index 91df32f..810829a 100755 --- a/src/glwidget.h +++ b/src/glwidget.h @@ -40,6 +40,11 @@ private: void keyPressEvent (QKeyEvent *event) override; void keyReleaseEvent (QKeyEvent *event) override; + void makeFBO(); + + void initCaustics(); + void paintCaustics(); + private slots: // Physics Tick void tick(); @@ -51,11 +56,25 @@ private: Shader *m_pointShader; Shader *m_texture_shader; + Shader *m_colorShader; + GLuint m_fullscreen_vbo; GLuint m_fullscreen_vao; QImage m_ground_image; GLuint m_ground_texture; + int m_fbo_width; + int m_fbo_height; + float m_devicePixelRatio; + + GLuint m_fbo; + GLuint m_fbo_texture; + GLuint m_fbo_renderbuffer; + GLuint m_defaultFBO; + + GLuint m_floor_vbo; + GLuint m_floor_vao; + float m_movementScaling; float m_vertexSelectionThreshold; float m_vSize; |