Beispiel #1
0
 public void DrawVertexPrimitiveList(Vertex3DT2[] vertices, PrimitiveType pType)
 {
     ushort[] indexList = new ushort[vertices.Length];
     for (ushort i = 0; i < vertices.Length; i++)
         indexList[i] = i;
     DrawVertexPrimitiveList(vertices, indexList, pType);
 }
Beispiel #2
0
 public void SetVertexT2(uint nr, Vertex3DT2 vert)
 {
     MeshBuffer_SetVertex2T(_raw, nr, vert.Raw);
 }
Beispiel #3
0
 public void DrawVertexPrimitiveList(Vertex3DT2[] vertices, ushort[] indexList, int triangleCount, PrimitiveType pType)
 {
     DrawVertexPrimitiveList(vertices, vertices.Length, indexList, triangleCount, pType);
 }
Beispiel #4
0
 public void DrawVertexPrimitiveList(Vertex3DT2[] vertices, ushort[] indexList, PrimitiveType pType)
 {
     DrawVertexPrimitiveList(vertices, indexList, vertices.Length / 3, pType);
 }
Beispiel #5
0
 public void DrawIndexedTriangleList(Vertex3DT2[] vertices)
 {
     ushort[] indexList = new ushort[vertices.Length];
     for (ushort i = 0; i < vertices.Length; i++)
         indexList[i] = i;
     DrawIndexedTriangleList(vertices, indexList);
 }
Beispiel #6
0
 public void DrawVertexPrimitiveList(Vertex3DT2[] vertices, int vertexCount, ushort[] indexList, int triangleCount, PrimitiveType pType)
 {
     IntPtr[] rawlist = new IntPtr[vertexCount];
     for (int i = 0; i < rawlist.Length; i++)
         rawlist[i] = vertices[i].Raw;
     VideoDriver_DrawVertexPrimitiveList(_raw, rawlist, vertexCount, indexList, triangleCount, VertexType.T2Coords, pType);
 }
Beispiel #7
0
 public void DrawIndexedTriangleList(Vertex3DT2[] vertices, ushort[] indexList)
 {
     DrawIndexedTriangleList(vertices, vertices.Length, indexList, vertices.Length / 3);
 }
Beispiel #8
0
 public void DrawIndexedTriangleList(Vertex3DT2[] vertices, int vertexCount, ushort[] indexList, int triangleCount)
 {
     IntPtr[] rawlist = new IntPtr[vertexCount];
     for (int i = 0; i < rawlist.Length; i++)
         rawlist[i] = vertices[i].Raw;
     VideoDriver_DrawIndexedTriangleListA(_raw, rawlist, vertexCount, indexList, triangleCount);
 }
Beispiel #9
0
 public void DrawIndexedTriangleFan(Vertex3DT2[] vertices)
 {
     ushort[] indexFan = new ushort[vertices.Length];
     for (ushort i = 0; i < vertices.Length; i++)
         indexFan[i] = i;
     DrawIndexedTriangleFan(vertices, indexFan);
 }
Beispiel #10
0
 public void DrawIndexedTriangleFan(Vertex3DT2[] vertices, ushort[] indexFan)
 {
     DrawIndexedTriangleFan(vertices, vertices.Length, indexFan, vertices.Length / 3);
 }
Beispiel #11
0
 public void DrawIndexedTriangleFan(Vertex3DT2[] vertices, int vertexCount, ushort[] indexFan, int triangleCount)
 {
     IntPtr[] rawFan = new IntPtr[vertexCount];
     for (int i = 0; i < vertexCount; i++)
         rawFan[i] = vertices[i].Raw;
     VideoDriver_DrawIndexedTriangleFanA(_raw, rawFan, vertexCount, indexFan, triangleCount);
 }