Voxeloop  0.1.0
Musical Loop Generation in Voxel World
Voxeloop.hpp
Go to the documentation of this file.
1 #ifndef VOXELOOP_VOXELOOP_HPP
2 #define VOXELOOP_VOXELOOP_HPP
3 
4 // clang-format off
5 #include <glad/gl.h>
6 #include <GLFW/glfw3.h>
7 // clang-format on
8 #include "Audio.hpp"
9 #include "Common.hpp"
10 #include "Cubes.hpp"
11 // #include "LightSource.hpp"
12 #include "LinkedList.hpp"
13 #include "WindowManager.hpp"
14 
15 class Voxeloop {
16 public:
17  static void key_callback(GLFWwindow *window, int key, int scancode,
18  int action, int mods);
19 
20  void init(GLFWwindow *window);
21  void run();
22  void cleanup();
23 
24 private:
25  GLFWwindow *m_window;
28 
31  // LightSource *m_lightsource;
32 
33  float m_mvmt;
34  float m_scale;
35  double m_prevTime;
36 
37 private:
38  void loop();
39 };
40 
41 #endif // CORE_INCLUDE_VOXELOOP_HPP
std::shared_ptr< GameData > SharedDataRef
Definition: Common.hpp:14
Definition: Audio.hpp:15
Definition: Cubes.hpp:7
Definition: Voxeloop.hpp:15
SharedDataRef m_sharedData
Definition: Voxeloop.hpp:26
double m_prevTime
Definition: Voxeloop.hpp:35
void loop()
Definition: Voxeloop.cpp:32
float m_scale
Definition: Voxeloop.hpp:34
void cleanup()
Definition: Voxeloop.cpp:22
void init(GLFWwindow *window)
Definition: Voxeloop.cpp:4
static void key_callback(GLFWwindow *window, int key, int scancode, int action, int mods)
Definition: Voxeloop.cpp:58
float m_mvmt
Definition: Voxeloop.hpp:33
Cubes * m_cubes
Definition: Voxeloop.hpp:29
Audio * m_audio
Definition: Voxeloop.hpp:30
void run()
Definition: Voxeloop.cpp:30
WindowManager * win
Definition: Voxeloop.hpp:27
GLFWwindow * m_window
Definition: Voxeloop.hpp:25
Definition: WindowManager.hpp:12