Cleaned up some graphics code.

This commit is contained in:
Alex Szpakowski
2015-01-24 03:39:05 -04:00
parent e71c15e650
commit b876255442
4 changed files with 41 additions and 33 deletions
+3 -4
View File
@@ -215,13 +215,12 @@ public:
/**
* Sets the enabled color components when rendering.
**/
void setColorMask(const bool mask[4]);
void setColorMask(ColorMask mask);
/**
* Gets the current color mask.
* Returns an array of 4 booleans representing the mask.
**/
const bool *getColorMask() const;
ColorMask getColorMask() const;
/**
* Sets the current blend mode.
@@ -470,7 +469,7 @@ private:
std::vector<Object::StrongRef<Canvas>> canvases;
// Color mask.
bool colorMask[4];
ColorMask colorMask;
bool wireframe;