aboutsummaryrefslogtreecommitdiff
path: root/src/script/graphics
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-05-19 09:35:35 +0800
committerchai <chaifix@163.com>2018-05-19 09:35:35 +0800
commit6ed3819f1a859ffc350c4aaad132f164478f5d79 (patch)
tree438fb44f879f816d3293264ebea66ea64a3c5339 /src/script/graphics
parent8ad6a7f955182955aec1fff0ed367f564f31e46a (diff)
修改主循环
Diffstat (limited to 'src/script/graphics')
-rw-r--r--src/script/graphics/luaopen_JSL.cpp1
-rw-r--r--src/script/graphics/luaopen_Tilemap.cpp9
-rw-r--r--src/script/graphics/luaopen_graphics.cpp7
3 files changed, 1 insertions, 16 deletions
diff --git a/src/script/graphics/luaopen_JSL.cpp b/src/script/graphics/luaopen_JSL.cpp
index 919949c..adb109c 100644
--- a/src/script/graphics/luaopen_JSL.cpp
+++ b/src/script/graphics/luaopen_JSL.cpp
@@ -141,5 +141,6 @@ namespace lua
luax_newtype(L, TYPE_JSL, f);
return 0;
}
+
}
} \ No newline at end of file
diff --git a/src/script/graphics/luaopen_Tilemap.cpp b/src/script/graphics/luaopen_Tilemap.cpp
deleted file mode 100644
index 983193e..0000000
--- a/src/script/graphics/luaopen_Tilemap.cpp
+++ /dev/null
@@ -1,9 +0,0 @@
-namespace jin
-{
-namespace lua
-{
-
-
-
-}
-}
diff --git a/src/script/graphics/luaopen_graphics.cpp b/src/script/graphics/luaopen_graphics.cpp
index 50b1921..6e78e36 100644
--- a/src/script/graphics/luaopen_graphics.cpp
+++ b/src/script/graphics/luaopen_graphics.cpp
@@ -19,11 +19,8 @@ namespace lua
static struct
{
color curRenderColor;
-
Font* curFont = 0;
-
Font* defaultFont = 0;
-
} context;
/**
@@ -40,10 +37,6 @@ namespace lua
setting.vsync = luax_getfield_bool(L, 1, "vsync");
wnd->init(setting);
- // set default blend method
- glEnable(GL_BLEND);
- glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
-
// init success
luax_pushboolean(L, true);
return 1;