Example #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void CeilingControl_Paint(object sender, PaintEventArgs e)
        {
            if (SpriteBatch == null)
            {
                return;
            }

            CeilingControl.MakeCurrent();

            Display.ClearBuffers();

            if (Maze != null)
            {
                SpriteBatch.Begin();
                //Maze.Draw(SpriteBatch, PreviewLoc);
                SpriteBatch.End();
            }

            CeilingControl.SwapBuffers();
        }
Example #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void CeilingControl_Load(object sender, EventArgs e)
 {
     CeilingControl.MakeCurrent();
     Display.Init();
 }