terrain

Real-time terrain generation using marching cubes
git clone git://git.christianermann.dev/terrain
Log | Files | Refs | README | LICENSE

input.h (388B)


      1 #ifndef INPUT_H
      2 #define INPUT_H
      3 
      4 #include "types.h"
      5 
      6 #include "glad/glad.h"
      7 #include "GLFW/glfw3.h"
      8 
      9 typedef struct {
     10     f32 mouse_x;
     11     f32 mouse_y;
     12     f32 rotation_dx;
     13     f32 rotation_dy;
     14     f32 move_dx;
     15     f32 move_dy;
     16     f32 move_dz;
     17 } UserInput;
     18 
     19 void UserInput_init(UserInput *input, GLFWwindow *window);
     20 
     21 void UserInput_update(UserInput *input, GLFWwindow *window);
     22 
     23 #endif