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