summaryrefslogtreecommitdiff
path: root/src/cat/LuaScriptInterface.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-04-21 21:46:37 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-04-21 21:46:37 (GMT)
commit96506610b276be1b4bc1cbc462d991237750fc62 (patch)
treec05e6d55d2a0aa2ad178cfa30f00041a104d6fed /src/cat/LuaScriptInterface.cpp
parent75a9460c835f4ebea501a89d23e0c5f46da985cc (diff)
downloadpowder-96506610b276be1b4bc1cbc462d991237750fc62.zip
powder-96506610b276be1b4bc1cbc462d991237750fc62.tar.gz
Clean out graphics, add openGL graphics in seperate file, change brush to use unsigned char rather than boolean for bitmap/outline
Diffstat (limited to 'src/cat/LuaScriptInterface.cpp')
-rw-r--r--src/cat/LuaScriptInterface.cpp24
1 files changed, 6 insertions, 18 deletions
diff --git a/src/cat/LuaScriptInterface.cpp b/src/cat/LuaScriptInterface.cpp
index 5d07279..a918ff1 100644
--- a/src/cat/LuaScriptInterface.cpp
+++ b/src/cat/LuaScriptInterface.cpp
@@ -1444,7 +1444,7 @@ int luatpt_get_property(lua_State* l)
int luatpt_drawpixel(lua_State* l)
{
- int x, y, r, g, b, a;
+ /*int x, y, r, g, b, a;
x = luaL_optint(l, 1, 0);
y = luaL_optint(l, 2, 0);
r = luaL_optint(l, 3, 255);
@@ -1466,8 +1466,8 @@ int luatpt_drawpixel(lua_State* l)
{
luacon_g->drawpixel(x, y, r, g, b, a);
return 0;
- }
- return luaL_error(l, "Screen buffer does not exist");
+ }*/
+ return luaL_error(l, "Deprecated");
}
int luatpt_drawrect(lua_State* l)
@@ -1496,11 +1496,7 @@ int luatpt_drawrect(lua_State* l)
if (b>255) b = 255;
if (a<0) a = 0;
if (a>255) a = 255;
- if (luacon_g->vid!=NULL)
- {
- luacon_g->drawrect(x, y, w, h, r, g, b, a);
- return 0;
- }
+ luacon_g->drawrect(x, y, w, h, r, g, b, a);
return luaL_error(l, "Screen buffer does not exist");
}
@@ -1530,11 +1526,7 @@ int luatpt_fillrect(lua_State* l)
if (b>255) b = 255;
if (a<0) a = 0;
if (a>255) a = 255;
- if (luacon_g->vid!=NULL)
- {
- luacon_g->fillrect(x, y, w, h, r, g, b, a);
- return 0;
- }
+ luacon_g->fillrect(x, y, w, h, r, g, b, a);
return luaL_error(l, "Screen buffer does not exist");
}
@@ -1559,11 +1551,7 @@ int luatpt_drawline(lua_State* l)
if (b>255) b = 255;
if (a<0) a = 0;
if (a>255) a = 255;
- if (luacon_g->vid!=NULL)
- {
- luacon_g->blend_line(x1, y1, x2, y2, r, g, b, a);
- return 0;
- }
+ luacon_g->draw_line(x1, y1, x2, y2, r, g, b, a);
return luaL_error(l, "Screen buffer does not exist");
}