forked from abcdls0905/engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathi_sky_box.h
61 lines (45 loc) · 1.32 KB
/
i_sky_box.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#ifndef _I_SKY_BOX_H
#define _I_SKY_BOX_H
#include "i_vis_base.h"
class ISkyBox: public IVisBase
{
public:
virtual bool Load() = 0;
// 是否加载完成
virtual bool GetLoadFinish() = 0;
// 位置
virtual bool SetPosition(float x, float y, float z) = 0;
virtual FmVec3 GetPosition() const = 0;
// 方向
virtual bool SetAngle(float x, float y, float z) = 0;
virtual FmVec3 GetAngle() const = 0;
// 是否可见
virtual void SetVisible(bool value) = 0;
virtual bool GetVisible() const = 0;
// 是否异步加载贴图
virtual void SetAsyncLoad(bool value) = 0;
virtual bool GetAsyncLoad() const = 0;
// 是否使用深度测试
virtual void SetZEnable(bool value) = 0;
virtual bool GetZEnable() const = 0;
// 乘法因子
virtual void SetMulFactor(float value) = 0;
virtual float GetMulFactor() const = 0;
// Y轴旋转速度
virtual void SetYawSpeed(float value) = 0;
virtual float GetYawSpeed() const = 0;
// 天空四周的贴图
virtual void SetSideTex(const char* value) = 0;
virtual const char* GetSideTex() const = 0;
// 天空顶的贴图
virtual void SetUpTex(const char* value) = 0;
virtual const char* GetUpTex() const = 0;
// 淡入的时间
virtual void SetFadeInTime(float value) = 0;
virtual float GetFadeInTime() const = 0;
// 是否渐变结束
virtual bool GetFadeInFinish() const = 0;
// 更新贴图
virtual bool UpdateTexture() = 0;
};
#endif