🛰️航天仿真算法库 SpaceAST 0.0.1
载入中...
搜索中...
未找到
AstGfxAPI.hpp
浏览该文件的文档.
1
20
21#pragma once
22
23#include "AstGlobal.h"
24
25
26AST_NAMESPACE_BEGIN
27
28class GfxMain;
29class GfxSolarSystem;
30
32class AST_GFX_API AstGfxAPI {
33public:
35 static AstGfxAPI& instance();
36
38 bool initialize();
39
41 int run();
42
45 void update(double deltaTime);
46
48 GfxMain* getGfxMain();
49
51 GfxSolarSystem* getSolarSystem();
52
58 void setBackgroundColor(float r, float g, float b, float a);
59
60private:
62 AstGfxAPI();
63
65 ~AstGfxAPI();
66
68 GfxMain* m_gfxMain;
69
71 GfxSolarSystem* m_solarSystem;
72};
73
75AST_GFX_API bool AstGfxInitialize();
76
78AST_GFX_API int AstGfxRun();
79
81AST_GFX_API void AstGfxUpdate(double deltaTime);
82
84AST_GFX_API void AstGfxSetBackgroundColor(float r, float g, float b, float a);
85
86AST_NAMESPACE_END
Unit g
定义 Unit.cpp:433
可视化API类
定义 AstGfxAPI.hpp:32
定义 GfxMain.hpp:39
定义 GfxSolarSystem.hpp:39
void AstGfxSetBackgroundColor(float r, float g, float b, float a)
设置场景背景颜色
定义 AstGfxAPI.cpp:118
int AstGfxRun()
运行可视化系统
定义 AstGfxAPI.cpp:110
bool AstGfxInitialize()
初始化可视化系统
定义 AstGfxAPI.cpp:106
void AstGfxUpdate(double deltaTime)
更新可视化系统
定义 AstGfxAPI.cpp:114