Lumino.Math
|
00001 00002 #ifndef LUMINO_MATH_DXLIB_H 00003 #define LUMINO_MATH_DXLIB_H 00004 00005 #ifndef __DXLIB 00006 #error please include after "DxLib.h" 00007 #endif 00008 00009 // DxLib::VECTOR との相互変換 00010 #define LN_MATH_VECTOR3_EXTENSION \ 00011 Vector3(const DxLib::VECTOR& v) { X = v.x; Y = v.y; Z = v.z; } \ 00012 Vector3& operator = (const DxLib::VECTOR& v) { X = v.x; Y = v.y; Z = v.z; return *this; } \ 00013 operator const DxLib::VECTOR& () { return *(reinterpret_cast<const DxLib::VECTOR*>(this)); } 00014 00015 // DxLib::MATRIX との相互変換 00016 #define LN_MATH_MATRIX_EXTENSION \ 00017 Matrix(const DxLib::MATRIX& m) { memcpy_s(this, sizeof(Matrix), &m, sizeof(DxLib::MATRIX)); } \ 00018 Matrix& operator = (const DxLib::MATRIX& m) { memcpy_s(this, sizeof(Matrix), &m, sizeof(DxLib::MATRIX)); return *this; } \ 00019 operator const DxLib::MATRIX& () { return *(reinterpret_cast<const DxLib::MATRIX*>(this)); } 00020 00021 #include "LuminoMath.h" 00022 00023 #ifdef _MSC_VER 00024 #if _MSC_VER >= 1800 // Visual C++ 12.0 (Visual Studio 2013) 00025 #ifdef _DEBUG 00026 #pragma comment(lib, "LuminoMath-msvc120-static_d") 00027 #else 00028 #pragma comment(lib, "LuminoMath-msvc120-static") 00029 #endif 00030 #elif _MSC_VER >= 1700 // Visual C++ 11.0 (Visual Studio 2012) 00031 #ifdef _DEBUG 00032 #pragma comment(lib, "LuminoMath-msvc110-static_d") 00033 #else 00034 #pragma comment(lib, "LuminoMath-msvc110-static") 00035 #endif 00036 #elif _MSC_VER >= 1600 // Visual C++ 10.0 (Visual Studio 2010) 00037 #ifdef _DEBUG 00038 #pragma comment(lib, "LuminoMath-msvc100-static_d") 00039 #else 00040 #pragma comment(lib, "LuminoMath-msvc100-static") 00041 #endif 00042 #elif _MSC_VER >= 1500 // Visual C++ 9.0 (Visual Studio 2008) 00043 #ifdef _DEBUG 00044 #pragma comment(lib, "LuminoMath-msvc90-static_d") 00045 #else 00046 #pragma comment(lib, "LuminoMath-msvc90-static") 00047 #endif 00048 #elif _MSC_VER >= 1400 // Visual C++ 8.0 (Visual Studio 2005) 00049 #ifdef _DEBUG 00050 #pragma comment(lib, "LuminoMath-msvc80-static_d") 00051 #else 00052 #pragma comment(lib, "LuminoMath-msvc80-static") 00053 #endif 00054 #else 00055 #endif 00056 #endif 00057 00058 #endif // LUMINO_MATH_DXLIB_H