summaryrefslogtreecommitdiff
path: root/src/graphics/shape.h
diff options
context:
space:
mode:
authorSebastian Park <51029066+Seb-Park@users.noreply.github.com>2024-04-22 00:59:29 -0400
committerGitHub <noreply@github.com>2024-04-22 00:59:29 -0400
commitcd7c76017a12bb548036571c1ff13e551369d06d (patch)
tree03cd022c7625c5c5682d21c20b0a8b8532e57140 /src/graphics/shape.h
parent5233a708a165ba8a3153e054ce74eb11084c0158 (diff)
parent28d74097815a8d52b8f47f6eae6464005a6bc552 (diff)
Merge pull request #2 from Seb-Park/shaders
Shaders
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;