@@ -60,8 +60,8 @@ namespace NMR {
60
60
nfFloat m_fBox2D_V;
61
61
nfFloat m_fBox2D_Width;
62
62
nfFloat m_fBox2D_Height;
63
- std::wstring m_sTileStyleU ;
64
- std::wstring m_sTileStyleV ;
63
+ eModelTextureTileStyle m_eTileStyleU ;
64
+ eModelTextureTileStyle m_eTileStyleV ;
65
65
public:
66
66
CModelTexture2DResource () = delete ;
67
67
CModelTexture2DResource (_In_ const ModelResourceID sID , _In_ CModel * pModel);
@@ -78,6 +78,8 @@ namespace NMR {
78
78
void setContentType (_In_ eModelTexture2DType ContentType);
79
79
std::wstring getContentTypeString ();
80
80
void setContentTypeString (_In_ std::wstring sValue , _In_ nfBool bFailIfUnknown);
81
+ void setTileStyleUString (_In_ std::wstring sValue );
82
+ void setTileStyleVString (_In_ std::wstring sValue );
81
83
82
84
// getters/setters Box2D
83
85
nfBool getBox2D (_Out_ nfFloat & fU , _Out_ nfFloat & fV , _Out_ nfFloat & fWidth , _Out_ nfFloat & fHeight );
@@ -86,14 +88,16 @@ namespace NMR {
86
88
nfBool hasBox2D ();
87
89
88
90
// getters/setters TileStyle
89
- std::wstring getTileStyleU ();
90
- std::wstring getTileStyleV ();
91
- void setTileStyleU (_In_ std::wstring sValue );
92
- void setTileStyleV (_In_ std::wstring sValue );
91
+ eModelTextureTileStyle getTileStyleU ();
92
+ eModelTextureTileStyle getTileStyleV ();
93
+ void setTileStyleU (_In_ eModelTextureTileStyle sStyle );
94
+ void setTileStyleV (_In_ eModelTextureTileStyle sStyle );
93
95
94
96
// copy all parameters from source
95
97
void copyFrom (_In_ CModelTexture2DResource * pSourceTexture);
96
98
99
+ static eModelTextureTileStyle tileStyleFromString (_In_ std::wstring sValue );
100
+ static std::wstring tileStyleToString (_In_ eModelTextureTileStyle eTileStyle);
97
101
};
98
102
99
103
typedef std::shared_ptr <CModelTexture2DResource> PModelTexture2DResource;
0 commit comments