private static void ConstructScene(OpenGLWindow ogl) { ogl.AddGraph(new GraphObjects.Rectangle(new Vector3(3.0f, 0.0f, 0.1f), 10.0f, 5.0f)); ogl.AddGraph(new GraphObjects.Triangle(new Vector3(5.0f, 5.0f, -10.0f), 10.0f, 5.0f)); ogl.AddGraph(new GraphObjects.Sphere(new Vector3(-5.0f, 0.0f, -20.0f), 10.0f)); ogl.AddGraph(new GraphObjects.Sphere(new Vector3(5.0f, 0.0f, -10.0f), 10.0f)); }
private static void ConstructScene(OpenGLWindow ogl) { GraphObjects.Triangle t2 = new GraphObjects.Triangle(); t2.Vertices.Clear(); t2.Vertices.Add(new OpenTK.Mathematics.Vector3(-1.0f, -0.6f, 0.0f)); t2.Vertices.Add(new OpenTK.Mathematics.Vector3(-0.5f, -1.0f, 0.0f)); t2.Vertices.Add(new OpenTK.Mathematics.Vector3(0.0f, 0.6f, 0.0f)); ogl.AddGraph(t2); ogl.AddGraph(new GraphObjects.Triangle()); }