summaryrefslogtreecommitdiff
path: root/src/graphics/shape.h
diff options
context:
space:
mode:
authorSebastian Park <SebPark03@gmail.com>2024-04-17 03:10:27 -0400
committerSebastian Park <SebPark03@gmail.com>2024-04-17 03:10:27 -0400
commit9b436e67cdc5ee896c3c2fec90499e400a9e524e (patch)
tree45366352db1024722bbe7db07792c4148683afa9 /src/graphics/shape.h
parent0b0629450e2553b2f890094290528b565d607e38 (diff)
Do realtime refraction kinda.
Diffstat (limited to 'src/graphics/shape.h')
-rw-r--r--src/graphics/shape.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/graphics/shape.h b/src/graphics/shape.h
index 1451c85..b909606 100644
--- a/src/graphics/shape.h
+++ b/src/graphics/shape.h
@@ -3,6 +3,8 @@
#include <GL/glew.h>
#include <vector>
#include <unordered_set>
+#include <QString>
+#include <QImage>
#define EIGEN_DONT_VECTORIZE
#define EIGEN_DISABLE_UNALIGNED_ARRAY_ASSERT
@@ -33,6 +35,8 @@ public:
void setColor(float r, float g, float b);
+ void initGroundPlane(std::string texturePath, float depth, Shader* shader);
+
void draw(Shader *shader, GLenum mode);
SelectMode select(Shader *shader, int vertex);
bool selectWithSpecifiedMode(Shader *shader, int vertex, SelectMode mode);
@@ -47,6 +51,8 @@ private:
GLuint m_surfaceVao;
GLuint m_surfaceVbo;
GLuint m_surfaceIbo;
+ GLuint ocean_floor_texture;
+ QImage ocean_floor_image;
unsigned int m_numSurfaceVertices;
unsigned int m_verticesSize;