Example #1
0
        /// <summary>
        /// Constructor for the renderer
        /// </summary>
        /// <param name="control">Gives the reference to the SimpleOpenGLControl you've created on a form</param>
        /// <param name="fps">The frames per second (max) to render at. Set this to be about 30 for good performance.</param>
        public Renderer(SimpleOpenGlControl control, double fps)
        {
            this.control = control;
            this.fps = fps;
            #region UI Initialization

            camOrtho = new GLUtility.GLCameraOrtho(w);
            camFree = new GLUtility.GLCameraFree(w);
            camChase = new GLUtility.GLCameraChase(w);
            camPrev = camCurrent = camOrtho;

            #endregion

            //This is baaaaad. Fix it.
            instance = this;
        }
Example #2
0
 public void ShowFree()
 {
     camPrev = camCurrent;
     camCurrent = camFree;
 }
Example #3
0
 public void ShowOrtho()
 {
     camPrev = camCurrent;
     camCurrent = camOrtho;
 }
Example #4
0
 public void ShowChase()
 {
     camPrev = camCurrent;
     camCurrent = camChase;
 }