aboutsummaryrefslogtreecommitdiff
path: root/scripts/BindingGenerator.lua
diff options
context:
space:
mode:
authorhecks <42101236+hecktest@users.noreply.github.com>2021-08-07 22:41:50 +0200
committerhecks <42101236+hecktest@users.noreply.github.com>2021-08-07 22:42:18 +0200
commitf83dab83cf691014f5953a8418b799cfcc0c4301 (patch)
tree27d0be8ded9eb8edca41048535785f3cdd243db2 /scripts/BindingGenerator.lua
parent5bf68b5731b1817c31959b8e3adf19a4c2307630 (diff)
downloadirrlicht-f83dab83cf691014f5953a8418b799cfcc0c4301.tar.xz
Add some missing constants to the GL binding
Diffstat (limited to 'scripts/BindingGenerator.lua')
-rwxr-xr-xscripts/BindingGenerator.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/BindingGenerator.lua b/scripts/BindingGenerator.lua
index a1f2f2c..624c21c 100755
--- a/scripts/BindingGenerator.lua
+++ b/scripts/BindingGenerator.lua
@@ -397,6 +397,14 @@ f:write( pointers:Concat( "\n" ) );
f:write( "\n\n" );
f:write( cppConsts:Concat( "\n" ) );
f:write( "\n\n" );
+f:write[[
+ static constexpr const GLenum ZERO = 0;
+ static constexpr const GLenum ONE = 1;
+ static constexpr const GLenum FALSE = 0;
+ static constexpr const GLenum TRUE = 1;
+ static constexpr const GLenum NONE = 0;
+ static constexpr const GLenum NO_ERROR = 0;
+]];
f:write( "};\n" );
f:write( "\n//Global GL procedures object.\n" );
f:write( "IRRLICHT_API extern OpenGLProcedures GL;\n" );