mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Did the name change
This commit is contained in:
@@ -470,9 +470,9 @@ namespace opengl
|
||||
return new ParticleSystem(image, size);
|
||||
}
|
||||
|
||||
Fbo * Graphics::newFbo(int width, int height)
|
||||
Framebuffer * Graphics::newFramebuffer(int width, int height)
|
||||
{
|
||||
return new Fbo(width, height);
|
||||
return new Framebuffer(width, height);
|
||||
}
|
||||
|
||||
void Graphics::setColor(Color c)
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
#include "Quad.h"
|
||||
#include "SpriteBatch.h"
|
||||
#include "ParticleSystem.h"
|
||||
#include "Fbo.h"
|
||||
#include "Framebuffer.h"
|
||||
|
||||
namespace love
|
||||
{
|
||||
@@ -261,7 +261,7 @@ namespace opengl
|
||||
|
||||
ParticleSystem * newParticleSystem(Image * image, int size);
|
||||
|
||||
Fbo * newFbo(int width, int height);
|
||||
Framebuffer * newFramebuffer(int width, int height);
|
||||
|
||||
/**
|
||||
* Sets the foreground color.
|
||||
|
||||
@@ -292,17 +292,17 @@ namespace opengl
|
||||
return 1;
|
||||
}
|
||||
|
||||
int w_newFbo(lua_State * L)
|
||||
int w_newFramebuffer(lua_State * L)
|
||||
{
|
||||
int width, height;
|
||||
width = luaL_checkint(L, 1);
|
||||
height = luaL_checkint(L, 2);
|
||||
Fbo * fbo = instance->newFbo(width, height);
|
||||
Framebuffer * Framebuffer = instance->newFramebuffer(width, height);
|
||||
|
||||
//and there we go with the status... still disliked
|
||||
if (fbo->statusCode() != GL_FRAMEBUFFER_COMPLETE_EXT)
|
||||
return luaL_error(L, "Cannot create FBO: %s", fbo->statusMessage());
|
||||
luax_newtype(L, "Fbo", GRAPHICS_FBO_T, (void*)fbo);
|
||||
if (Framebuffer->statusCode() != GL_FRAMEBUFFER_COMPLETE_EXT)
|
||||
return luaL_error(L, "Cannot create Framebuffer: %s", Framebuffer->statusMessage());
|
||||
luax_newtype(L, "Framebuffer", GRAPHICS_FRAMEBUFFER_T, (void*)Framebuffer);
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -843,7 +843,7 @@ namespace opengl
|
||||
{ "newImageFont", w_newImageFont },
|
||||
{ "newSpriteBatch", w_newSpriteBatch },
|
||||
{ "newParticleSystem", w_newParticleSystem },
|
||||
{ "newFbo", w_newFbo },
|
||||
{ "newFramebuffer", w_newFramebuffer },
|
||||
|
||||
{ "setColor", w_setColor },
|
||||
{ "getColor", w_getColor },
|
||||
@@ -921,7 +921,7 @@ namespace opengl
|
||||
luaopen_frame,
|
||||
luaopen_spritebatch,
|
||||
luaopen_particlesystem,
|
||||
luaopen_fbo,
|
||||
luaopen_framebuffer,
|
||||
0
|
||||
};
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
#include "wrap_Quad.h"
|
||||
#include "wrap_SpriteBatch.h"
|
||||
#include "wrap_ParticleSystem.h"
|
||||
#include "wrap_Fbo.h"
|
||||
#include "wrap_Framebuffer.h"
|
||||
#include "Graphics.h"
|
||||
|
||||
namespace love
|
||||
@@ -59,7 +59,7 @@ namespace opengl
|
||||
int w_newImageFont(lua_State * L);
|
||||
int w_newSpriteBatch(lua_State * L);
|
||||
int w_newParticleSystem(lua_State * L);
|
||||
int w_newFbo(lua_State * L); // commetns in function
|
||||
int w_newFramebuffer(lua_State * L); // commetns in function
|
||||
int w_setColor(lua_State * L);
|
||||
int w_getColor(lua_State * L);
|
||||
int w_setBackgroundColor(lua_State * L);
|
||||
|
||||
Reference in New Issue
Block a user