2 Physics Effects Copyright(C) 2010 Sony Computer Entertainment Inc.
\r
5 Physics Effects is open software; you can redistribute it and/or
\r
6 modify it under the terms of the BSD License.
\r
8 Physics Effects is distributed in the hope that it will be useful,
\r
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
\r
11 See the BSD License for more details.
\r
13 A copy of the BSD License is distributed with
\r
14 Physics Effects under the filename: physics_effects_license.txt
\r
17 #ifndef _SCE_PFX_SUB_DATA_H
\r
18 #define _SCE_PFX_SUB_DATA_H
\r
21 namespace PhysicsEffects {
\r
32 SCE_PFX_PADDING(1,1)
\r
47 param[0] = param[1] = 0;
\r
50 void setIslandId(PfxUInt8 i) {m_facetLocal.islandId = i;}
\r
51 void setFacetId(PfxUInt8 i) {m_facetLocal.facetId = i;}
\r
52 void setFacetLocalS(PfxFloat s) {m_facetLocal.s = (PfxUInt16)(s * 65535.0f);}
\r
53 void setFacetLocalT(PfxFloat t) {m_facetLocal.t = (PfxUInt16)(t * 65535.0f);}
\r
55 PfxUInt8 getIslandId() {return m_facetLocal.islandId;}
\r
56 PfxUInt8 getFacetId() {return m_facetLocal.facetId;}
\r
57 PfxFloat getFacetLocalS() {return m_facetLocal.s / 65535.0f;}
\r
58 PfxFloat getFacetLocalT() {return m_facetLocal.t / 65535.0f;}
\r
61 } //namespace PhysicsEffects
\r
63 #endif // _SCE_PFX_SUB_DATA_H
\r