// static public Mesh CreateTriangleMesh() { // positions List <PosNorTexVertex> vertices = new List <PosNorTexVertex>(3); Vector3 normal = new Vector3(0.0f, 0.0f, 1.0f); vertices.Add(new PosNorTexVertex(new Vector3(-1f, 1f, 0.0f), normal, new Vector2(0.0f, 1.0f))); vertices.Add(new PosNorTexVertex(new Vector3(1f, 1f, 0.0f), normal, new Vector2(1.0f, 1.0f))); vertices.Add(new PosNorTexVertex(new Vector3(0.0f, 0.0f, 0.0f), normal, new Vector2(0.5f, 0.0f))); return(new Mesh(vertices, MaterialManager.getMaterialByName("white"))); }
protected override void OnLoad(EventArgs e) { CursorVisible = true; running = true; paused = true; spaceDown = false; // Audio initAudio(); // SYNC useSync = false; loadSyncer(); bpm = 120; rowsPerBeat = 4; songLength = 5.0f; // seconds // Materials and scenes // Pass syncer to scenes. try { MaterialManager.init("../data/materials/"); testScene = new EmptyScene(); testScene.loadScene(); } catch (Exception exception) { Console.WriteLine("Caugh exception when loading scene" + exception.Message); } // Timing timer = new Stopwatch(); timer.Start(); }