示例#1
0
 public void DefineVertexAttributeWithBytes(int attributeLocation, int numberOfByteComponents, int vertexTotalSize, int attributeOffsetInVertex)
 {
     GLCore.EnableVertexAttribArray((uint)attributeLocation);
     GLCore.VertexAttribPointer((uint)attributeLocation, numberOfByteComponents, VertexAttribPointerType.UnsignedByte, true, vertexTotalSize, (IntPtr)attributeOffsetInVertex);
 }
示例#2
0
 public void DefineVertexAttributeWithFloats(int attributeLocation, int numberOfFloatComponents, int vertexTotalSize, int attributeOffsetInVertex)
 {
     GLCore.EnableVertexAttribArray((uint)attributeLocation);
     GLCore.VertexAttribPointer((uint)attributeLocation, numberOfFloatComponents, VertexAttribPointerType.Float, false, vertexTotalSize, (IntPtr)attributeOffsetInVertex);
 }