| 123456789101112131415161718192021222324252627282930313233343536 |
- #ifndef PARTICLE_GPU
- #define PARTICLE_GPU
- /* std */
- #include <iostream>
- // #include <vector>
- #include <string>
- /* OpenGL */
- #include "glad/glad.h"
- #include <GLFW/glfw3.h>
- class Application
- {
- private:
- int m_window_width{};
- int m_window_heigth{};
- std::string m_appName = "Lyfe";
- GLFWwindow* m_window{};
- public:
- Application() = default;
- Application(int width, int height);
- ~Application();
- void init();
- void terminate();
- bool create_window();
- void register_callback(GLFWkeyfun);
- bool running();
- void update();
- int key_status(int code);
- float time();
- };
- #endif // PARTICLE_GPU
|