aboutsummaryrefslogtreecommitdiff
path: root/src/client/lua_api/load_video.cpp
diff options
context:
space:
mode:
authorAlexander <alex@cogarr.net>2019-02-10 18:16:04 -0500
committerAlexander <alex@cogarr.net>2019-02-10 18:16:04 -0500
commit83a85531ae789e2f30da2379990899f815f53ff1 (patch)
tree81140ea86f6e3d7808b218597874ea927555ef0d /src/client/lua_api/load_video.cpp
parent1482e03dd238643ff47278e207e6450f14011acf (diff)
downloadbrokengine-83a85531ae789e2f30da2379990899f815f53ff1.tar.gz
brokengine-83a85531ae789e2f30da2379990899f815f53ff1.tar.bz2
brokengine-83a85531ae789e2f30da2379990899f815f53ff1.zip
Added new element, added server-specific code for networking
Added a new element for client gui: iguicombobox Added a part of the engine specifically for the server so server is no longer just a stripped down client
Diffstat (limited to 'src/client/lua_api/load_video.cpp')
-rw-r--r--src/client/lua_api/load_video.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/lua_api/load_video.cpp b/src/client/lua_api/load_video.cpp
index e0c7557..1266c4d 100644
--- a/src/client/lua_api/load_video.cpp
+++ b/src/client/lua_api/load_video.cpp
@@ -23,9 +23,9 @@ extern IVideoDriver* driver;
//{texture},{x,y},{sourcerect},{color},use_alpha
int draw2dimage(lua_State* L){
int nargs = lua_gettop(L);
- //printf("Drawing a 2d image\n");
+ printf("Drawing a 2d image\n");
if(nargs == 2){
- //printf("2-argument version\n");
+ printf("2-argument version\n");
long x,y;
popvector2i(L,&x,&y);
lua_getfield(L,-1,"texture");
@@ -33,10 +33,10 @@ int draw2dimage(lua_State* L){
lua_pop(L,2);
driver->draw2DImage(tex,position2d<s32>(x,y));
}else if(nargs == 5){
- //printf("5-argument version\n");
+ printf("5-argument version\n");
int usealpha = lua_toboolean(L,-1);
lua_pop(L,1);
- //printf("Got usealpha: %d\n",usealpha);
+ printf("Got usealpha: %d\n",usealpha);
long r,g,b,a;
popvector4i(L,&r,&g,&b,&a);
long ssx,ssy,sex,sey;