added in poor grid
This commit is contained in:
parent
c1b96fc14e
commit
2242adc568
12 changed files with 154 additions and 26 deletions
|
@ -19,6 +19,7 @@ public:
|
|||
void Use();
|
||||
|
||||
void SetUniform(const std::string& name, const glm::mat4& value);
|
||||
void SetUniform(const std::string& name, const glm::vec4& value);
|
||||
|
||||
private:
|
||||
unsigned int id;
|
||||
|
|
|
@ -8,16 +8,17 @@ class Transformable
|
|||
public:
|
||||
Transformable();
|
||||
|
||||
const glm::vec3& GetPosition();
|
||||
const glm::vec3& GetPosition() const;
|
||||
void SetPosition(const glm::vec3& pos);
|
||||
void Move(const glm::vec3& direction);
|
||||
|
||||
const glm::vec3 GetRotation();
|
||||
const glm::vec3 GetRotation() const;
|
||||
const glm::quat& GetQuaternion() const;
|
||||
void SetRotation(const glm::vec3& axis, float angle);
|
||||
void SetRotation(const glm::vec3& eulerAngles);
|
||||
void Rotate(const glm::vec3& axis, float angle);
|
||||
|
||||
const glm::vec3& GetScale();
|
||||
const glm::vec3& GetScale() const;
|
||||
void SetScale(const glm::vec3& scale);
|
||||
void Scale(const glm::vec3& factor);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue