|
StapleGL
Header-only C++20 OpenGL wrapper
|
Batched rendering example. More...
#include "glad.h"#include "staplegl.hpp"#include <GLFW/glfw3.h>#include <array>#include <cmath>#include <cstdint>#include <cstdio>#include <ctime>#include <execution>#include <iostream>#include <optional>#include <span>#include <utility>
Go to the source code of this file.
Classes | |
| struct | vec3 |
Functions | |
| constexpr auto | lerp (float a, float b, float f) -> float |
| void | framebuffer_size_callback (GLFWwindow *window, int width, int height) |
| void | processInput (GLFWwindow *window) |
| void GLAPIENTRY | MessageCallback (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *message, const void *userParam) |
| 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 246 of file batches.cpp.
|
constexpr |
Definition at line 35 of file batches.cpp.
| auto main | ( | ) | -> int |
Definition at line 70 of file batches.cpp.
| void GLAPIENTRY MessageCallback | ( | GLenum | source, |
| GLenum | type, | ||
| GLuint | id, | ||
| GLenum | severity, | ||
| GLsizei | length, | ||
| const GLchar * | message, | ||
| const void * | userParam | ||
| ) |
Definition at line 50 of file batches.cpp.
| void processInput | ( | GLFWwindow * | window | ) |
Definition at line 239 of file batches.cpp.
| const int32_t SCR_HEIGHT = 900 |
Definition at line 68 of file batches.cpp.
| const int32_t SCR_WIDTH = 1600 |
Definition at line 67 of file batches.cpp.