Saga
Saga Game Engine
Loading...
Searching...
No Matches
window.h
Go to the documentation of this file.
1#pragma once
2
3#include "core.h"
4
5class Window
6{
7public:
8 Window();
9 ~Window();
10 void run();
11
12private:
13 void start();
14 void loop();
15 void end();
16 static void keyCallback(GLFWwindow* window, int key, int scancode, int action, int mods);
17 static void cursorPosCallback(GLFWwindow* window, double xpos, double ypos);
18 static void mouseButtonCallback(GLFWwindow* window, int button, int action, int mods);
19 static void scrollCallback(GLFWwindow* window, double xoffset, double yoffset);
20 static void windowSizeCallback(GLFWwindow* window, int width, int height);
21 static void framebufferSizeCallback(GLFWwindow* window, int width, int height);
22
23 GLFWwindow* m_GLFWwindow;
24 Saga::Core* m_core;
25 const double m_secPerFixedUpdate = 1.0/120;
26};
A wrapper around App that separates it from Window, the script running the game loop....
Definition: core.h:16
Definition: window.h:6
~Window()
Definition: window.cpp:15
Window()
Definition: window.cpp:10
void run()
Definition: window.cpp:20