mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 21:27:52 -04:00
a850b5d5cb
* revamp gfx and display systems a bit * Use some fancy c++ pointers instead of just raw pointers * Tidy some things up. * clang * clang 2 * fixes * fixesss * error detection when making display
21 lines
428 B
C
21 lines
428 B
C
#pragma once
|
|
|
|
/*!
|
|
* @file opengl.h
|
|
* OpenGL includes.
|
|
*/
|
|
|
|
#define GLFW_INCLUDE_NONE
|
|
#include <glad/glad.h>
|
|
#include <GLFW/glfw3.h>
|
|
|
|
#include "game/graphics/gfx.h"
|
|
|
|
enum GlfwKeyAction {
|
|
Release = GLFW_RELEASE, // falling edge of key press
|
|
Press = GLFW_PRESS, // rising edge of key press
|
|
Repeat = GLFW_REPEAT // repeated input on hold e.g. when typing something
|
|
};
|
|
|
|
extern const GfxRendererModule moduleOpenGL;
|