Example #1
0
 void posAttrs(const Program & sp) {
     sp.bind();
     sp.addAttrib("position", 2, 2, 0);
 }
Example #2
0
 void postexAttrs(const Program & sp) {
     sp.bind();
     sp.addAttrib("position", 2, 4, 0);
     sp.addAttrib("texcoord", 2, 4, 2);
 }