protected override void RenderContent(GraphicsInterface gi) { int p1, p2, p3; for (int i = 0; i < triangles.Length; i++) { p1 = triangles[i].p1; p2 = triangles[i].p2; p3 = triangles[i].p3; gi.Color(1, 1, 1, 0.95f); gi.Begin(BeginMode.Triangles); gi.Normal(normals[p1, 0], normals[p1, 1], normals[p1, 2]); gi.TexCoord(uvMap[p1, 0], uvMap[p1, 1]); gi.Vertex(positions[p1, 0], positions[p1, 1], positions[p1, 2]); gi.Normal(normals[p2, 0], normals[p2, 1], normals[p2, 2]); gi.TexCoord(uvMap[p2, 0], uvMap[p2, 1]); gi.Vertex(positions[p2, 0], positions[p2, 1], positions[p2, 2]); gi.Normal(normals[p3, 0], normals[p3, 1], normals[p3, 2]); gi.TexCoord(uvMap[p3, 0], uvMap[p3, 1]); gi.Vertex(positions[p3, 0], positions[p3, 1], positions[p3, 2]); gi.End(); } }
protected override void RenderContent(GraphicsInterface gi) { gi.Normal(0, 0, 1); gi.Begin(BeginMode.Lines); gi.Vertex(fxbase, fybase - 5, fzbase); gi.Vertex(fxbase, fybase + fHeight * fSize + 0.5f, fzbase); gi.End(); }