mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2026-08-15 02:57:49 +04:00
msh viewport initial
This commit is contained in:
@@ -185,6 +185,15 @@ public static unsafe class PrimitiveMeshes
|
||||
return CreateIndexedMesh(gl, vertices, indices, PrimitiveType.Lines);
|
||||
}
|
||||
|
||||
public static GpuMesh CreateColoredIndexedMesh(
|
||||
GL gl,
|
||||
IReadOnlyList<float> vertices,
|
||||
IReadOnlyList<uint> indices,
|
||||
PrimitiveType primitiveType = PrimitiveType.Triangles)
|
||||
{
|
||||
return CreateIndexedMesh(gl, vertices.ToArray(), indices.ToArray(), primitiveType);
|
||||
}
|
||||
|
||||
private static GpuMesh CreateIndexedMesh(
|
||||
GL gl,
|
||||
float[] vertices,
|
||||
|
||||
Reference in New Issue
Block a user