Example of using "Canvas" form "Graphics" library to display 3D graphics.
Dependencies: BSP_DISCO_F746NG Graphics mbed
Models/Model.cpp
- Committer:
- karpent
- Date:
- 2016-11-11
- Revision:
- 3:aca7fe2d44b3
- Parent:
- 2:ef3093a7a43e
File content as of revision 3:aca7fe2d44b3:
// // BaseModel.cpp - abstract class for 3D demo models // #include "Model.h" Model::Model() { } void Model::SetShamAngleMode() { _angle.SetAngle(AngleSham, 0, DirectionLeft, 1.f); } void Model::SetRealAngleMode(float initialValue) { _angle.SetAngle(AngleReal, 0, DirectionLeft, 1.f); } float Model::GetAngleValue() { return _angle.GetAngle(); } void Model::SetFixedScaleMode(float scale) { _scale.SetScale(ScaleFixed, scale, scale, scale, 0); } void Model::SetShamScaleMode(float initialValue, float minValue, float maxValue, float delta) { _scale.SetScale(ScaleSham, initialValue, minValue, maxValue, delta); } void Model::SetRealScaleMode(float minValue, float maxValue, float delta) { _scale.SetScale(ScaleFixed, 0, minValue, maxValue, delta); } float Model::GetScaleValue() { return _scale.GetScale(); }