🛰️航天仿真算法库 SpaceAST
0.0.1
载入中...
搜索中...
未找到
GfxMain.hpp
浏览该文件的文档.
1
20
21
#pragma once
22
23
#include "AstGlobal.h"
24
25
// OSG头文件
26
#include <osgViewer/Viewer>
27
#include <osg/Group>
28
#include <osg/Node>
29
#include <osg/PositionAttitudeTransform>
30
31
namespace
osg {
32
class
Node;
33
class
Group;
34
class
PositionAttitudeTransform;
35
}
36
37
AST_NAMESPACE_BEGIN
38
39
class
GfxMain
{
40
public
:
42
GfxMain
();
43
45
~GfxMain
();
46
48
bool
initialize();
49
51
int
run();
52
54
osg::Group* getRootNode();
55
57
void
addNode(osg::Node* node);
58
60
void
removeNode(osg::Node* node);
61
63
void
setBackgroundColor(
const
osg::Vec4& color);
64
66
osgViewer::Viewer* getViewer();
67
68
private
:
70
osgViewer::Viewer* m_viewer;
71
73
osg::Group* m_root;
74
76
bool
initScene();
77
79
bool
initCamera();
80
82
bool
initLight();
83
};
84
85
AST_NAMESPACE_END
ast::GfxMain
定义
GfxMain.hpp:39
src
AstGfx
GfxMain.hpp
制作者
1.12.0