Fixed Canvas:clear

This commit is contained in:
Alex Szpakowski
2013-05-30 04:31:32 -03:00
parent 6a76e082e4
commit 6c6cb270de
4 changed files with 40 additions and 18 deletions
+13 -1
View File
@@ -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;