Skip to content
Snippets Groups Projects
Commit 7e30070a authored by Pascal Engeler's avatar Pascal Engeler
Browse files

Added more getters, adapted draw(), added enable/disable lighting

parent cb17edde
No related branches found
No related tags found
No related merge requests found
...@@ -22,7 +22,7 @@ public: ...@@ -22,7 +22,7 @@ public:
bool is(const std::string filename) const; bool is(const std::string filename) const;
//inherited methods //inherited methods
virtual void draw(glm::mat4 projection, glm::mat4 view, glm::mat4 model) override; virtual void draw(glm::mat4 projection, glm::mat4 view, glm::mat4 model, glm::vec3 camera_pos) override;
virtual void upload() override; virtual void upload() override;
virtual void unload() override; virtual void unload() override;
...@@ -32,6 +32,14 @@ public: ...@@ -32,6 +32,14 @@ public:
void updatePlotWindow(); void updatePlotWindow();
float minZ() const; float minZ() const;
float minX() const;
float maxX() const;
float minY() const;
float maxY() const;
//Shader control
void enableLighting();
void disableLighting();
private: private:
void _plotHeightLineAlongX(const float y); void _plotHeightLineAlongX(const float y);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment