OPTPiX SpriteStudio SDK
Main Page
Related Pages
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Variables
Enumerations
Enumerator
Pages
ssloader_ssce.h
1
#ifndef __SSLOADER_SSCE__
2
#define __SSLOADER_SSCE__
3
4
#include "sstypes.h"
5
#include "ssarchiver.h"
6
7
9
class
SsCell
10
{
11
public
:
12
//--------- ランタイム用データとして保存すべきもの
13
SsString
name
;
14
SsPoint2
pos
;
15
SsPoint2
size
;
16
SsPoint2
pivot
;
17
// SsVector2 pivot; ///< 原点。size /2 が中央=0,0になる。
18
bool
rotated
;
19
20
SsCell
(){}
21
virtual
~
SsCell
(){}
22
23
25
SSSERIALIZE_BLOCK
26
{
27
SSAR_DECLARE(
name
);
28
SSAR_DECLARE(
pos
);
29
SSAR_DECLARE(
size
);
30
SSAR_DECLARE(
pivot
);
31
SSAR_DECLARE(
rotated
);
32
}
33
};
34
35
36
38
47
class
SsCellMap
48
{
49
public
:
50
SsString
fname
;
51
SsString
name
;
52
SsString
imagePath
;
53
SsPoint2
pixelSize
;
54
bool
overrideTexSettings
;
55
SsTexWrapMode::_enum
wrapMode
;
56
SsTexFilterMode::_enum
filterMode
;
57
58
std::vector<SsCell*> cells;
59
60
61
SsCellMap
(){}
62
virtual
~
SsCellMap
()
63
{
64
for
( std::vector<SsCell*>::iterator itr = cells.begin() ;
65
itr != cells.end() ; itr ++ )
delete
(*itr);
66
}
67
69
SSSERIALIZE_BLOCK
70
{
71
SSAR_DECLARE(
name
);
72
SSAR_DECLARE(
imagePath
);
73
SSAR_DECLARE(
pixelSize
);
74
SSAR_DECLARE(
overrideTexSettings
);
75
SSAR_DECLARE_ENUM(
wrapMode
);
76
SSAR_DECLARE_ENUM(
filterMode
);
77
78
SSAR_DECLARE_LISTEX( cells ,
"cell"
);
79
}
80
};
81
82
84
class
ssloader_ssce
85
{
86
public
:
87
ssloader_ssce
(){}
88
virtual
~
ssloader_ssce
(){}
89
90
static
SsCellMap
* Load(
const
std::string& filename );
91
92
};
93
94
95
#endif
Common
Loader
ssloader_ssce.h
Generated on Mon Jun 16 2014 17:55:48 for OPTPiX SpriteStudio SDK by
1.8.4