Example #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);
 }
Example #2
0
 public void SetVertexT2(uint nr, Vertex3DT2 vert)
 {
     MeshBuffer_SetVertex2T(_raw, nr, vert.Raw);
 }
Example #3
0
 public void DrawVertexPrimitiveList(Vertex3DT2[] vertices, ushort[] indexList, int triangleCount, PrimitiveType pType)
 {
     DrawVertexPrimitiveList(vertices, vertices.Length, indexList, triangleCount, pType);
 }
Example #4
0
 public void DrawVertexPrimitiveList(Vertex3DT2[] vertices, ushort[] indexList, PrimitiveType pType)
 {
     DrawVertexPrimitiveList(vertices, indexList, vertices.Length / 3, pType);
 }
Example #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);
 }
Example #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);
 }
Example #7
0
 public void DrawIndexedTriangleList(Vertex3DT2[] vertices, ushort[] indexList)
 {
     DrawIndexedTriangleList(vertices, vertices.Length, indexList, vertices.Length / 3);
 }
Example #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);
 }
Example #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);
 }
Example #10
0
 public void DrawIndexedTriangleFan(Vertex3DT2[] vertices, ushort[] indexFan)
 {
     DrawIndexedTriangleFan(vertices, vertices.Length, indexFan, vertices.Length / 3);
 }
Example #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);
 }