|
@@ -226,10 +226,6 @@ public:
|
|
* The y-coordinate starts at the top.
|
|
* The y-coordinate starts at the top.
|
|
**/
|
|
**/
|
|
void setViewport(const Rect &v);
|
|
void setViewport(const Rect &v);
|
|
-
|
|
|
|
- /**
|
|
|
|
- * Gets the current OpenGL rendering viewport rectangle.
|
|
|
|
- **/
|
|
|
|
Rect getViewport() const;
|
|
Rect getViewport() const;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -239,23 +235,22 @@ public:
|
|
void setScissor(const Rect &v, bool canvasActive);
|
|
void setScissor(const Rect &v, bool canvasActive);
|
|
|
|
|
|
/**
|
|
/**
|
|
- * Sets the global point size.
|
|
|
|
|
|
+ * Sets the constant color (vertex attribute). This may be applied
|
|
|
|
+ * internally at draw-time.
|
|
**/
|
|
**/
|
|
- void setPointSize(float size);
|
|
|
|
|
|
+ void setConstantColor(const Colorf &color);
|
|
|
|
+ const Colorf &getConstantColor() const;
|
|
|
|
|
|
/**
|
|
/**
|
|
- * Gets the global point size.
|
|
|
|
|
|
+ * Sets the global point size.
|
|
**/
|
|
**/
|
|
|
|
+ void setPointSize(float size);
|
|
float getPointSize() const;
|
|
float getPointSize() const;
|
|
|
|
|
|
/**
|
|
/**
|
|
* Calls glEnable/glDisable(GL_FRAMEBUFFER_SRGB).
|
|
* Calls glEnable/glDisable(GL_FRAMEBUFFER_SRGB).
|
|
**/
|
|
**/
|
|
void setFramebufferSRGB(bool enable);
|
|
void setFramebufferSRGB(bool enable);
|
|
-
|
|
|
|
- /**
|
|
|
|
- * Equivalent to glIsEnabled(GL_FRAMEBUFFER_SRGB).
|
|
|
|
- **/
|
|
|
|
bool hasFramebufferSRGB() const;
|
|
bool hasFramebufferSRGB() const;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -405,6 +400,9 @@ private:
|
|
|
|
|
|
uint32 enabledAttribArrays;
|
|
uint32 enabledAttribArrays;
|
|
|
|
|
|
|
|
+ Colorf constantColor;
|
|
|
|
+ Colorf lastConstantColor;
|
|
|
|
+
|
|
Rect viewport;
|
|
Rect viewport;
|
|
Rect scissor;
|
|
Rect scissor;
|
|
|
|
|