]> git.lizzy.rs Git - irrlicht.git/commitdiff
Add some missing constants to the GL binding
authorhecks <42101236+hecktest@users.noreply.github.com>
Sat, 7 Aug 2021 20:41:50 +0000 (22:41 +0200)
committerhecks <42101236+hecktest@users.noreply.github.com>
Sat, 7 Aug 2021 20:42:18 +0000 (22:42 +0200)
include/mt_opengl.h
scripts/BindingGenerator.lua

index 5ddb48cb7077aac8147c9260cae841253fa47cdc..9a4cec44565d0f0d3f266977ff60b38583a11be6 100755 (executable)
@@ -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.
index a1f2f2c175ec91281847566551d22b3f50c6f41d..624c21c6a3bf0c01ba5820d5535126186d1d042b 100755 (executable)
@@ -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" );