示例#1
0
 public MusicPanel(PanelManager man)
 {
     manager = man;
     clearColor = new ColorManager();
     clearColor.Color = new Color(255,255,255);
     timer = new Timer(1000d / 30d);
     timer.Stop();
     timer.Elapsed += new ElapsedEventHandler(timer_Elapsed);
 }
示例#2
0
 public PolygonRect(float Width, float Height)
 {
     width = Width; height = Height;
     color = new ColorManager();
     color.Color = Color.Black;
     vertices = new CascadeVertex[6];
     vertices[0] = new CascadeVertex(new Vector3(0, 0, 0), Color.Red);
     vertices[1] = new CascadeVertex(new Vector3(Width, 0, 0), Color.Red);
     vertices[2] = new CascadeVertex(new Vector3(Width, Height, 0), Color.Red);
     vertices[3] = new CascadeVertex(new Vector3(Width, Height, 0), Color.Red);
     vertices[4] = new CascadeVertex(new Vector3(0, Height, 0), Color.Red);
     vertices[5] = new CascadeVertex(new Vector3(0, 0, 0), Color.Red);
     Origin = Vector3.Zero;
 }