Oops, that wasn't supposed to be in the repo (yet)

This commit is contained in:
Bart van Strien
2010-08-10 16:43:35 +02:00
parent 8362e86627
commit b8c82d51b8
9 changed files with 31 additions and 292 deletions
+2 -19
View File
@@ -84,7 +84,7 @@ namespace opengl
instance->setIcon(image);
return 0;
}
int w_setCaption(lua_State * L)
{
const char * str = luaL_checkstring(L, 1);
@@ -292,21 +292,6 @@ namespace opengl
return 1;
}
int w_newFbo(lua_State * L)
{
int width, height;
width = luaL_checkint(L, 1);
height = luaL_checkint(L, 2);
Fbo * fbo = instance->newFbo(width, height);
//and there we go with the status... still disliked
GLenum status = fbo->status();
if (status != GL_FRAMEBUFFER_COMPLETE_EXT)
return luaL_error(L, "Cannot create FBO: %d", status);
luax_newtype(L, "Fbo", GRAPHICS_FBO_T, (void*)fbo);
return 1;
}
int w_setColor(lua_State * L)
{
Color c;
@@ -844,7 +829,6 @@ namespace opengl
{ "newImageFont", w_newImageFont },
{ "newSpriteBatch", w_newSpriteBatch },
{ "newParticleSystem", w_newParticleSystem },
{ "newFbo", w_newFbo },
{ "setColor", w_setColor },
{ "getColor", w_getColor },
@@ -882,7 +866,7 @@ namespace opengl
{ "setCaption", w_setCaption },
{ "getCaption", w_getCaption },
{ "setIcon", w_setIcon },
{ "getWidth", w_getWidth },
@@ -922,7 +906,6 @@ namespace opengl
luaopen_frame,
luaopen_spritebatch,
luaopen_particlesystem,
luaopen_fbo,
0
};