Ejemplo n.º 1
0
 public VertexAttribute(int usage, int numComponents, VertexAttribPointerType type, bool normalized, string alias, int unit)
 {
     this.usage         = usage;
     this.numComponents = numComponents;
     this.type          = type;
     this.normalized    = normalized;
     this.alias         = alias;
     this.unit          = unit;
     this.usageIndex    = JavaUtils.numberOfTrailingZeros(usage);
 }
Ejemplo n.º 2
0
 protected Attribute(long type)
 {
     this.type    = type;
     this.typeBit = JavaUtils.numberOfTrailingZeros(type);
 }