OPTPiX SpriteStudio SDK
Loading...
Searching...
No Matches
sstypes.h
Go to the documentation of this file.
1#ifndef __SSTYPES__
2#define __SSTYPES__
3#pragma warning(disable : 4819)
4#include <stdlib.h>
5#include <string>
6#include <vector>
7#include <cmath>
8#include <algorithm>
9
10//===============================================================
11//Macros
12//===============================================================
13#define SPRITESTUDIO6SDK_DECLARE_ENUM_STRING_DEF(type) \
14 SsString __EnumToString_( type::_enum n );\
15 void __StringToEnum_( SsString n , type::_enum& out);\
16
17// 未使用引数の警告避け
18#ifndef SPRITESTUDIO6SDK_NOUSE_ARGUMENT
19 #define SPRITESTUDIO6SDK_NOUSE_ARGUMENT(_name_) ( void )( &_name_ );
20#endif
21
22namespace spritestudio6
23{
24
25//===============================================================
26// Declare Type
27//===============================================================
28
29//文字列の設定
30typedef std::string SsString;
31
32
33
36{
37public:
38 float x;
39 float y;
40
41public:
42 SsPoint2( float _x , float _y )
43 {
44 x = _x ; y = _y;
45 }
46 SsPoint2() : x(0) , y(0){}
47
48 static float distance_sq(const SsPoint2 & l, const SsPoint2 & r)
49 {
50 float x = l.x - r.x;
51 float y = l.y - r.y;
52 float sq = x * x + y * y;
53 return sq;
54 }
55
56 static float distance(const SsPoint2 & l, const SsPoint2 & r)
57 {
58 return sqrt( distance_sq(l, r) );
59 }
60
62 {
63 return SsPoint2(x + r.x, y + r.y);
64 }
65
67 {
68 return SsPoint2(x - r.x, y - r.y);
69 }
70
71 SsPoint2 operator *( float r) const
72 {
73 return SsPoint2(x * r, y * r);
74 }
75
76 SsPoint2 operator /( float r) const
77 {
78 return SsPoint2(x / r, y / r);
79 }
80
81 float length_sq() const
82 {
83 return (x * x) + (y * y);
84 }
85
86 float length() const
87 {
88#ifdef _WIN32
89 float r = length_sq();
90 if ( r < 0.0001f && r > -0.0001f ) return 0;
91
92 return (float)std::sqrtf( r );
93#else
94 return (float)sqrt( length_sq() );
95#endif
96 }
97
98 static void normalize(const SsPoint2& in, SsPoint2* out)
99 {
100
101 float len = in.length();
102 float div = 0;
103
104 if ( len == 0 )
105 {
106 div = 0;
107 }else{
108 div = (float)1 / in.length();
109 }
110
111 out->x = in.x * div;
112 out->y = in.y * div;
113 }
114
116 {
117 normalize(*this, this);
118 }
119
120 //----------------------------------------------------------------------------
121 static float dot(const SsPoint2& l, const SsPoint2 r)
122 {
123 return (l.x * r.x) + (l.y * r.y);
124 }
125 static float cross(const SsPoint2& l, const SsPoint2& r)
126 {
127 return (l.x * r.y) - (l.y * r.x);
128 }
129
130 //----------------------------------------------------------------------------
135 //----------------------------------------------------------------------------
136 static float get_angle_unit(const SsPoint2& v0, const SsPoint2 v1)
137 {
138 float ip = dot(v0, v1);
139 if (ip > 1.0f) ip = 1.0f;
140 if (ip < -1.0f) ip = -1.0f;
141 float f = acos(ip);
142 return f;
143
144 }
145 //----------------------------------------------------------------------------
149 //----------------------------------------------------------------------------
150 static float get_angle(const SsPoint2& v0, const SsPoint2& v1)
151 {
152 SsPoint2 uv0(v0), uv1(v1);
153 uv0.normalize();
154 uv1.normalize();
155 return get_angle_unit(uv0, uv1);
156 }
157
158 // v0 から v1 への左回りの角度を返す
159 static float get_angle_360_unit(const SsPoint2& v0, const SsPoint2 v1)
160 {
161 float ang = get_angle_unit(v0, v1);
162 float c = cross(v0, v1);
163
164 if (c < 0)
165 {
166 ang = (3.1415926535897932385f)*2.0f - ang;
167 }
168 return ang;
169 }
170
171 static float get_angle_360(const SsPoint2& v0, const SsPoint2 v1)
172 {
173 SsPoint2 uv0(v0), uv1(v1);
174 uv0.normalize();
175 uv1.normalize();
176 return get_angle_360_unit(uv0, uv1);
177 }
178
179
180};
181
184{
185public:
186 float x;
187 float y;
188 float z;
189
190public:
191 SsPoint3( float _x , float _y , float _z)
192 {
193 x = _x ; y = _y;z = _z;
194 }
195 SsPoint3() : x(0) , y(0) ,z(0){}
196};
197
200typedef unsigned int u32;
201typedef unsigned char u8;
202
203
204
205
207template <typename T>
209{
210public:
211 T x, y, w, h;
212
213 SsTRect(): x(0), y(0), w(0), h(0) {}
214 SsTRect(T ax, T ay, T aw, T ah): x(ax), y(ay), w(aw), h(ah) {}
215 SsTRect(const SsTRect& r): x(r.x), y(r.y), w(r.w), h(r.h) {}
216
217 bool operator ==(const SsTRect& r) const {return x == r.x && y == r.y && w == r.w && h == r.h;}
218 bool operator !=(const SsTRect& r) const {return !(*this == r);}
219private:
220};
221
222
224
225
227template <typename T>
229{
230public:
231 T r, g, b, a;
232
233 SsTColor(): r(0), g(0), b(0), a(0) {}
234 SsTColor(T ar, T ag, T ab, T aa): r(ar), g(ag), b(ab), a(aa) {}
235 SsTColor(const SsTColor& s): r(s.r), g(s.g), b(s.b), a(s.a) {}
236
237 void fromARGB(u32 c);
238 void fromBGRA(u32 c);
239
240 u32 toARGB() const;
241
242 bool operator ==(const SsTColor& rhs) const
243 {
244 return r == rhs.r
245 && g == rhs.g
246 && b == rhs.b
247 && a == rhs.a;
248 }
249
250private:
251};
252
253
255template<> inline SsTColor<float>::SsTColor(): r(0.5f), g(0.5f), b(0.5f), a(1.f) {}
256template<> inline void SsTColor<float>::fromARGB(u32 c)
257{
258 a = (float)(c >> 24) / 255.f;
259 r = (float)((c >> 16) & 0xff) / 255.f;
260 g = (float)((c >> 8) & 0xff) / 255.f;
261 b = (float)(c & 0xff) / 255.f;
262}
263template<> inline void SsTColor<float>::fromBGRA(u32 c)
264{
265 b = (float)(c >> 24) / 255.f;
266 g = (float)((c >> 16) & 0xff) / 255.f;
267 r = (float)((c >> 8) & 0xff) / 255.f;
268 a = (float)(c & 0xff) / 255.f;
269}
270template<> inline u32 SsTColor<float>::toARGB() const
271{
272 u32 c = (u8)(a * 255) << 24 | (u8)(r * 255) << 16 | (u8)(g * 255) << 8 | (u8)(b * 255);
273 return c;
274}
275
276
277
278
279template<> inline SsTColor<u32>::SsTColor(): r(255), g(255), b(255), a(255) {}
280template<> inline void SsTColor<u32>::fromARGB(u32 c)
281{
282 a = (c >> 24);
283 r = ((c >> 16) & 0xff);
284 g = ((c >> 8) & 0xff);
285 b = (c & 0xff);
286}
287template<> inline void SsTColor<u32>::fromBGRA(u32 c)
288{
289 b = (c >> 24) ;
290 g = ((c >> 16) & 0xff) ;
291 r = ((c >> 8) & 0xff) ;
292 a = (c & 0xff) ;
293}
294template<> inline u32 SsTColor<u32>::toARGB() const
295{
296 u32 c = (u8)(a) << 24 | (u8)(r) << 16 | (u8)(g) << 8 | (u8)(b);
297 return c;
298}
299
300
301
302template<> inline SsTColor<u8>::SsTColor(): r(255), g(255), b(255), a(255) {}
303template<> inline void SsTColor<u8>::fromARGB(u32 c)
304{
305 a = (c >> 24);
306 r = ((c >> 16) & 0xff);
307 g = ((c >> 8) & 0xff);
308 b = (c & 0xff);
309}
310template<> inline void SsTColor<u8>::fromBGRA(u32 c)
311{
312 b = (c >> 24) ;
313 g = ((c >> 16) & 0xff) ;
314 r = ((c >> 8) & 0xff) ;
315 a = (c & 0xff) ;
316}
317template<> inline u32 SsTColor<u8>::toARGB() const
318{
319 u32 c = (u8)(a) << 24 | (u8)(r) << 16 | (u8)(g) << 8 | (u8)(b);
320 return c;
321}
322
323
326
327
330
331
333
334struct ToLower {
335 char operator()(char c) { return (char)tolower(c); }
336};
337
338inline void ConvertStringToSsColor( const std::string& str , SsColor& out)
339{
340 char *endptr;
341 unsigned long x;
342
343 std::string temp = "0x";
344 temp+=str;
345
346 transform(temp.begin(), temp.end(), temp.begin(), ToLower());
347 x = strtoul(temp.c_str(), &endptr, 16);
348 out.fromARGB( x );
349}
350
351
352
355{
356public:
357 float startTime;
359 float endTime;
360 float endValue;
361
364
366
367 SsCurve() : startTime(0.f), startValue(0.f), endTime(0.f), endValue(0.f), startKeyTime(0.f), endKeyTime(0.f){}
369
370};
371
372
373
374//---------------------------------------------------------------
377{
378 enum _enum
379 {
380 invalid = -1,
384 };
385};
387
388//---------------------------------------------------------------
412
413
414//---------------------------------------------------------------
431
432
433//---------------------------------------------------------------
436{
437 enum _enum
438 {
443 };
444};
446
447//---------------------------------------------------------------
465
466
469{
476};
478
479
480
497
498
501{
510};
511
513
516{
524};
526
527
528
529
580
581
583
600
601
602
603
604
605
608{
610 float rate;
611
613
614};
615
616
623
624
625
626
627class ISSTexture;
628class SsCell;
629
630
633{
634 SsColorBlendTarget::_enum target; //ブレンドの適用方法 単色(全体) , 頂点単位
635 SsBlendType::_enum blendType; //ブレンド種別 (mix 乗算 加算 減算)
636 SsColorBlendValue color; //単色。全体の場合に使用されるカラー値
637 SsColorBlendValue colors[4]; //頂点単位の場合使用されるカラー値
638
640 int getTargetToInt() { return (int)target; }
641 int getBlendTypeToInt() { return (int)blendType; }
645
646};
647
650{
651 SsColorBlendTarget::_enum target; //ブレンドの適用方法 単色(全体) , 頂点単位
652 SsBlendType::_enum blendType; //ブレンド種別 (mix 乗算 加算 減算)
653 SsColorBlendValue color; //単色。全体の場合に使用されるカラー値
654 SsColorBlendValue colors[4]; //頂点単位の場合使用されるカラー値
655
657 int getTargetToInt(){ return (int)target;}
658 int getBlendTypeToInt(){ return (int)blendType;}
660 target( SsColorBlendTarget::invalid ) ,
661 blendType( SsBlendType::invalid ){}
662
663};
664
667{
668 SsString id; // シェーダータイプ
669 float param[4]; // シェーダー値
670
672 {
673 id = "";
674 for ( int i = 0; i < 4; i++ ) {
675 param[i] = 0.0f;
676 }
677 }
678
679};
680
681
682//エフェクト関連の定義
683//エフェクトのノードタイプ
695
696
697
698//エフェクト関連の定義
699//エフェクトのブレンドタイプ
701{
708};
710
711
712//2.0.1で追加 IKの方向
724
726
729{
738};
740
753
754
756{
757public:
758 // ↓5.7 で追加
760 float speed;
766 startTime(0),
767 speed(1.0f),
768 independent(false),
769 loopflag(0),
770 attrInitialized(false),
771 curKeyframe(0)
772 {}
773
774 void init()
775 {
776 startTime = 0;
777 speed = 1.0f;
778 independent = false;
779 loopflag = 0;
780 attrInitialized = false;
781 curKeyframe = 0;
782 }
783};
784
785
786
787//参照セル値
789{
790 int mapid;
791 std::string name;
792
793
794};
796{
797public:
799 bool usePoint;
800 bool useRect;
802
807
809 useInteger(false),
810 usePoint(false),
811 useRect(false),
812 useString(false)
813 {}
814};
815
817{
818 int i;
819 float f;
820};
821
823{
824public:
828
830 : paramId ("")
831 , type (SsSignalParamType::none)
832 {
833 value.i = 0;
834 }
835};
836
838{
839public:
840 bool active;
842 std::vector<SsSignalParam> params;
844
846 : active (true)
847 , commandId ("")
848 , note ("")
849 {
850 params.clear();
851 }
852};
853
855{
856public:
857 std::vector<SsSignalCommand> commands;
858
860 {
861 commands.clear();
862 }
863};
864
866{
867public:
868 bool infinity;
869 bool reverse;
870 bool pingpong;
878 float speed;
881
882
883 //テンポラリ <-エディタ用計算値の可能性もあるので後で整理
884 int curKeyframe; //この値があるキーフレーム値 (計算値)
885 float liveFrame; //再生時間の累積
886
888 infinity( false ),
889 reverse( false ),
890 pingpong( false ),
891 independent(false),
892 loopflag(0),
893 loopNum( 1 ),
894 startLabel("_start"),
895 startOffset(0),
896 endLabel("_end"),
897 endOffset(0),
898 curKeyframe( 0 ),
899 speed(1.0f),
900 startFrame(0),
901 endFrame(0),
902 liveFrame(0.0f)
903 {}
904
905};
906
907//インスタンスアトリビュートのループフラグ
908enum {
913};
914
915//エフェクトアトリビュートのループフラグ
916enum {
918};
919
920//メッシュの分割タイプ
922{
930};
932
934{
938
939};
940
942{
943 int boneIndex; //暫定でパーツIDを使用する
944 float blend;
945};
946
947typedef std::vector<SsBoneBind> SsBoneBindArray;
948
949
951{
952public:
953 std::vector<SsVector2> verticeChgList;
954
956 {
957 verticeChgList.clear();
958 }
960 {
961 *this = rhs;
962 }
963
964 bool operator ==(const SsDeformAttr& r) const;
965 bool operator !=(const SsDeformAttr& r) const
966 {
967 return !(*this == r);
968 }
969
970 bool operator ==(int n) const { SPRITESTUDIO6SDK_NOUSE_ARGUMENT(n); return false; }
971 bool operator !=(int n) const { SPRITESTUDIO6SDK_NOUSE_ARGUMENT(n); return false; }
972
974 {
975 return SsDeformAttr(rhs);
976 }
977
979 {
980 return SsDeformAttr(rhs);
981 }
982
984 {
985 return SsDeformAttr(rhs);
986 }
987
988 virtual SsString ToString() const { return "SsDeformAttr" /* todo パラメータ出力*/; }
989 virtual operator SsString() const { return ToString(); }
990
991
992};
993
994} // namespace spritestudio6
995
996#endif
float startTime
始点キーの時間から制御点の時間へのオフセット値。X軸に当たる。
Definition sstypes.h:357
float endValue
終点キーの値から 〃 。Y軸 〃
Definition sstypes.h:360
float startKeyTime
[ワークパラメータ] 始点キーの時間 計算時のみ使用
Definition sstypes.h:362
SsCurve()
Definition sstypes.h:367
float endTime
終点キーの時間から制御点の時間へのオフセット値。X軸に当たる。
Definition sstypes.h:359
float endKeyTime
[ワークパラメータ] 終点キーの時間 計算時のみ使用
Definition sstypes.h:363
bool syncStartEnd
[編集用パラメータ]カーブエディタでの編集時に始点・終点ハンドルを同期して動かすか?
Definition sstypes.h:365
~SsCurve()
Definition sstypes.h:368
float startValue
始点キーの値から 〃 。Y軸 〃
Definition sstypes.h:358
SsDeformAttr()
Definition sstypes.h:955
bool operator==(const SsDeformAttr &r) const
SsDeformAttr(const SsDeformAttr &rhs)
Definition sstypes.h:959
SsDeformAttr operator/(const SsDeformAttr &rhs) const
Definition sstypes.h:983
virtual SsString ToString() const
Definition sstypes.h:988
bool operator!=(const SsDeformAttr &r) const
Definition sstypes.h:965
std::vector< SsVector2 > verticeChgList
Definition sstypes.h:953
SsDeformAttr operator+(const SsDeformAttr &rhs) const
Definition sstypes.h:973
SsDeformAttr operator*(const SsDeformAttr &rhs) const
Definition sstypes.h:978
bool attrInitialized
Definition sstypes.h:763
bool independent
独立動作
Definition sstypes.h:761
void init()
Definition sstypes.h:774
int startTime
開始フレーム
Definition sstypes.h:759
int loopflag
ループ時の動作フラグをビット対応でまとめたもの
Definition sstypes.h:762
SsEffectAttr()
Definition sstypes.h:765
float speed
再生速度
Definition sstypes.h:760
int curKeyframe
キーが配置されたフレーム
Definition sstypes.h:764
int endFrame
ラベル位置とオフセット位置を加えた実際のフレーム数
Definition sstypes.h:880
int startOffset
再生開始位置 ラベル名称
Definition sstypes.h:875
float speed
再生終了位置 ラベル名称からのオフセット
Definition sstypes.h:878
SsString startLabel
ループ回数 無限ループフラグ=trueの時には無効
Definition sstypes.h:874
int curKeyframe
ラベル位置とオフセット位置を加えた実際のフレーム数
Definition sstypes.h:884
SsInstanceAttr()
Definition sstypes.h:887
int endOffset
再生終了位置 ラベル名称
Definition sstypes.h:877
int loopNum
ループフラグをビット対応でまとめたもの
Definition sstypes.h:873
bool reverse
無限ループフラグ
Definition sstypes.h:869
bool pingpong
逆再生フラグ
Definition sstypes.h:870
float liveFrame
Definition sstypes.h:885
bool independent
往復再生フラグ
Definition sstypes.h:871
int startFrame
再生スピード
Definition sstypes.h:879
bool infinity
Definition sstypes.h:868
int loopflag
独立動作フラグ
Definition sstypes.h:872
SsString endLabel
再生開始位置 ラベル名称からのオフセット
Definition sstypes.h:876
SsSignalAttr()
Definition sstypes.h:859
std::vector< SsSignalCommand > commands
Definition sstypes.h:857
SsString commandId
Definition sstypes.h:841
SsString note
Definition sstypes.h:843
std::vector< SsSignalParam > params
Definition sstypes.h:842
bool active
Definition sstypes.h:840
SsSignalCommand()
Definition sstypes.h:845
SsSignalParamValue value
Definition sstypes.h:827
SsString paramId
Definition sstypes.h:825
SsSignalParamType::_enum type
Definition sstypes.h:826
SsSignalParam()
Definition sstypes.h:829
カラー値を定義するテンプレートクラスです。
Definition sstypes.h:229
SsTColor()
Definition sstypes.h:233
float a
Definition sstypes.h:231
bool operator==(const SsTColor &rhs) const
Definition sstypes.h:242
float g
Definition sstypes.h:231
float b
Definition sstypes.h:231
SsTColor(const SsTColor &s)
Definition sstypes.h:235
float r
Definition sstypes.h:231
SsTColor(T ar, T ag, T ab, T aa)
Definition sstypes.h:234
矩形
Definition sstypes.h:209
int w
Definition sstypes.h:211
SsTRect(const SsTRect &r)
Definition sstypes.h:215
SsTRect(T ax, T ay, T aw, T ah)
Definition sstypes.h:214
int x
Definition sstypes.h:211
bool operator!=(const SsTRect &r) const
Definition sstypes.h:218
int y
Definition sstypes.h:211
SsTRect()
Definition sstypes.h:213
bool operator==(const SsTRect &r) const
Definition sstypes.h:217
int h
Definition sstypes.h:211
int integer
整数
Definition sstypes.h:803
bool usePoint
座標データが使用されているか
Definition sstypes.h:799
bool useRect
矩形データが使用されているか
Definition sstypes.h:800
bool useInteger
整数が使用されているか
Definition sstypes.h:798
SsPoint2 point
座標
Definition sstypes.h:804
SsUserDataAnime()
Definition sstypes.h:808
SsIRect rect
矩形
Definition sstypes.h:805
SsString string
文字列
Definition sstypes.h:806
bool useString
文字列データが使用されているか
Definition sstypes.h:801
GLdouble n
Definition glad.h:4564
GLdouble f
Definition glad.h:2085
GLdouble x
Definition glad.h:2847
GLfloat v0
Definition glad.h:3435
GLdouble GLdouble GLint GLint GLdouble v1
Definition glad.h:2682
GLuint index
Definition glad.h:3345
GLdouble GLdouble r
Definition glad.h:2421
GLdouble s
Definition glad.h:3009
アトリビュートの種類
Definition sstypes.h:532
_enum
Definition sstypes.h:534
@ pivotx
[PVTX]原点オフセット.X
Definition sstypes.h:557
@ sclx
[SCLX]スケール.X
Definition sstypes.h:543
@ rotx
[ROTX]回転.X
Definition sstypes.h:540
@ partsColor
[PCOL]パーツカラー
Definition sstypes.h:553
@ pivoty
[PVTY]原点オフセット.Y
Definition sstypes.h:558
@ flipv
[FLPV]上下反転(セルの原点を軸にする)
Definition sstypes.h:551
@ boundr
[BNDR]当たり判定用の半径
Definition sstypes.h:570
@ roty
[ROTY]回転.Y
Definition sstypes.h:541
@ losclx
[LSCX]ローカルスケール.X
Definition sstypes.h:545
@ fliph
[FLPH]左右反転(セルの原点を軸にする)
Definition sstypes.h:550
@ vertex
[VERT]頂点変形
Definition sstypes.h:556
@ shader
[SHDR]シェーダー
Definition sstypes.h:555
@ invalid
無効値。旧データからの変換時など
Definition sstypes.h:535
@ signal
[SIGN]シグナル
Definition sstypes.h:573
@ cell
[CELL]参照セル
Definition sstypes.h:536
@ uvtx
[UVTX]UVアニメ.移動.X
Definition sstypes.h:565
@ hide
[HIDE]非表示
Definition sstypes.h:552
@ anchorx
[ANCX]アンカーポイント.X
Definition sstypes.h:559
@ sizex
[SIZX]表示サイズ.X
Definition sstypes.h:561
@ loscly
[LSCY]ローカルスケール.Y
Definition sstypes.h:546
@ posy
[POSY]位置.Y
Definition sstypes.h:538
@ num
Definition sstypes.h:577
@ uvty
[UVTY]UVアニメ.移動.Y
Definition sstypes.h:566
@ deform
[DEFM]デフォーム用パラメータ
Definition sstypes.h:576
@ posz
[POSZ]位置.Z
Definition sstypes.h:539
@ imgflipv
[IFLV]イメージ上下反転(常にイメージの中央を原点とする)
Definition sstypes.h:564
@ sizey
[SIZY]表示サイズ.Y
Definition sstypes.h:562
@ user
[USER]ユーザーデータ
Definition sstypes.h:572
@ uvsx
[UVSX]UVアニメ.スケール.X
Definition sstypes.h:568
@ anchory
[ANCY]アンカーポイント.Y
Definition sstypes.h:560
@ posx
[POSX]位置.X
Definition sstypes.h:537
@ prio
[PRIO]優先度
Definition sstypes.h:549
@ uvrz
[UVRZ]UVアニメ.回転
Definition sstypes.h:567
@ alpha
[ALPH]不透明度
Definition sstypes.h:547
@ color
[VCOL]カラーブレンド
Definition sstypes.h:554
@ uvsy
[UVSY]UVアニメ.スケール.Y
Definition sstypes.h:569
@ rotz
[ROTZ]回転.Z
Definition sstypes.h:542
@ mask
[MASK]マスク閾値
Definition sstypes.h:571
@ effect
[EFCT]エフェクトパラメータ
Definition sstypes.h:575
@ scly
[SCLY]スケール.Y
Definition sstypes.h:544
@ imgfliph
[IFLH]イメージ左右反転(常にイメージの中央を原点とする)
Definition sstypes.h:563
@ instance
[IPRM]インスタンスパーツパラメータ
Definition sstypes.h:574
@ loalpha
[LALP]ローカル不透明度
Definition sstypes.h:548
ブレンドタイプ
Definition sstypes.h:450
_enum
Definition sstypes.h:451
@ num
Definition sstypes.h:461
@ exclusion
6 除外
Definition sstypes.h:459
@ sub
3 減算
Definition sstypes.h:456
@ add
2 加算
Definition sstypes.h:455
@ mul
1 乗算
Definition sstypes.h:454
@ invalid
Definition sstypes.h:452
@ invert
7 反転
Definition sstypes.h:460
@ mulalpha
4 α乗算
Definition sstypes.h:457
@ mix
0 ブレンド(ミックス)
Definition sstypes.h:453
@ screen
5 スクリーン
Definition sstypes.h:458
当たり判定形状
Definition sstypes.h:417
_enum
Definition sstypes.h:419
@ invalid
Definition sstypes.h:420
@ quad
自在に変形する四辺形。頂点変形など適用後の4角を結んだ領域。最も重い。
Definition sstypes.h:422
@ circle
真円の半径で距離により判定する
Definition sstypes.h:424
@ circle_smax
真円の半径で距離により判定する (スケールはx,yの最大値をとる)
Definition sstypes.h:426
@ none
当たり判定として使わない。
Definition sstypes.h:421
@ circle_smin
真円の半径で距離により判定する (スケールはx,yの最小値をとる)
Definition sstypes.h:425
@ aabb
回転しない全体を囲む矩形で交差判定
Definition sstypes.h:423
@ num
Definition sstypes.h:427
カラーブレンドキーが使用されている際のカラー適用範囲の定義
Definition sstypes.h:469
_enum
Definition sstypes.h:470
@ invalid
Definition sstypes.h:471
@ num
Definition sstypes.h:474
@ vertex
頂点単位
Definition sstypes.h:473
@ whole
単色。全体にかける。
Definition sstypes.h:472
Definition sstypes.h:685
_enum
Definition sstypes.h:686
@ root
Definition sstypes.h:688
@ invalid
Definition sstypes.h:687
@ particle
Definition sstypes.h:690
@ num
Definition sstypes.h:691
@ emmiter
Definition sstypes.h:689
Definition sstypes.h:714
_enum
Definition sstypes.h:716
@ unknown
Definition sstypes.h:717
@ anticlockwise
Definition sstypes.h:720
@ clockwise
Definition sstypes.h:719
@ num
Definition sstypes.h:721
@ arrowfree
Definition sstypes.h:718
継承タイプ
Definition sstypes.h:436
_enum
Definition sstypes.h:438
@ parent
親の継承方法をそのまま引き継ぐ
Definition sstypes.h:440
@ invalid
Definition sstypes.h:439
@ num
Definition sstypes.h:442
@ self
自身がアトリビュート別に持つ継承方法を使う
Definition sstypes.h:441
補間モードの定義
Definition sstypes.h:483
_enum
Definition sstypes.h:485
@ acceleration
加速度
Definition sstypes.h:491
@ num
Definition sstypes.h:493
@ deceleration
減速度
Definition sstypes.h:492
@ bezier
ベジェ
Definition sstypes.h:490
@ invalid
Definition sstypes.h:486
@ hermite
エルミート
Definition sstypes.h:489
@ linear
線形
Definition sstypes.h:488
@ none
なし
Definition sstypes.h:487
Definition sstypes.h:585
_enum
Definition sstypes.h:587
@ _float
Definition sstypes.h:590
@ _unkown
Definition sstypes.h:588
@ _int
Definition sstypes.h:591
@ _instance
Definition sstypes.h:597
@ _vertexAnime
Definition sstypes.h:594
@ _string
Definition sstypes.h:592
@ _bool
Definition sstypes.h:589
@ _userData
Definition sstypes.h:596
@ _colorAnime
Definition sstypes.h:595
@ _cellmap
Definition sstypes.h:593
Definition sstypes.h:922
_enum
Definition sstypes.h:924
@ boxdiv
Definition sstypes.h:927
@ unknown
Definition sstypes.h:925
@ num
Definition sstypes.h:928
@ polyline_base
Definition sstypes.h:926
Animation Part Type.
Definition sstypes.h:391
_enum
Definition sstypes.h:393
@ invalid
Definition sstypes.h:394
@ num
Definition sstypes.h:408
@ constraint
コンストレイント
Definition sstypes.h:403
@ instance
インスタンス。他アニメ、パーツへの参照。シーン編集モードの代替になるもの
Definition sstypes.h:398
@ normal
通常パーツ。領域を持つ。画像は無くてもいい。
Definition sstypes.h:396
@ effect
エフェクト
Definition sstypes.h:400
@ mesh
メッシュパーツ
Definition sstypes.h:401
@ mask
マスク
Definition sstypes.h:404
@ bonepoint
ボーンポイント
Definition sstypes.h:406
@ text
テキスト(予約 未実装)
Definition sstypes.h:397
@ joint
メッシュとボーンの関連付けパーツ
Definition sstypes.h:405
@ armature
ボーンパーツ
Definition sstypes.h:399
@ movenode
動作起点
Definition sstypes.h:402
@ null
null。領域を持たずSRT情報のみ。ただし円形の当たり判定は設定可能。
Definition sstypes.h:395
ソートモード
Definition sstypes.h:377
_enum
Definition sstypes.h:379
@ prio
描画順は優先度で制御する。優先度を表示し、Z座標を隠す。
Definition sstypes.h:381
@ z
描画順はZ座標で制御する。Z座標を表示し、優先度を隠す。
Definition sstypes.h:382
@ invalid
Definition sstypes.h:380
@ num
Definition sstypes.h:383
Definition sstypes.h:701
_enum
Definition sstypes.h:702
@ Mix
Definition sstypes.h:704
@ invalid
Definition sstypes.h:703
@ num
Definition sstypes.h:706
@ Add
Definition sstypes.h:705
シーケンスタイプ
Definition sstypes.h:729
_enum
Definition sstypes.h:731
@ num
Definition sstypes.h:736
@ last
0 最後のアイテムを繰り返し再生
Definition sstypes.h:733
@ keep
1 最終フレームを維持
Definition sstypes.h:734
@ top
2 全体を繰り返し再生
Definition sstypes.h:735
@ invalid
Definition sstypes.h:732
Definition sstypes.h:742
_enum
Definition sstypes.h:744
@ none
Definition sstypes.h:745
@ index
Definition sstypes.h:746
@ integer
Definition sstypes.h:747
@ num
Definition sstypes.h:749
@ floating
Definition sstypes.h:748
テクスチャフィルターモード 画素補間方法
Definition sstypes.h:516
_enum
Definition sstypes.h:518
@ num
Definition sstypes.h:522
@ invalid
Definition sstypes.h:519
@ linear
リニア、バイリニア
Definition sstypes.h:521
@ nearlest
ニアレストネイバー
Definition sstypes.h:520
テクスチャラップモード
Definition sstypes.h:501
_enum
Definition sstypes.h:503
@ num
ミラー
Definition sstypes.h:508
@ invalid
Definition sstypes.h:504
@ clamp
なし
Definition sstypes.h:505
@ mirror
リピート
Definition sstypes.h:507
@ repeat
クランプする
Definition sstypes.h:506
Definition ISsEffectRender.h:5
@ INSTANCE_LOOP_FLAG_INFINITY
Definition sstypes.h:909
@ INSTANCE_LOOP_FLAG_PINGPONG
Definition sstypes.h:911
@ INSTANCE_LOOP_FLAG_REVERSE
Definition sstypes.h:910
@ INSTANCE_LOOP_FLAG_INDEPENDENT
Definition sstypes.h:912
std::vector< SsBoneBind > SsBoneBindArray
Definition sstypes.h:947
unsigned int u32
Definition sstypes.h:200
SsTColor< u32 > SsColor
unsigned intでのカラー値定義
Definition sstypes.h:329
@ EFFECT_LOOP_FLAG_INFINITY
Definition sstypes.h:917
SsPoint2 SsVector2
Definition sstypes.h:198
SsPoint3 SsVector3
Definition sstypes.h:199
SsTRect< int > SsIRect
Definition sstypes.h:223
unsigned char u8
Definition sstypes.h:201
SsTColor< u8 > SsU8Color
Definition sstypes.h:332
SsTColor< float > SsFColor
floatでのカラー値定義
Definition sstypes.h:325
std::string SsString
Definition sstypes.h:30
void ConvertStringToSsColor(const std::string &str, SsColor &out)
与えられた文字列をカラー値に変換するための関数
Definition sstypes.h:338
#define SPRITESTUDIO6SDK_NOUSE_ARGUMENT(_name_)
Definition sshTask.h:15
#define SPRITESTUDIO6SDK_DECLARE_ENUM_STRING_DEF(type)
Definition sstypes.h:13
Definition sstypes.h:942
int boneIndex
Definition sstypes.h:943
float blend
Definition sstypes.h:944
SsColorAnime()
Definition sstypes.h:659
SsColorBlendValue color
Definition sstypes.h:653
int getBlendTypeToInt()
Definition sstypes.h:658
SsColorBlendValue colors[4]
Definition sstypes.h:654
SsColorBlendValue & getColors(int index)
Definition sstypes.h:656
int getTargetToInt()
Definition sstypes.h:657
SsBlendType::_enum blendType
Definition sstypes.h:652
SsColorBlendTarget::_enum target
Definition sstypes.h:651
カラーブレンドキーのカラー値
Definition sstypes.h:608
float rate
カラー値
Definition sstypes.h:610
SsColorBlendValue()
反映率
Definition sstypes.h:612
SsColor rgba
Definition sstypes.h:609
SsColorBlendValue colors[4]
Definition sstypes.h:637
SsColorBlendTarget::_enum target
Definition sstypes.h:634
SsColorBlendValue & getColors(int index)
Definition sstypes.h:639
SsPartsColorAnime()
Definition sstypes.h:642
int getTargetToInt()
Definition sstypes.h:640
int getBlendTypeToInt()
Definition sstypes.h:641
SsColorBlendValue color
Definition sstypes.h:636
SsBlendType::_enum blendType
Definition sstypes.h:635
2次元座標を表現するためのクラスです。
Definition sstypes.h:36
static float get_angle(const SsPoint2 &v0, const SsPoint2 &v1)
Definition sstypes.h:150
SsPoint2 operator/(float r) const
Definition sstypes.h:76
SsPoint2(float _x, float _y)
Definition sstypes.h:42
static float distance_sq(const SsPoint2 &l, const SsPoint2 &r)
Definition sstypes.h:48
void normalize()
Definition sstypes.h:115
static float cross(const SsPoint2 &l, const SsPoint2 &r)
Definition sstypes.h:125
SsPoint2 operator-(const SsPoint2 &r) const
Definition sstypes.h:66
float length() const
Definition sstypes.h:86
static float get_angle_360(const SsPoint2 &v0, const SsPoint2 v1)
Definition sstypes.h:171
static float get_angle_360_unit(const SsPoint2 &v0, const SsPoint2 v1)
Definition sstypes.h:159
SsPoint2 operator+(const SsPoint2 &r) const
Definition sstypes.h:61
static float distance(const SsPoint2 &l, const SsPoint2 &r)
Definition sstypes.h:56
static float get_angle_unit(const SsPoint2 &v0, const SsPoint2 v1)
Definition sstypes.h:136
float x
Definition sstypes.h:38
float y
Definition sstypes.h:39
static float dot(const SsPoint2 &l, const SsPoint2 r)
Definition sstypes.h:121
SsPoint2()
Definition sstypes.h:46
float length_sq() const
Definition sstypes.h:81
SsPoint2 operator*(float r) const
Definition sstypes.h:71
static void normalize(const SsPoint2 &in, SsPoint2 *out)
Definition sstypes.h:98
3次元座標を表現するためのクラスです。
Definition sstypes.h:184
float z
Definition sstypes.h:188
float x
Definition sstypes.h:186
SsPoint3()
Definition sstypes.h:195
float y
Definition sstypes.h:187
SsPoint3(float _x, float _y, float _z)
Definition sstypes.h:191
Definition sstypes.h:789
int mapid
Definition sstypes.h:790
std::string name
Definition sstypes.h:791
SsString id
Definition sstypes.h:668
SsShaderAnime()
Definition sstypes.h:671
float param[4]
Definition sstypes.h:669
Definition sstypes.h:934
int idxPo1
Definition sstypes.h:935
int idxPo2
Definition sstypes.h:936
int idxPo3
Definition sstypes.h:937
頂点変形キーの4頂点変形値
Definition sstypes.h:619
SsPoint2 & getOffsets(int index)
Definition sstypes.h:621
SsPoint2 offsets[4]
各頂点の移動オフセット値
Definition sstypes.h:620
Definition sstypes.h:334
char operator()(char c)
Definition sstypes.h:335
Definition sstypes.h:817
float f
Definition sstypes.h:819
int i
Definition sstypes.h:818