|
🛰️航天仿真算法库 SpaceAST 0.0.1
|
#include <AstGfxAPI.hpp>
Public 成员函数 | |
| bool | initialize () |
| int | run () |
| void | update (double deltaTime) |
| GfxMain * | getGfxMain () |
| GfxSolarSystem * | getSolarSystem () |
| void | setBackgroundColor (float r, float g, float b, float a) |
静态 Public 成员函数 | |
| static AstGfxAPI & | instance () |
可视化API类
| void ast::AstGfxAPI::setBackgroundColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a ) |
设置场景背景颜色
| r | 红色分量(0.0-1.0) |
| g | 绿色分量(0.0-1.0) |
| b | 蓝色分量(0.0-1.0) |
| a | 透明度分量(0.0-1.0) |
| void ast::AstGfxAPI::update | ( | double | deltaTime | ) |
更新可视化系统
| deltaTime | 时间增量(秒) |