mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
implement glad into torque.
This commit is contained in:
parent
fd4628a08a
commit
11c3314f66
5 changed files with 18 additions and 19 deletions
|
|
@ -23,11 +23,10 @@
|
|||
#ifndef T_GL_H
|
||||
#define T_GL_H
|
||||
|
||||
#include <epoxy/gl.h>
|
||||
#include <glad/glad.h>
|
||||
|
||||
// JTH: This is slow, we should probably check extensions once and cache them
|
||||
// directly inside of some compatability table.
|
||||
#define gglHasExtension(EXTENSION) epoxy_has_gl_extension("GL_" #EXTENSION)
|
||||
// JTH: When we use glad, extensions are chached into simple booleans (ints)
|
||||
#define gglHasExtension(EXTENSION) GLAD_GL_##EXTENSION
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue