|
StapleGL
Header-only C++20 OpenGL wrapper
|
Minimal example of how to use staplegl. More...
#include "glad.h"#include "staplegl.hpp"#include <GLFW/glfw3.h>#include <array>#include <iostream>#include <span>#include <utility>
Go to the source code of this file.
Functions | |
| void | framebuffer_size_callback (GLFWwindow *window, int width, int height) |
| void | processInput (GLFWwindow *window) |
| auto | main () -> int |
Variables | |
| const int32_t | SCR_WIDTH = 1600 |
| const int32_t | SCR_HEIGHT = 900 |
| void framebuffer_size_callback | ( | GLFWwindow * | window, |
| int | width, | ||
| int | height | ||
| ) |
Definition at line 141 of file sandbox.cpp.
| auto main | ( | ) | -> int |
Definition at line 27 of file sandbox.cpp.
| void processInput | ( | GLFWwindow * | window | ) |
Definition at line 131 of file sandbox.cpp.
| const int32_t SCR_HEIGHT = 900 |
Definition at line 25 of file sandbox.cpp.
| const int32_t SCR_WIDTH = 1600 |
Definition at line 24 of file sandbox.cpp.