+ | Trying noise but poorly for now

This commit is contained in:
TheRedShip
2024-12-27 12:05:22 +01:00
parent ebb8ca36bd
commit dfc37301e4
6 changed files with 97 additions and 75 deletions

View File

@ -44,7 +44,7 @@ class Camera
glm::vec3 _velocity;
glm::vec3 _acceleration;
float _maxSpeed = 10.0f;
float _maxSpeed = 8.0f;
float _acceleration_rate = 40.0f;
float _deceleration_rate = 40.0f;
float _sensitivity = 0.2f;

View File

@ -23,9 +23,6 @@ class Window
Window(Scene *scene, int width, int height, const char *title, int sleep);
~Window(void);
GLFWwindow *getWindow(void) const;
float getFps(void) const;
void display();
void pollEvents();
bool shouldClose();
@ -35,11 +32,16 @@ class Window
static void keyCallback(GLFWwindow *window, int key, int scancode, int action, int mods);
static void mouseMoveCallback(GLFWwindow *window, double xpos, double ypos);
static void mouseButtonCallback(GLFWwindow *window, int button, int action, int mods);
GLFWwindow *getWindow(void) const;
float getFps(void) const;
int getFrameCount(void) const;
private:
GLFWwindow *_window;
Scene *_scene;
int _frameCount;
float _fps;
};