SDXFrameWork 0.10 SDXFrameWork

- Main Page
- Related Pages
- Classes

All Classes Namespaces Functions Variables Enumerations Enumerator Pages
SDX.h
1 //Copyright © 2014 SDXFramework
2 //[License]GNU Affero General Public License, version 3
3 //[Contact]http://sourceforge.jp/projects/dxframework/
4 #pragma once
5
6 #include <vector>
7 #include <string>
8 #include <memory>
9 #include <math.h>
10 #include <algorithm>
11 #include <list>
12 #include <iomanip>
13
14 #include <fstream>
15 #include <sstream>
16 #include <iostream>
17
18 #include <vector>
19 #include <thread>
20 #include <mutex>
21 #include <cmath>
22
24 namespace SDX
25 {
26 const double PAI = 3.1415926535897931;
27 const double DEG = PAI / 180;
28
29 double CompAngle(double 角度A, double 角度B);
30 }
31
32 //暫定的に、マクロ使用
33 #define MONO_STATE(a) \
34 a() = default;\
35 ~a() = default;\
36 void operator =(const a& src) = delete;\
37 a(const a& src) = delete;\
38 void operator =(const a&& src) = delete;\
39 a(const a&& src) = delete;
40
41 //暫定的に、マクロ使用
42 #define INTERFACE(a) \
43 vartual ~a() = default;
44
45 //Windowsのみ有効なコード
46 #pragma comment(lib, "SDL2.lib")
47 #pragma comment(lib, "SDL2main.lib")
48 #pragma comment(lib, "SDL2_image.lib")
49 #pragma comment(lib, "SDL2_mixer.lib")
50 #pragma comment(lib, "SDL2_ttf.lib")
51 #pragma execution_character_set("utf-8")//charの文字コードをUTF-8に変更
52
53 #ifdef _DEBUG
54 #pragma comment(linker, "/NODEFAULTLIB:msvcrt.lib")
55 #else
56 /*
57 コメントアウトするとRerease時にMTでコンパイル可能になる
58 #pragma comment(linker, "/NODEFAULTLIB:msvcrt.lib")
59 int fprintf( FILE * stream, const char * format, ... )
60 {
61 return 0;
62 }
63 */
64 #endif
65
66 #include <SDL.h>
67 #include <SDL_image.h>
68 #include <SDL_mixer.h>
69 #include <SDL_ttf.h>
70
71 #ifdef __ANDROID__
72 #define TABLET
73 #elif defined(__IPHONEOS__)
74 #define TABLET
75 #endif
76
77 #ifdef __WINDOWS__
78 #include<xutility>
79 #else
80 #include <locale.h>
81 #define sprintf_s(a,b,c,d) sprintf(a,c,d)
82 #define localtime_s(a,b) a = localtime(b)
83 #endif
SDX::PAI
const double PAI
円周率
Definition: SDX.h:26
SDX::CompAngle
double CompAngle(double 角度A, double 角度B)
Aから見たBの角度差を-PAI～+PAIで返す.
Definition: SDXafx.h:55
SDX::DEG
const double DEG
ラジアンにおける1℃
Definition: SDX.h:27