Avara3D 0.2.0
C++ API reference
gl.h
1//
2// gl.h
3// avara3d
4//
5// Created by Morgan Davis on 12/31/25.
6// Copyright © 2026 Morgan K Davis. All rights reserved.
7//
8
9// prevents Qt/GLFW/GLAD include-order conflicts
10
11#ifndef AVARA3D_RENDER_BACKEND_OPENGL_GL_H
12#define AVARA3D_RENDER_BACKEND_OPENGL_GL_H
13
14#if defined(A3D_GL_WEB)
15 #include <GLES3/gl3.h>
16 #include <GLES2/gl2ext.h>
17 #include <webgl/webgl1_ext.h>
18#elif defined(A3D_GL_ES)
19 #include <EGL/egl.h>
20 #include <GLES3/gl3.h>
21 #include <GLES2/gl2ext.h>
22#elif defined(A3D_GL_DESKTOP)
23 // GLAD must be included before anything that might include <GL/gl.h>
24 // (Qt's qopenglext, some platform headers, etc)
25 #include <glad/glad.h>
26#else
27 #error "No OpenGL target selected."
28#endif
29
30#endif // AVARA3D_RENDER_BACKEND_OPENGL_GL_H