Example #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);
 }
Example #2
0
 protected Attribute(long type)
 {
     this.type    = type;
     this.typeBit = JavaUtils.numberOfTrailingZeros(type);
 }