Example #1
0
 /**
  * Erweitert die Geometrie um ein Vertexattribut vom Typ GL_FLOAT.
  *
  * @param index Index / Location des Attributs
  * @param size Anzahl der Komponenten des Attributs
  * @param offset Offset im Vertex gemessen in Byte
  */
 public void addVertexAttribute(int index, int size, int offset) {
   VertexAttribute attr = new VertexAttribute();
   attr.index = index;
   attr.size = size;
   attr.offset = offset;
   attributes.add(attr);
 }