![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Example of using "Canvas" form "Graphics" library to display 3D graphics.
Dependencies: BSP_DISCO_F746NG Graphics mbed
Diff: Models/Sphere.h
- Revision:
- 2:ef3093a7a43e
- Parent:
- 1:4a5e329e617b
- Child:
- 3:aca7fe2d44b3
diff -r 4a5e329e617b -r ef3093a7a43e Models/Sphere.h --- a/Models/Sphere.h Thu Nov 10 15:38:50 2016 +0000 +++ b/Models/Sphere.h Fri Nov 11 15:30:07 2016 +0000 @@ -10,12 +10,12 @@ #define _SPHERE_H #include <ArduinoGL.h> -#include "Angle.h" +#include "Model.h" /** * @brief 3D model of the sphere */ -class Sphere : public Angle +class Sphere : public Model { public: Sphere(Display * display); @@ -24,14 +24,14 @@ * @brief Model setup. * @retval None */ - void Setup(); + void virtual Setup(); /** * @brief Renders model for given view angle. * @param None * @retval None */ - void Render(); + void virtual Render(); private: