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

Dependencies:   BSP_DISCO_F746NG Graphics mbed

Models/Model.h

Committer:
karpent
Date:
2016-11-11
Revision:
3:aca7fe2d44b3
Parent:
2:ef3093a7a43e

File content as of revision 3:aca7fe2d44b3:

//
// Model.h - abstract class for 3D demo models
//

#pragma once

#include "Angle.h"
#include "Scale.h"

class Model
{
public:

    Model();
    
    void SetShamAngleMode();
    
    void SetRealAngleMode(float initialValue);
    
    float GetAngleValue();

 
    void SetFixedScaleMode(float scale); 
    
    void SetShamScaleMode(float initialValue, float minValue, float maxValue, float delta);  
     
    void SetRealScaleMode(float minValue, float maxValue, float delta);
       
    float GetScaleValue();
    
    void virtual Setup() = 0;
    
    void virtual Render() = 0;
    
private:
    Angle _angle;
    Scale _scale;
};