Fireworks Engine  v2.0
Lightweight Sandbox Game Engine using OpenGL for additional Customisation and Quick Prototyping
Window.h File Reference
#include <iostream>
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#include <src/utils/glassert.h>
Include dependency graph for Window.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  fireworks::graphics::Window
 The class responsible for Window Creation. More...
 

Namespaces

 fireworks
 
 fireworks::graphics
 

Macros

#define GL_SILENCE_DEPRECATION
 
#define MAX_KEYS   1024
 
#define MAX_BUTTONS   32
 

Enumerations

enum  fireworks::graphics::Keys {
  fireworks::graphics::UNKNOWN = GLFW_KEY_UNKNOWN, fireworks::graphics::SPACE = GLFW_KEY_SPACE, fireworks::graphics::APOSTROPHE = GLFW_KEY_APOSTROPHE, fireworks::graphics::COMMA = GLFW_KEY_COMMA,
  fireworks::graphics::MINUS = GLFW_KEY_MINUS, fireworks::graphics::PERIOD = GLFW_KEY_PERIOD, fireworks::graphics::SLASH = GLFW_KEY_SLASH, fireworks::graphics::NUM0 = GLFW_KEY_0,
  fireworks::graphics::NUM1 = GLFW_KEY_1, fireworks::graphics::NUM2 = GLFW_KEY_2, fireworks::graphics::NUM3 = GLFW_KEY_3, fireworks::graphics::NUM4 = GLFW_KEY_4,
  fireworks::graphics::NUM5 = GLFW_KEY_5, fireworks::graphics::NUM6 = GLFW_KEY_6, fireworks::graphics::NUM7 = GLFW_KEY_7, fireworks::graphics::NUM8 = GLFW_KEY_8,
  fireworks::graphics::NUM9 = GLFW_KEY_9, fireworks::graphics::SEMICOLON = GLFW_KEY_SEMICOLON, fireworks::graphics::EQUAL = GLFW_KEY_EQUAL, fireworks::graphics::A = GLFW_KEY_A,
  fireworks::graphics::B = GLFW_KEY_B, fireworks::graphics::C = GLFW_KEY_C, fireworks::graphics::D = GLFW_KEY_D, fireworks::graphics::E = GLFW_KEY_E,
  fireworks::graphics::F = GLFW_KEY_F, fireworks::graphics::G = GLFW_KEY_G, fireworks::graphics::H = GLFW_KEY_H, fireworks::graphics::I = GLFW_KEY_I,
  fireworks::graphics::J = GLFW_KEY_J, fireworks::graphics::K = GLFW_KEY_K, fireworks::graphics::L = GLFW_KEY_L, fireworks::graphics::M = GLFW_KEY_M,
  fireworks::graphics::N = GLFW_KEY_N, fireworks::graphics::O = GLFW_KEY_O, fireworks::graphics::P = GLFW_KEY_P, fireworks::graphics::Q = GLFW_KEY_Q,
  fireworks::graphics::R = GLFW_KEY_R, fireworks::graphics::S = GLFW_KEY_S, fireworks::graphics::T = GLFW_KEY_T, fireworks::graphics::U = GLFW_KEY_U,
  fireworks::graphics::V = GLFW_KEY_V, fireworks::graphics::W = GLFW_KEY_W, fireworks::graphics::X = GLFW_KEY_X, fireworks::graphics::Y = GLFW_KEY_Y,
  fireworks::graphics::Z = GLFW_KEY_Z, fireworks::graphics::LEFT_BRACKET = GLFW_KEY_LEFT_BRACKET, fireworks::graphics::BACKSLASH = GLFW_KEY_BACKSLASH, fireworks::graphics::RIGHT_BRACKET = GLFW_KEY_RIGHT_BRACKET,
  fireworks::graphics::GRAVE_ACCENT = GLFW_KEY_GRAVE_ACCENT, fireworks::graphics::WORLD_1 = GLFW_KEY_WORLD_1, fireworks::graphics::WORLD_2 = GLFW_KEY_WORLD_2, fireworks::graphics::ESCAPE = GLFW_KEY_ESCAPE,
  fireworks::graphics::ENTER = GLFW_KEY_ENTER, fireworks::graphics::TAB = GLFW_KEY_TAB, fireworks::graphics::BACKSPACE = GLFW_KEY_BACKSPACE, fireworks::graphics::INSERT = GLFW_KEY_INSERT,
  fireworks::graphics::DELETE = GLFW_KEY_DELETE, fireworks::graphics::RIGHT = GLFW_KEY_RIGHT, fireworks::graphics::RIGHT, fireworks::graphics::LEFT = GLFW_KEY_LEFT,
  fireworks::graphics::LEFT, fireworks::graphics::DOWN = GLFW_KEY_DOWN, fireworks::graphics::DOWN, fireworks::graphics::UP = GLFW_KEY_UP,
  fireworks::graphics::UP, fireworks::graphics::PAGE_UP = GLFW_KEY_PAGE_UP, fireworks::graphics::PAGE_DOWN = GLFW_KEY_PAGE_DOWN, fireworks::graphics::HOME = GLFW_KEY_HOME,
  fireworks::graphics::END = GLFW_KEY_END, fireworks::graphics::CAPS_LOCK = GLFW_KEY_CAPS_LOCK, fireworks::graphics::SCROLL_LOCK = GLFW_KEY_SCROLL_LOCK, fireworks::graphics::NUM_LOCK = GLFW_KEY_NUM_LOCK,
  fireworks::graphics::PRINT_SCREEN = GLFW_KEY_PRINT_SCREEN, fireworks::graphics::PAUSE = GLFW_KEY_PAUSE, fireworks::graphics::F1 = GLFW_KEY_F1, fireworks::graphics::F2 = GLFW_KEY_F2,
  fireworks::graphics::F3 = GLFW_KEY_F3, fireworks::graphics::F4 = GLFW_KEY_F4, fireworks::graphics::F5 = GLFW_KEY_F5, fireworks::graphics::F6 = GLFW_KEY_F6,
  fireworks::graphics::F7 = GLFW_KEY_F7, fireworks::graphics::F8 = GLFW_KEY_F8, fireworks::graphics::F9 = GLFW_KEY_F9, fireworks::graphics::F10 = GLFW_KEY_F10,
  fireworks::graphics::F11 = GLFW_KEY_F11, fireworks::graphics::F12 = GLFW_KEY_F12, fireworks::graphics::F13 = GLFW_KEY_F13, fireworks::graphics::F14 = GLFW_KEY_F14,
  fireworks::graphics::F15 = GLFW_KEY_F15, fireworks::graphics::F16 = GLFW_KEY_F16, fireworks::graphics::F17 = GLFW_KEY_F17, fireworks::graphics::F18 = GLFW_KEY_F18,
  fireworks::graphics::F19 = GLFW_KEY_F19, fireworks::graphics::F20 = GLFW_KEY_F20, fireworks::graphics::F21 = GLFW_KEY_F21, fireworks::graphics::F22 = GLFW_KEY_F22,
  fireworks::graphics::F23 = GLFW_KEY_F23, fireworks::graphics::F24 = GLFW_KEY_F24, fireworks::graphics::F25 = GLFW_KEY_F25, fireworks::graphics::KP_0 = GLFW_KEY_KP_0,
  fireworks::graphics::KP_1 = GLFW_KEY_KP_1, fireworks::graphics::KP_2 = GLFW_KEY_KP_2, fireworks::graphics::KP_3 = GLFW_KEY_KP_3, fireworks::graphics::KP_4 = GLFW_KEY_KP_4,
  fireworks::graphics::KP_5 = GLFW_KEY_KP_5, fireworks::graphics::KP_6 = GLFW_KEY_KP_6, fireworks::graphics::KP_7 = GLFW_KEY_KP_7, fireworks::graphics::KP_8 = GLFW_KEY_KP_8,
  fireworks::graphics::KP_9 = GLFW_KEY_KP_9, fireworks::graphics::KP_DECIMAL = GLFW_KEY_KP_DECIMAL, fireworks::graphics::KP_DIVIDE = GLFW_KEY_KP_DIVIDE, fireworks::graphics::KP_MULTIPLY = GLFW_KEY_KP_MULTIPLY,
  fireworks::graphics::KP_SUBTRACT = GLFW_KEY_KP_SUBTRACT, fireworks::graphics::KP_ADD = GLFW_KEY_KP_ADD, fireworks::graphics::KP_ENTER = GLFW_KEY_KP_ENTER, fireworks::graphics::KP_EQUAL = GLFW_KEY_KP_EQUAL,
  fireworks::graphics::LEFT_SHIFT = GLFW_KEY_LEFT_SHIFT, fireworks::graphics::LEFT_CONTROL = GLFW_KEY_LEFT_CONTROL, fireworks::graphics::LEFT_ALT = GLFW_KEY_LEFT_ALT, fireworks::graphics::LEFT_SUPER = GLFW_KEY_LEFT_SUPER,
  fireworks::graphics::RIGHT_SHIFT = GLFW_KEY_RIGHT_SHIFT, fireworks::graphics::RIGHT_CONTROL = GLFW_KEY_RIGHT_CONTROL, fireworks::graphics::RIGHT_ALT = GLFW_KEY_RIGHT_ALT, fireworks::graphics::RIGHT_SUPER = GLFW_KEY_RIGHT_SUPER,
  fireworks::graphics::MENU = GLFW_KEY_MENU, fireworks::graphics::MOUSE_BUTTON_1 = GLFW_MOUSE_BUTTON_1, fireworks::graphics::MOUSE_BUTTON_2 = GLFW_MOUSE_BUTTON_2, fireworks::graphics::MOUSE_BUTTON_3 = GLFW_MOUSE_BUTTON_3,
  fireworks::graphics::MOUSE_BUTTON_4 = GLFW_MOUSE_BUTTON_4, fireworks::graphics::MOUSE_BUTTON_5 = GLFW_MOUSE_BUTTON_5, fireworks::graphics::MOUSE_BUTTON_6 = GLFW_MOUSE_BUTTON_6, fireworks::graphics::MOUSE_BUTTON_7 = GLFW_MOUSE_BUTTON_7,
  fireworks::graphics::MOUSE_BUTTON_8 = GLFW_MOUSE_BUTTON_8, fireworks::graphics::MOUSE_BUTTON_LAST = GLFW_MOUSE_BUTTON_LAST, fireworks::graphics::MOUSE_BUTTON_LEFT = GLFW_MOUSE_BUTTON_LEFT, fireworks::graphics::MOUSE_BUTTON_RIGHT = GLFW_MOUSE_BUTTON_RIGHT,
  fireworks::graphics::MOUSE_BUTTON_MIDDLE = GLFW_MOUSE_BUTTON_MIDDLE
}
 All Input Buttons mapped to a more understandable mapping from GLFW. More...
 

Functions

void fireworks::graphics::glfw_initialisation_error (int error, const char *description)
 Input related GLFW callback functions. More...
 
void fireworks::graphics::key_callback (GLFWwindow *window, int key, int scancode, int action, int mods)
 
void fireworks::graphics::window_resize_callback (GLFWwindow *window, int width, int height)
 
void fireworks::graphics::mouse_button_callback (GLFWwindow *window, int button, int action, int mods)
 
void fireworks::graphics::mouse_position_callback (GLFWwindow *window, double xpos, double ypos)
 

Macro Definition Documentation

◆ GL_SILENCE_DEPRECATION

#define GL_SILENCE_DEPRECATION

◆ MAX_BUTTONS

#define MAX_BUTTONS   32

◆ MAX_KEYS

#define MAX_KEYS   1024