1 // ------------------------------------------------------------------------------- 2 // 3 // DXライブラリ データタイプ定義ヘッダファイル 4 // 5 // Ver 3.22a 6 // 7 // ------------------------------------------------------------------------------- 8 module dxlib_d.dxdatatype; 9 10 11 // インクルード ------------------------------------------------------------------ 12 public import dxlib_d.dxcompileconfig; 13 public import dxlib_d.dxdatatype; 14 public import core.stdc.stdio; 15 16 //ifdef WINDOWS_DESKTOP_OS 17 //version (Windows) { 18 public import dxlib_d.dxdatayypewin; 19 //} 20 21 //ifdef __ANDROID__ 22 //version (Android) { 23 public import dxlib_d.dxdatatypeandroid; 24 //} 25 26 //#ifdef __APPLE__ 27 //version (iOS) { 28 //#include "TargetConditionals.h" 29 30 //#if TARGET_OS_IPHONE 31 public import dxlib_d.dxdatatypeios; 32 //#endif 33 //} 34 35 extern (C++, DxLib) { 36 // マクロ定義 -------------------------------------------------------------------- 37 38 pragma(inline, true) 39 pure nothrow @safe @nogc @live 40 void SETRECT(ref .RECT Dest, .LONG Left, .LONG Top, .LONG Right, .LONG Bottom) 41 42 do 43 { 44 Dest.left = Left; 45 Dest.top = Top; 46 Dest.right = Right; 47 Dest.bottom = Bottom; 48 } 49 50 /+ 51 version (USE_ULL) { 52 #define ULL_NUM(x) (x##ULL) 53 #define LL_NUM(x) (x##LL) 54 #define ULL_PARAM(x) x##ULL 55 #define LL_PARAM(x) x##LL 56 } else { 57 #define ULL_NUM(x) ((ULONGLONG) x) 58 #define LL_NUM(x) ((LONGLONG) x) 59 #define ULL_PARAM(x) x 60 #define LL_PARAM(x) x 61 } 62 +/ 63 64 // 構造体定義 -------------------------------------------------------------------- 65 66 // RGBA色構造体 67 struct RGBCOLOR 68 { 69 ubyte Blue; 70 ubyte Green; 71 ubyte Red; 72 ubyte Alpha; 73 } 74 75 // テーブル----------------------------------------------------------------------- 76 77 // 内部大域変数宣言 -------------------------------------------------------------- 78 79 // 関数プロトタイプ宣言----------------------------------------------------------- 80 }