mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
Fixed Canvas:clear
This commit is contained in:
@@ -71,7 +71,17 @@ public:
|
||||
/**
|
||||
* Gets the current constant color.
|
||||
**/
|
||||
Color getColor();
|
||||
Color getColor() const;
|
||||
|
||||
/**
|
||||
* Sets the current clear color for all framebuffer objects.
|
||||
**/
|
||||
void setClearColor(const Color &c);
|
||||
|
||||
/**
|
||||
* Gets the current clear color.
|
||||
**/
|
||||
Color getClearColor() const;
|
||||
|
||||
/**
|
||||
* Helper for setting the active texture unit.
|
||||
@@ -135,6 +145,8 @@ private:
|
||||
// Current constant color.
|
||||
Color color;
|
||||
|
||||
Color clearColor;
|
||||
|
||||
// Texture unit state (currently bound texture for each texture unit.)
|
||||
std::vector<GLuint> textureUnits;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user