-
Notifications
You must be signed in to change notification settings - Fork 24
/
sprite.h
executable file
·225 lines (189 loc) · 4.87 KB
/
sprite.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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
/*
Bulllord Game Engine
Copyright (C) 2010-2017 Trix
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#ifndef __sprite_h_
#define __sprite_h_
#include "prerequisites.h"
#include "streamio.h"
#ifdef __cplusplus
extern "C" {
#endif
BL_API BLGuid blGenSprite(
IN BLAnsi* _Filename,
IN BLAnsi* _Archive,
IN BLAnsi* _Tag,
IN BLF32 _Width,
IN BLF32 _Height,
IN BLF32 _Zv,
IN BLU32 _FPS,
IN BLBool _AsTile);
BL_API BLVoid blDeleteSprite(
IN BLGuid _ID);
BL_API BLBool blSpriteAttach(
IN BLGuid _Parent,
IN BLGuid _Child,
IN BLBool _AttrInherit);
BL_API BLBool blSpriteDetach(
IN BLGuid _Parent,
IN BLGuid _Child);
BL_API BLBool blSpriteQuery(
IN BLGuid _ID,
OUT BLF32* _Width,
OUT BLF32* _Height,
OUT BLF32* _XPos,
OUT BLF32* _YPos,
OUT BLF32* _Zv,
OUT BLF32* _Rotate,
OUT BLF32* _XScale,
OUT BLF32* _YScale,
OUT BLF32* _Alpha,
OUT BLBool* _Show);
BL_API BLBool blSpriteVisibility(
IN BLGuid _ID,
IN BLBool _Show,
IN BLBool _Passdown);
BL_API BLBool blSpriteFlip(
IN BLGuid _ID,
IN BLBool _FlipX,
IN BLBool _FlipY,
IN BLBool _Passdown);
BL_API BLBool blSpritePivot(
IN BLGuid _ID,
IN BLF32 _PivotX,
IN BLF32 _PivotY,
IN BLBool _Passdown);
BL_API BLBool blSpriteAlpha(
IN BLGuid _ID,
IN BLF32 _Alpha,
IN BLBool _Passdown);
BL_API BLBool blSpriteZValue(
IN BLGuid _ID,
IN BLF32 _Zv,
IN BLBool _Passdown);
BL_API BLBool blSpriteStroke(
IN BLGuid _ID,
IN BLU32 _Color,
IN BLU32 _Pixel,
IN BLBool _Passdown);
BL_API BLBool blSpriteGlow(
IN BLGuid _ID,
IN BLU32 _Color,
IN BLU32 _Brightness,
IN BLBool _Passdown);
BL_API BLBool blSpriteDyeing(
IN BLGuid _ID,
IN BLU32 _Color,
IN BLBool _Dye,
IN BLBool _Passdown);
BL_API BLBool blSpriteTransformReset(
IN BLGuid _ID,
IN BLF32 _XPos,
IN BLF32 _YPos,
IN BLF32 _Rotate,
IN BLF32 _ScaleX,
IN BLF32 _ScaleY);
BL_API BLBool blSpriteMove(
IN BLGuid _ID,
IN BLF32 _XVec,
IN BLF32 _YVec);
BL_API BLBool blSpriteScale(
IN BLGuid _ID,
IN BLF32 _XScale,
IN BLF32 _YScale);
BL_API BLBool blSpriteRotate(
IN BLGuid _ID,
IN BLF32 _Rotate);
BL_API BLBool blSpriteScissor(
IN BLGuid _ID,
IN BLF32 _XPos,
IN BLF32 _YPos,
IN BLF32 _Width,
IN BLF32 _Height);
BL_API BLBool blSpriteAsEmit(
IN BLGuid _ID,
IN BLF32 _EmitAngle,
IN BLF32 _EmitterRadius,
IN BLF32 _Life,
IN BLU32 _MaxAlive,
IN BLU32 _GenPerSec,
IN BLF32 _DirectionX,
IN BLF32 _DirectionY,
IN BLF32 _Velocity,
IN BLF32 _VelVariance,
IN BLF32 _Rotation,
IN BLF32 _RotVariance,
IN BLF32 _Scale,
IN BLF32 _ScaleVariance,
IN BLU32 _FadeColor);
BL_API BLBool blSpriteAsCursor(
IN BLGuid _ID);
BL_API BLBool blSpriteActionBegin(
IN BLGuid _ID);
BL_API BLBool blSpriteActionEnd(
IN BLGuid _ID,
IN BLBool _Delete);
BL_API BLBool blSpriteActionPlay(
IN BLGuid _ID);
BL_API BLBool blSpriteActionStop(
IN BLGuid _ID);
BL_API BLBool blSpriteParallelBegin(
IN BLGuid _ID);
BL_API BLBool blSpriteParallelEnd(
IN BLGuid _ID);
BL_API BLBool blSpriteActionMove(
IN BLGuid _ID,
IN BLF32* _XPath,
IN BLF32* _YPath,
IN BLU32 _PathNum,
IN BLF32 _Acceleration,
IN BLF32 _Time,
IN BLBool _Loop);
BL_API BLBool blSpriteActionRotate(
IN BLGuid _ID,
IN BLF32 _Angle,
IN BLBool _ClockWise,
IN BLF32 _Time,
IN BLBool _Loop);
BL_API BLBool blSpriteActionScale(
IN BLGuid _ID,
IN BLF32 _XScale,
IN BLF32 _YScale,
IN BLBool _Reverse,
IN BLF32 _Time,
IN BLBool _Loop);
BL_API BLBool blSpriteActionAlpha(
IN BLGuid _ID,
IN BLF32 _Alpha,
IN BLBool _Reverse,
IN BLF32 _Time,
IN BLBool _Loop);
BL_API BLVoid blViewportQuery(
OUT BLF32* _LTPosX,
OUT BLF32* _LTPosY,
OUT BLF32* _RBPosX,
OUT BLF32* _RBPosY);
BL_API BLVoid blViewportMove(
IN BLF32 _XVec,
IN BLF32 _YVec);
BL_API BLVoid blViewportShake(
IN BLF32 _Time,
IN BLBool _Vertical,
IN BLF32 _Force);
#ifdef __cplusplus
}
#endif
#endif/*__sprite_h_*/