Implement VertexAttrib
TRAC #11878
Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch
Author: Andrew Lewycky
git-svn-id: https://angleproject.googlecode.com/svn/trunk@174 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/libGLESv2/Context.cpp b/src/libGLESv2/Context.cpp
index 2c8ef1d..5f7c8cf 100644
--- a/src/libGLESv2/Context.cpp
+++ b/src/libGLESv2/Context.cpp
@@ -2217,6 +2217,19 @@
return false;
}
+
+void Context::setVertexAttrib(GLuint index, const GLfloat *values)
+{
+ ASSERT(index < gl::MAX_VERTEX_ATTRIBS);
+
+ vertexAttribute[index].mCurrentValue[0] = values[0];
+ vertexAttribute[index].mCurrentValue[1] = values[1];
+ vertexAttribute[index].mCurrentValue[2] = values[2];
+ vertexAttribute[index].mCurrentValue[3] = values[3];
+
+ mVertexDataManager->dirtyCurrentValues();
+}
+
}
extern "C"