[EDIT] comments on each function
This commit is contained in:
@@ -12,6 +12,7 @@ namespace entities
|
||||
class Camera
|
||||
{
|
||||
private:
|
||||
// The movement speed of the camera
|
||||
const float SPEED = 0.52f;
|
||||
|
||||
glm::vec3 position;
|
||||
@@ -20,6 +21,11 @@ namespace entities
|
||||
public:
|
||||
Camera(const ::glm::vec3& position, const ::glm::vec3& rotation);
|
||||
|
||||
/*
|
||||
* @brief: This funtion moves the camera's position from the inputs of the keyboard
|
||||
*
|
||||
* @param window: The OpenGL window
|
||||
*/
|
||||
void Move(GLFWwindow* window);
|
||||
|
||||
inline glm::vec3 GetPosition() const{ return position; }
|
||||
|
||||
@@ -20,7 +20,18 @@ namespace entities
|
||||
public:
|
||||
Entity(const models::TexturedModel& model, const glm::vec3& position, const glm::vec3& rotation, float scale);
|
||||
|
||||
/*
|
||||
* @brief: This function increases the position of the entity
|
||||
*
|
||||
* @param distance: The amount of distance in each axis the entity needs to move
|
||||
*/
|
||||
void IncreasePosition(const glm::vec3& distance);
|
||||
|
||||
/*
|
||||
* @brief: This function increases the rotation of the entity
|
||||
*
|
||||
* @param rotation: The angle of each axis the entity needs to rotate
|
||||
*/
|
||||
void IncreaseRotation(const glm::vec3& rotation);
|
||||
|
||||
inline models::TexturedModel GetModel() const{return model;}
|
||||
|
||||
Reference in New Issue
Block a user