Example of using "Canvas" form "Graphics" library to display 3D graphics.
Dependencies: BSP_DISCO_F746NG Graphics mbed
Diff: main.cpp
- Revision:
- 2:ef3093a7a43e
- Parent:
- 1:4a5e329e617b
- Child:
- 3:aca7fe2d44b3
--- a/main.cpp Thu Nov 10 15:38:50 2016 +0000 +++ b/main.cpp Fri Nov 11 15:30:07 2016 +0000 @@ -28,9 +28,9 @@ // Initialize 3D model Sphere model(&canvas); model.Setup(); + //model.SetShamAngleMode(); while(true) { - model.GetAngle(); canvas.Clear(); model.Render(); display.CopyBitmap(Foreground, canvas.GetBitmap(), canvas.DisplayWidth(), canvas.DisplayHeight(), canvas.GetDrawColor());