Commit 18ad5106 by Nicolas Capens

Implement glColor4f().

Change-Id: I2afaad1693844292e58180b1dd8ff9bf7b351c44 Reviewed-on: https://swiftshader-review.googlesource.com/2853Reviewed-by: 's avatarNicolas Capens <capn@google.com> Tested-by: 's avatarNicolas Capens <capn@google.com>
parent 9651718a
...@@ -785,7 +785,14 @@ void GL_APIENTRY glClipPlanex(GLenum plane, const GLfixed *equation) ...@@ -785,7 +785,14 @@ void GL_APIENTRY glClipPlanex(GLenum plane, const GLfixed *equation)
void GL_APIENTRY glColor4f(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha) void GL_APIENTRY glColor4f(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
{ {
UNIMPLEMENTED(); TRACE("(GLfloat red = %f, GLfloat green = %f, GLfloat blue = %f, GLfloat alpha = %f)", red, green, blue, alpha);
es1::Context *context = es1::getContext();
if(context)
{
context->setVertexAttrib(sw::Color0, red, green, blue, alpha);
}
} }
void GL_APIENTRY glColor4ub(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha) void GL_APIENTRY glColor4ub(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment