ELEC2645 (2018/19) / Mbed 2 deprecated el17cd

Dependencies:   mbed

Revision:
46:824ec81ff578
Parent:
37:524b91130885
--- a/Renderer/Renderer.h	Tue May 07 17:37:23 2019 +0000
+++ b/Renderer/Renderer.h	Wed May 08 18:17:59 2019 +0000
@@ -19,11 +19,6 @@
   private:
     float fov;
     Cube selectionCube;
-  public:
-    Renderer();
-    /** Initialises the LCD and sets the field of view
-    */
-    void init();
     /** Projects the 3D x coordinate to 2D perspective
     *@param The 3d x coordinate as a float
     *@param The 3d z coordinate as a float
@@ -36,6 +31,11 @@
     *@returns The 2D perspective of the y coordinate
     */
     float yTo2D(float y, float z);
+  public:
+    Renderer();
+    /** Initialises the LCD and sets the field of view
+    */
+    void init();
     /** Draws the games horizon line
     *@param The angle of the horizon determined by the joystick position
     */
@@ -98,6 +98,7 @@
     *@param The selected option as an integer
     *@param The high score as an integer
     */
+    void setContrast(float contrast);
     void drawDeathScreen(int selection, int highScore);
     /** Draws the death menus buttons
     */