From 8f7f9a1146f3971ba333f2330c412c79c2c110bd Mon Sep 17 00:00:00 2001 From: altalk23 <45172705+altalk23@users.noreply.github.com> Date: Tue, 12 Sep 2023 16:26:42 +0300 Subject: [PATCH] add compileshader --- bindings/Cocos2d.bro | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bindings/Cocos2d.bro b/bindings/Cocos2d.bro index b26400b2..9217537d 100644 --- a/bindings/Cocos2d.bro +++ b/bindings/Cocos2d.bro @@ -318,7 +318,7 @@ class cocos2d::CCFileUtils : cocos2d::TypeInfo { class cocos2d::CCGLProgram { auto setUniformsForBuiltins() = mac 0x232c70; auto use() = mac 0x231d70; - bool compileShader(unsigned int* shader, unsigned int type, const char* source); + bool compileShader(unsigned int* shader, unsigned int type, const char* source) = mac 0x231a30; } [[link(win)]] @@ -1258,6 +1258,7 @@ class cocos2d { static void ccDrawPoly(cocos2d::CCPoint const*, unsigned int, bool) = mac 0xed0a0; static void ccDrawColor4B(GLubyte, GLubyte, GLubyte, GLubyte) = mac 0xeddd0; static void CCMessageBox(const char* msg, const char* title) = mac 0xbabc0; + static void ccGLUseProgram(GLuint program) = mac 0x1ae540; } [[link(win)]]