This repository has been archived by the owner on Feb 11, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtestscene.h
179 lines (162 loc) · 2.71 KB
/
testscene.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
#include <fountain/fountaindef.h>
#include "STG.h"
extern const char *str[];
extern const char *strEn[];
class SButton : public ftUI::Button
{
public:
SButton();
int id;
void update();
void setId(int idd);
};
class HWButton : public SButton
{
public:
HWButton();
void click();
};
class MyShaderProgram : public ftRender::ShaderProgram
{
public:
void update();
};
class HelloWorld : public ftScene::Scene
{
private:
container<HWButton, 20> butCon;
public:
void init();
void update();
void draw();
};
class TestScene : public ftScene::Scene
{
private:
HWButton button;
public:
void init();
void update();
void draw();
virtual void customInit();
virtual void customUpdate();
virtual void customDraw();
};
class TextureScene : public TestScene
{
private:
int picID;
public:
void customInit();
void customUpdate();
void customDraw();
};
class ModelScene : public TestScene
{
private:
float rx, ry;
ft3DModel::ObjModel x;
ftRender::Camera modelCamera;
MyShaderProgram lightSP;
public:
void customInit();
void customUpdate();
void customDraw();
};
class PhysicsScene : public TestScene
{
private:
ftPhysics::World world;
ftPhysics::Body ground, ball;
ftPhysics::Body card[25];
ftPhysics::Body tmp[101];
int tmpn;
SButton debugDraw;
bool ddFlag;
public:
void customInit();
void customUpdate();
void customDraw();
};
class TypeScene : public TestScene
{
private:
ftType::FontMan fontMan;
ftType::FontMan fontMan1;
ftType::FontMan fontMan2;
public:
void customInit();
void customUpdate();
void customDraw();
};
class AudioScene : public TestScene
{
private:
SButton play, stop, loop;
ptrContainer<SButton*, 3> buttonCon;
ftAudio::Channel ch;
bool loopFlag;
public:
void customInit();
void customUpdate();
void customDraw();
};
class AnimeScene : public TestScene
{
private:
ftRender::SubImagePool animeTest;
ftAnime::FrameAnime anime;
public:
void customInit();
void customUpdate();
void customDraw();
};
class ShaderScene : public TestScene
{
private:
int shaderNumber;
MyShaderProgram sp[7];
SButton b[7];
int use;
float scale;
ftVec2 observePos;
ft3DModel::ObjModel teaPot;
float rx, ry;
public:
void customInit();
void customUpdate();
void customDraw();
void destroy();
};
class InputScene : public TestScene
{
private:
ftUI::Button info;
public:
void customInit();
void customUpdate();
void customDraw();
void destroy();
};
class TimeScene : public TestScene
{
private:
char s[20];
char mss[20];
ftUI::Button fps;
ftUI::Button mspf;
public:
void customInit();
void customUpdate();
void customDraw();
};
class FragmentScene : public TestScene
{
private:
STG::MainCharactor nt;
STG::BulletCon enemyBulletCon;
public:
void customInit();
void customUpdate();
void customDraw();
};