mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2026-05-15 00:44:49 +08:00
Moved DX-dependent vertex types stuff to Rendering namespace
This commit is contained in:
@@ -18,8 +18,8 @@ namespace CodeWalker.GameFiles
|
||||
public YndLink[] Links { get; set; }
|
||||
public YndJunction[] Junctions { get; set; }
|
||||
|
||||
public VertexTypePC[] LinkedVerts { get; set; }//populated by the space (needs to use grid of all ynd's!)
|
||||
public VertexTypePC[] TriangleVerts { get; set; } //used for junctions display
|
||||
public EditorVertex[] LinkedVerts { get; set; }//populated by the space (needs to use grid of all ynd's!)
|
||||
public EditorVertex[] TriangleVerts { get; set; } //used for junctions display
|
||||
public Vector4[] NodePositions { get; set; }
|
||||
|
||||
public Vector3 BBMin { get; set; }
|
||||
@@ -443,11 +443,11 @@ namespace CodeWalker.GameFiles
|
||||
vc = Links.Length * 6;
|
||||
}
|
||||
|
||||
List<VertexTypePC> verts = new List<VertexTypePC>(vc);
|
||||
VertexTypePC v0 = new VertexTypePC();
|
||||
VertexTypePC v1 = new VertexTypePC();
|
||||
VertexTypePC v2 = new VertexTypePC();
|
||||
VertexTypePC v3 = new VertexTypePC();
|
||||
List<EditorVertex> verts = new List<EditorVertex>(vc);
|
||||
EditorVertex v0 = new EditorVertex();
|
||||
EditorVertex v1 = new EditorVertex();
|
||||
EditorVertex v2 = new EditorVertex();
|
||||
EditorVertex v3 = new EditorVertex();
|
||||
if ((Links != null) && (Nodes != null))
|
||||
{
|
||||
foreach (var node in Nodes)
|
||||
@@ -530,11 +530,11 @@ namespace CodeWalker.GameFiles
|
||||
}
|
||||
}
|
||||
|
||||
List<VertexTypePC> verts = new List<VertexTypePC>(vc);
|
||||
VertexTypePC v0 = new VertexTypePC();
|
||||
VertexTypePC v1 = new VertexTypePC();
|
||||
VertexTypePC v2 = new VertexTypePC();
|
||||
VertexTypePC v3 = new VertexTypePC();
|
||||
List<EditorVertex> verts = new List<EditorVertex>(vc);
|
||||
EditorVertex v0 = new EditorVertex();
|
||||
EditorVertex v1 = new EditorVertex();
|
||||
EditorVertex v2 = new EditorVertex();
|
||||
EditorVertex v3 = new EditorVertex();
|
||||
if (Nodes != null)
|
||||
{
|
||||
foreach (var node in Nodes)
|
||||
@@ -638,11 +638,11 @@ namespace CodeWalker.GameFiles
|
||||
|
||||
|
||||
|
||||
public VertexTypePC[] GetPathVertices()
|
||||
public EditorVertex[] GetPathVertices()
|
||||
{
|
||||
return LinkedVerts;
|
||||
}
|
||||
public VertexTypePC[] GetTriangleVertices()
|
||||
public EditorVertex[] GetTriangleVertices()
|
||||
{
|
||||
return TriangleVerts;
|
||||
}
|
||||
@@ -1347,8 +1347,8 @@ namespace CodeWalker.GameFiles
|
||||
{
|
||||
//reuse this interface for file types that need to get paths rendered...
|
||||
|
||||
VertexTypePC[] GetPathVertices();
|
||||
VertexTypePC[] GetTriangleVertices();
|
||||
EditorVertex[] GetPathVertices();
|
||||
EditorVertex[] GetTriangleVertices();
|
||||
Vector4[] GetNodePositions();
|
||||
}
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CodeWalker.GameFiles
|
||||
public List<YnvPoly> Polys { get; set; }
|
||||
|
||||
|
||||
public VertexTypePC[] TriangleVerts { get; set; }
|
||||
public EditorVertex[] TriangleVerts { get; set; }
|
||||
public Vector4[] NodePositions { get; set; }
|
||||
|
||||
|
||||
@@ -195,7 +195,7 @@ namespace CodeWalker.GameFiles
|
||||
|
||||
int vc = Vertices.Count;
|
||||
|
||||
List<VertexTypePC> rverts = new List<VertexTypePC>();
|
||||
List<EditorVertex> rverts = new List<EditorVertex>();
|
||||
foreach (var ypoly in Polys)
|
||||
{
|
||||
var poly = ypoly.RawData;
|
||||
@@ -218,9 +218,9 @@ namespace CodeWalker.GameFiles
|
||||
{ }
|
||||
|
||||
|
||||
VertexTypePC p0 = new VertexTypePC();
|
||||
VertexTypePC p1 = new VertexTypePC();
|
||||
VertexTypePC p2 = new VertexTypePC();
|
||||
EditorVertex p0 = new EditorVertex();
|
||||
EditorVertex p1 = new EditorVertex();
|
||||
EditorVertex p2 = new EditorVertex();
|
||||
p0.Colour = colourval;
|
||||
p1.Colour = colourval;
|
||||
p2.Colour = colourval;
|
||||
@@ -257,11 +257,11 @@ namespace CodeWalker.GameFiles
|
||||
|
||||
|
||||
|
||||
public VertexTypePC[] GetPathVertices()
|
||||
public EditorVertex[] GetPathVertices()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
public VertexTypePC[] GetTriangleVertices()
|
||||
public EditorVertex[] GetTriangleVertices()
|
||||
{
|
||||
return TriangleVerts;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user