mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
Oops, that wasn't supposed to be in the repo (yet)
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user