aboutsummaryrefslogtreecommitdiff
path: root/src/client/lua_api/video
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2018-06-22 12:38:38 -0600
committerAlexander Pickering <alexandermpickering@gmail.com>2018-06-22 12:38:38 -0600
commit9fa5dcc9310a8c6ff8c77a47a86303f7b950dcf3 (patch)
treed7956fc8aabef903f354578d69d4d7fdf64ec928 /src/client/lua_api/video
parent06d3e8182d018ca613f177f6ff7a3bbb6494cc79 (diff)
downloadbrokengine-9fa5dcc9310a8c6ff8c77a47a86303f7b950dcf3.tar.gz
brokengine-9fa5dcc9310a8c6ff8c77a47a86303f7b950dcf3.tar.bz2
brokengine-9fa5dcc9310a8c6ff8c77a47a86303f7b950dcf3.zip
Updated core
Updated all core files to prepare for tech demo
Diffstat (limited to 'src/client/lua_api/video')
-rw-r--r--src/client/lua_api/video/iimage.cpp10
-rw-r--r--src/client/lua_api/video/itexture.cpp4
2 files changed, 7 insertions, 7 deletions
diff --git a/src/client/lua_api/video/iimage.cpp b/src/client/lua_api/video/iimage.cpp
index 586085e..3090057 100644
--- a/src/client/lua_api/video/iimage.cpp
+++ b/src/client/lua_api/video/iimage.cpp
@@ -12,25 +12,25 @@ extern IVideoDriver* driver;
//newiimage(ECOLOR_FORMAT,{width,height}) -> {image}
int newiimage(lua_State* L){
- printf("Attempting to create new iimage\n");
+ //printf("Attempting to create new iimage\n");
long w,h;
popvector2i(L,&w,&h);
int format = lua_tonumber(L,-1);
lua_pop(L,1);
- printf("All data collected, creating...\n");
+ //printf("All data collected, creating...\n");
IImage* img = driver->createImage((irr::video::ECOLOR_FORMAT)format,irr::core::dimension2d<u32>(w,h));
lua_newtable(L);
lua_pushlightuserdata(L,img);
lua_setfield(L,-2,"image");
luaL_getmetatable(L,"iimage");
lua_setmetatable(L,-2);
- printf("Everything sets up, returning\n");
+ //printf("Everything sets up, returning\n");
return 1;
}
//newiimagefromfile("/path/to/file") -> {image}
int newiimagefromfile(lua_State* L){
- printf("Creating new iimage from file");
+ //printf("Creating new iimage from file");
const char* strpath = lua_tostring(L,-1);
lua_pop(L,1);
int numloaders = driver->getImageLoaderCount();
@@ -59,7 +59,7 @@ int newiimagefromfile(lua_State* L){
lua_setfield(L,-2,"image");
luaL_getmetatable(L,"iimage");
lua_setmetatable(L,-2);
- printf("IImage made, returning!");
+ //printf("IImage made, returning!");
return 1;
}
diff --git a/src/client/lua_api/video/itexture.cpp b/src/client/lua_api/video/itexture.cpp
index 599a448..42de1bd 100644
--- a/src/client/lua_api/video/itexture.cpp
+++ b/src/client/lua_api/video/itexture.cpp
@@ -16,14 +16,14 @@ extern IrrlichtDevice* device;
extern IVideoDriver* driver;
//newtexture(string name,{image}) -> {texture}
int newitexture(lua_State* L){
- printf("About to create new texture\n");
+ //printf("About to create new texture\n");
lua_getfield(L,-1,"image");//"name",{image},image*
IImage* im = (IImage*) lua_touserdata(L,-1);
lua_pop(L,2);//"name"
const char* name = lua_tostring(L,-1);
lua_pop(L,1);//
- printf("About to create texture\n");
+ //printf("About to create texture\n");
ITexture* tex = driver->addTexture(name,im);
if(!tex){
lua_pushstring(L,"Failed to create texture!");