textured fills & enforce vao program with templates
This commit is contained in:
@@ -26,3 +26,8 @@ PatternShader::PatternShader()
|
||||
u_pattern_br = glGetUniformLocation(program, "u_pattern_br");
|
||||
u_mix = glGetUniformLocation(program, "u_mix");
|
||||
}
|
||||
|
||||
void PatternShader::bind(char *offset) {
|
||||
glEnableVertexAttribArray(a_pos);
|
||||
glVertexAttribPointer(a_pos, 2, GL_SHORT, false, 0, offset);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user