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

Fixed the leveler

parent 4d189da8
No related branches found
No related tags found
No related merge requests found
#pragma once #pragma once
#define GLM_FORCE_RADIANS
#include <glm/glm.hpp> #include <glm/glm.hpp>
#include <glm/gtc/type_ptr.hpp> #include <glm/gtc/type_ptr.hpp>
#include <glm/gtx/transform.hpp>
class Leveler { class Leveler {
public: public:
static void update_leveler(); static void update_leveler();
static void place(glm::vec2); static void place(glm::vec3, glm::mat4);
static bool fetchingP1; static bool fetchingP1;
static bool fetchingP2; static bool fetchingP2;
...@@ -13,11 +15,12 @@ public: ...@@ -13,11 +15,12 @@ public:
static bool transformationValid; static bool transformationValid;
static glm::mat4 transformation; //only rotations and translations along z in here static glm::mat4 transformation; //total transformation, rotation and z translation
static glm::mat4 rotation; //rotation part of transformation, around the origin, apply to _data to get new zrange
private: private:
static glm::vec2 _p1; static glm::vec3 _p1;
static glm::vec2 _p2; static glm::vec3 _p2;
static glm::vec2 _p3; static glm::vec3 _p3;
}; };
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment