Example of using "Canvas" form "Graphics" library to display 3D graphics.

Dependencies:   BSP_DISCO_F746NG Graphics mbed

Revision:
0:8acbce46eede
Child:
1:4a5e329e617b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sun Nov 06 02:14:34 2016 +0000
@@ -0,0 +1,27 @@
+//
+// main.cpp - 3D Graphics Demo
+//
+
+#include "mbed.h"
+#include "RK043FN48H.h"
+#include "Canvas.h"
+#include "Square.h"
+
+RK043FN48H display;
+
+int main()
+{
+    Canvas canvas(display.DisplayWidth(), display.DisplayHeight());
+    Square model(&canvas);
+    
+    canvas.SetDrawColor(0xFF, 0, 0, 0xFF);
+    while(1) {
+        int angle = model.GetAngle();
+
+        canvas.Clear();
+        model.Render();
+        display.CopyBitmap(Foreground, canvas.GetBitmap(), canvas.DisplayWidth(), canvas.DisplayHeight(), canvas.GetDrawColor());
+
+        wait(0.04f);
+    }
+}
\ No newline at end of file