Vis 2
Kinetic Visualization for 3D shape and structure
 All Classes Namespaces Functions Pages
Window.h
1 #pragma once
2 
3 #include "flextGL.h"
4 #include "GLFW\glfw3.h"
5 #include "InputHandler.h"
6 #include <iostream>
7 #include <string>
8 
9 using std::string;
10 using std::cerr;
11 using std::cout;
12 using std::endl;
13 
14 class RenderManager;
15 class ObjectManager;
16 
17 struct Dimension{
18  int width;
19  int height;
20 };
21 
22 enum WindowMode{
23  WINDOWED,WINDOWED_FULLSCREEN,FULLSCREEN
24 };
25 
29 class Window
30 {
31 public:
32  Window();
33  ~Window();
34 
35  static GLFWwindow * CurrentGLFWWindow;
36  static WindowMode CurrentWindowMode;
37  static int Width;
38  static int Height;
39  static double ElapsedTime;
40 
41  static Dimension GetResolutionOfPrimaryMonitor();
42  static void OpenGLFWWindow(int width, int height, WindowMode windowMode, int samples);
43  static void OpenGLFWWindow();
44  static void OpenGLFWWindow(int width, int height, WindowMode windowMode, int samples, int glMajor, int glMinor, GLenum profile, GLenum forwardCompatible, char* title, GLFWmonitor* monitor);
45 
46 private:
47  static void WindowSizeCallback(GLFWwindow* window, int width, int height);
48 
49 };
50 
Definition: Window.h:29
Definition: Window.h:17
Definition: RenderManager.h:11
Definition: ObjectManager.h:8