🛰️航天仿真算法库 SpaceAST
0.0.1
载入中...
搜索中...
未找到
AstGfxAPI.hpp
浏览该文件的文档.
1
20
21
#pragma once
22
23
#include "AstGlobal.h"
24
25
26
AST_NAMESPACE_BEGIN
27
28
class
GfxMain;
29
class
GfxSolarSystem;
30
32
class
AST_GFX_API
AstGfxAPI
{
33
public
:
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
60
private
:
62
AstGfxAPI
();
63
65
~AstGfxAPI
();
66
68
GfxMain
* m_gfxMain;
69
71
GfxSolarSystem
* m_solarSystem;
72
};
73
75
AST_GFX_API
bool
AstGfxInitialize
();
76
78
AST_GFX_API
int
AstGfxRun
();
79
81
AST_GFX_API
void
AstGfxUpdate
(
double
deltaTime);
82
84
AST_GFX_API
void
AstGfxSetBackgroundColor
(
float
r,
float
g,
float
b,
float
a);
85
86
AST_NAMESPACE_END
ast::units::g
Unit g
克
定义
Unit.cpp:433
ast::AstGfxAPI
可视化API类
定义
AstGfxAPI.hpp:32
ast::GfxMain
定义
GfxMain.hpp:39
ast::GfxSolarSystem
定义
GfxSolarSystem.hpp:39
ast::AstGfxSetBackgroundColor
void AstGfxSetBackgroundColor(float r, float g, float b, float a)
设置场景背景颜色
定义
AstGfxAPI.cpp:118
ast::AstGfxRun
int AstGfxRun()
运行可视化系统
定义
AstGfxAPI.cpp:110
ast::AstGfxInitialize
bool AstGfxInitialize()
初始化可视化系统
定义
AstGfxAPI.cpp:106
ast::AstGfxUpdate
void AstGfxUpdate(double deltaTime)
更新可视化系统
定义
AstGfxAPI.cpp:114
src
AstGfx
AstGfxAPI.hpp
制作者
1.12.0