00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00023
00024 #ifndef H_SPK_IRR_DEF
00025 #define H_SPK_IRR_DEF
00026
00027 #include <irrlicht.h>
00028 #include "Core/SPK_Vector3D.h"
00029
00030 #ifdef _MSC_VER
00031 #pragma warning(disable : 4275) // disables the warning about exporting DLL classes children of non DLL classes
00032 #endif
00033
00034 #ifdef SPK_IRR_EXPORT
00035 #define SPK_IRR_PREFIX __declspec(dllexport)
00036 #elif defined(SPK_IMPORT) || defined(SPK_IRR_IMPORT)
00037 #define SPK_IRR_PREFIX __declspec(dllimport)
00038 #else
00039 #define SPK_IRR_PREFIX
00040 #endif
00041
00042 namespace SPK
00043 {
00049 namespace IRR
00050 {
00052
00054
00060 inline irr::core::vector3df spk2irr(const Vector3D& v)
00061 {
00062 return irr::core::vector3df(v.x,v.y,v.z);
00063 }
00064
00070 inline Vector3D irr2spk(const irr::core::vector3df& v)
00071 {
00072 return Vector3D(v.X,v.Y,v.Z);
00073 }
00074
00083 inline irr::video::SColor spk2irr(float a, float r, float g, float b)
00084 {
00085 return irr::video::SColorf(r,g,b,a).toSColor();
00086 }
00087 }}
00088
00089 #endif