Monad Engine da02fba2
> Undercity Codex_
Loading...
Searching...
No Matches
GLForward.h
Go to the documentation of this file.
1#pragma once
2
3// Forward declarations for the few GL types that public engine headers expose
4// in their member layouts (Texture, Mesh, ShaderProgram, VertexLayout).
5//
6// Pulling <GL/glew.h> into a header drags ~30k lines into every TU that
7// includes it transitively. The OpenGL spec fixes these typedefs, so we can
8// safely declare them here and keep the heavy GLEW include confined to .cpp
9// files. C/C++ permit identical typedef redeclarations, so TUs that *do*
10// include GLEW after this header still compile cleanly.
11typedef unsigned int GLuint;
12typedef unsigned int GLenum;
13typedef int GLint;
14typedef int GLsizei;
int GLint
Definition GLForward.h:13
unsigned int GLenum
Definition GLForward.h:12
int GLsizei
Definition GLForward.h:14
unsigned int GLuint
Definition GLForward.h:11