Loading...
Searching...
No Matches
Go to the documentation of this file.
38#ifndef YOURGAME_GL_INCLUDE_H
39#define YOURGAME_GL_INCLUDE_H
42#error gl header is already included
43#elif defined(YOURGAME_GL_INCLUDE_GLES1)
45#elif defined(YOURGAME_GL_INCLUDE_GLES2)
47#elif defined(YOURGAME_GL_INCLUDE_GLES3)
49#elif defined(YOURGAME_GL_INCLUDE_GLES31)
50#include <GLES3/gl31.h>
51#elif defined(YOURGAME_GL_INCLUDE_GLES32)
52#include <GLES3/gl32.h>
53#elif defined(YOURGAME_GL_INCLUDE_GLEW)
55#elif defined(YOURGAME_GL_INCLUDE_GL3W)
57#elif defined(YOURGAME_GL_INCLUDE_GLAD)
60#error no gl header included
73#if defined(YOURGAME_GL_API_GL)
74#if (YOURGAME_GL_MAJOR == 2) && (YOURGAME_GL_MINOR == 0)
75#define YOURGAME_GLSL_VERSION_STRING "#version 110"
76#elif (YOURGAME_GL_MAJOR == 2) && (YOURGAME_GL_MINOR == 1)
77#define YOURGAME_GLSL_VERSION_STRING "#version 120"
78#elif (YOURGAME_GL_MAJOR == 3) && (YOURGAME_GL_MINOR == 0)
79#define YOURGAME_GLSL_VERSION_STRING "#version 130"
80#elif (YOURGAME_GL_MAJOR == 3) && (YOURGAME_GL_MINOR == 1)
81#define YOURGAME_GLSL_VERSION_STRING "#version 140"
82#elif (YOURGAME_GL_MAJOR == 3) && (YOURGAME_GL_MINOR == 2)
83#define YOURGAME_GLSL_VERSION_STRING "#version 150"
84#elif (YOURGAME_GL_MAJOR == 3) && (YOURGAME_GL_MINOR == 3)
85#define YOURGAME_GLSL_VERSION_STRING "#version 330"
86#elif (YOURGAME_GL_MAJOR == 4) && (YOURGAME_GL_MINOR == 0)
87#define YOURGAME_GLSL_VERSION_STRING "#version 400"
88#elif (YOURGAME_GL_MAJOR == 4) && (YOURGAME_GL_MINOR == 1)
89#define YOURGAME_GLSL_VERSION_STRING "#version 410"
90#elif (YOURGAME_GL_MAJOR == 4) && (YOURGAME_GL_MINOR == 2)
91#define YOURGAME_GLSL_VERSION_STRING "#version 420"
92#elif (YOURGAME_GL_MAJOR == 4) && (YOURGAME_GL_MINOR == 3)
93#define YOURGAME_GLSL_VERSION_STRING "#version 430"
94#elif (YOURGAME_GL_MAJOR == 4) && (YOURGAME_GL_MINOR == 4)
95#define YOURGAME_GLSL_VERSION_STRING "#version 440"
96#elif (YOURGAME_GL_MAJOR == 4) && (YOURGAME_GL_MINOR == 5)
97#define YOURGAME_GLSL_VERSION_STRING "#version 450"
98#elif (YOURGAME_GL_MAJOR == 4) && (YOURGAME_GL_MINOR == 6)
99#define YOURGAME_GLSL_VERSION_STRING "#version 460"
101#elif defined(YOURGAME_GL_API_GLES)
102#if (YOURGAME_GL_MAJOR == 2) && (YOURGAME_GL_MINOR == 0)
103#define YOURGAME_GLSL_VERSION_STRING "#version 100"
104#elif (YOURGAME_GL_MAJOR == 3) && (YOURGAME_GL_MINOR == 0)
105#define YOURGAME_GLSL_VERSION_STRING "#version 300 es"