From f83dab83cf691014f5953a8418b799cfcc0c4301 Mon Sep 17 00:00:00 2001 From: hecks <42101236+hecktest@users.noreply.github.com> Date: Sat, 7 Aug 2021 22:41:50 +0200 Subject: [PATCH] Add some missing constants to the GL binding --- include/mt_opengl.h | 6 ++++++ scripts/BindingGenerator.lua | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/include/mt_opengl.h b/include/mt_opengl.h index 5ddb48c..9a4cec4 100755 --- a/include/mt_opengl.h +++ b/include/mt_opengl.h @@ -3146,6 +3146,12 @@ public: static constexpr const GLenum STATE_RESTORE = 0x8BDC; static constexpr const GLenum SHADER_BINARY_VIV = 0x8FC4; + 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; }; //Global GL procedures object. 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" );