mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
Rename Framebuffer to Canvas (issue #263). Move error reporting code.
Error reporting now resides in Graphics::newCanvas() instead of the previous location wrap_newFramebuffer(). Changed error text for "Error in implementation" to point to a possible fix.
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
#include <string>
|
||||
#include <map>
|
||||
#include "Image.h"
|
||||
#include "Framebuffer.h"
|
||||
#include "Canvas.h"
|
||||
|
||||
namespace love
|
||||
{
|
||||
@@ -31,7 +31,7 @@ namespace opengl
|
||||
void sendFloat(const std::string& name, int count, const GLfloat* vec);
|
||||
void sendMatrix(const std::string& name, int size, const GLfloat* m);
|
||||
void sendImage(const std::string& name, const Image& image);
|
||||
void sendFramebuffer(const std::string& name, const Framebuffer& fb);
|
||||
void sendCanvas(const std::string& name, const Canvas& canvas);
|
||||
|
||||
private:
|
||||
GLint getUniformLocation(const std::string& name);
|
||||
|
||||
Reference in New Issue
Block a user