void ShaderProgram::setAttribute(GLint index, const Vector4<GLuint> &v)
{
	glVertexAttrib4uiv(index, &(v.x));
}
예제 #2
0
void shader_gl3::attribute(const char* name, const uint4* arg1) const {
	A2E_CHECK_ATTRIBUTE_EXISTENCE(name);
	A2E_CHECK_ATTRIBUTE_TYPE(name, GL_FLOAT_VEC4);
	glVertexAttrib4uiv(A2E_SHADER_GET_ATTRIBUTE_POSITION(name), (GLuint*)arg1);
}