Revision 863,
950 bytes
checked in by mattausch, 18 years ago
(diff) |
working on preprocessor integration
added iv stuff
|
Line | |
---|
1 | #include "OgreTypeConverter.h" |
---|
2 | |
---|
3 | |
---|
4 | namespace Ogre |
---|
5 | { |
---|
6 | |
---|
7 | GtpVisibilityPreprocessor::AxisAlignedBox3 OgreTypeConverter::ConvertFromOgre(const AxisAlignedBox &box)
|
---|
8 | {
|
---|
9 | const GtpVisibilityPreprocessor::Vector3 bmin = ConvertFromOgre(box.getMinimum());
|
---|
10 | const GtpVisibilityPreprocessor::Vector3 bmax = ConvertFromOgre(box.getMaximum());
|
---|
11 |
|
---|
12 | return GtpVisibilityPreprocessor::AxisAlignedBox3(bmin, bmax);
|
---|
13 | }
|
---|
14 |
|
---|
15 | GtpVisibilityPreprocessor::Vector3 OgreTypeConverter::ConvertFromOgre(const Vector3 &v)
|
---|
16 | {
|
---|
17 | return GtpVisibilityPreprocessor::Vector3(v.x, v.y, v.z);
|
---|
18 | }
|
---|
19 |
|
---|
20 | AxisAlignedBox OgreTypeConverter::ConvertToOgre(const GtpVisibilityPreprocessor::AxisAlignedBox3 &box)
|
---|
21 | {
|
---|
22 | const Vector3 bmin = ConvertToOgre(box.Min());
|
---|
23 | const Vector3 bmax = ConvertToOgre(box.Max());
|
---|
24 |
|
---|
25 | return AxisAlignedBox(bmin, bmax);
|
---|
26 | }
|
---|
27 |
|
---|
28 | Vector3 OgreTypeConverter::ConvertToOgre(const GtpVisibilityPreprocessor::Vector3 &v) |
---|
29 | { |
---|
30 | return Vector3(v.getX(), v.getY(), v.getZ()); |
---|
31 | } |
---|
32 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.