initial commit
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
#ifndef HYDRACAMERA
|
||||
#define HYDRACAMERA
|
||||
#include "../engine/HydraObject.h"
|
||||
#include <GLMIncludes.h>
|
||||
|
||||
class CLASS_DEFINE HydraCamera : public HydraObject
|
||||
{
|
||||
private:
|
||||
glm::vec4 m_right = glm::vec4(1, 0, 0, 1);
|
||||
glm::vec4 m_up = glm::vec4(0, 1, 0, 1);
|
||||
glm::vec4 m_forward = glm::vec4(0, 0, -1, 1);
|
||||
HydraID m_attached_actor = INVALID_HYDRA_ID;
|
||||
public:
|
||||
glm::mat4x4 GetView();
|
||||
glm::mat4x4 GetProjection();
|
||||
glm::mat4x4 GetOrthoProjection();
|
||||
HydraID GetAttachedActor() {return m_attached_actor;}
|
||||
glm::vec3 GetPosition();
|
||||
void AttachToActor(HydraID actorID);
|
||||
};
|
||||
|
||||
|
||||
#endif /* HYDRACAMERA */
|
||||
Reference in New Issue
Block a user