From 26f1bd51712404a5a7d794f1d73aa217bb2f5d8b Mon Sep 17 00:00:00 2001 From: samuele3hu Date: Mon, 17 Jun 2013 14:19:00 +0800 Subject: [PATCH] issue #2277: Add OpenGL lua binding --- .../project.pbxproj.REMOVED.git-id | 2 +- .../cocos2dx_support/LuaOpengl.cpp.REMOVED.git-id | 1 + scripting/lua/cocos2dx_support/LuaOpengl.h | 15 +++++++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 scripting/lua/cocos2dx_support/LuaOpengl.cpp.REMOVED.git-id create mode 100644 scripting/lua/cocos2dx_support/LuaOpengl.h diff --git a/samples/Lua/TestLua/proj.ios/TestLua.xcodeproj/project.pbxproj.REMOVED.git-id b/samples/Lua/TestLua/proj.ios/TestLua.xcodeproj/project.pbxproj.REMOVED.git-id index 363b49cf1a..e30bde7975 100644 --- a/samples/Lua/TestLua/proj.ios/TestLua.xcodeproj/project.pbxproj.REMOVED.git-id +++ b/samples/Lua/TestLua/proj.ios/TestLua.xcodeproj/project.pbxproj.REMOVED.git-id @@ -1 +1 @@ -393bddc01d5ea9a3d98e1d0c03c902424d05346e \ No newline at end of file +da31505b1daa8313b3e96c8e7d6113631d12f5f5 \ No newline at end of file diff --git a/scripting/lua/cocos2dx_support/LuaOpengl.cpp.REMOVED.git-id b/scripting/lua/cocos2dx_support/LuaOpengl.cpp.REMOVED.git-id new file mode 100644 index 0000000000..590fa7f0f3 --- /dev/null +++ b/scripting/lua/cocos2dx_support/LuaOpengl.cpp.REMOVED.git-id @@ -0,0 +1 @@ +5f7a7be1a869fb3302b56d48463bdb61a06550f7 \ No newline at end of file diff --git a/scripting/lua/cocos2dx_support/LuaOpengl.h b/scripting/lua/cocos2dx_support/LuaOpengl.h new file mode 100644 index 0000000000..68b8d94018 --- /dev/null +++ b/scripting/lua/cocos2dx_support/LuaOpengl.h @@ -0,0 +1,15 @@ +#ifndef __LUA_OPENGL_H__ +#define __LUA_OPENGL_H__ + +#ifdef __cplusplus +extern "C" { +#endif +#include "tolua++.h" +#ifdef __cplusplus +} +#endif + + +TOLUA_API int tolua_opengl_open(lua_State* tolua_S); + +#endif //__LUA_OPENGL_H__