/// <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; }
public void ShowFree() { camPrev = camCurrent; camCurrent = camFree; }
public void ShowOrtho() { camPrev = camCurrent; camCurrent = camOrtho; }
public void ShowChase() { camPrev = camCurrent; camCurrent = camChase; }