🛰️航天仿真算法库 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 AstGfxAPI(const AstGfxAPI&) = delete;
64 AstGfxAPI& operator=(const AstGfxAPI&) = delete;
65
67 ~AstGfxAPI();
68
70 GfxMain* m_gfxMain{};
71
73 GfxSolarSystem* m_solarSystem{};
74};
75
77AST_GFX_API bool AstGfxInitialize();
78
80AST_GFX_API int AstGfxRun();
81
83AST_GFX_API void AstGfxUpdate(double deltaTime);
84
86AST_GFX_API void AstGfxSetBackgroundColor(float r, float g, float b, float a);
87
88AST_NAMESPACE_END
可视化API类
定义 AstGfxAPI.hpp:32
定义 GfxMain.hpp:39
定义 GfxSolarSystem.hpp:39
Unit g
定义 Unit.cpp:473
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