Sources/API/core.h
1 /*
2 ** ClanLib SDK
3 ** Copyright (c) 1997-2015 The ClanLib Team
4 **
5 ** This software is provided 'as-is', without any express or implied
6 ** warranty. In no event will the authors be held liable for any damages
7 ** arising from the use of this software.
8 **
9 ** Permission is granted to anyone to use this software for any purpose,
10 ** including commercial applications, and to alter it and redistribute it
11 ** freely, subject to the following restrictions:
12 **
13 ** 1. The origin of this software must not be misrepresented; you must not
14 ** claim that you wrote the original software. If you use this software
15 ** in a product, an acknowledgment in the product documentation would be
16 ** appreciated but is not required.
17 ** 2. Altered source versions must be plainly marked as such, and must not be
18 ** misrepresented as being the original software.
19 ** 3. This notice may not be removed or altered from any source distribution.
20 **
21 ** Note: Some of the libraries ClanLib may link to may have additional
22 ** requirements or restrictions.
23 **
24 ** File Author(s):
25 **
26 ** Magnus Norddahl
27 ** Harry Storbacka
28 */
29
33
34 #pragma once
35
36 #define CLANLIB_VERSION(x,y,z) ( (x << 16) | (y << 8) | (z) )
37 #define CLANLIB_CURRENT_VERSION CLANLIB_VERSION(4,0,0)
38 #define CLANLIB_VERSION_STRING "4.0.0"
39
40 #ifdef _MSC_VER
41 #pragma warning( disable : 4786)
42 #endif
43
44 #ifdef __cplusplus_cli
45 #pragma managed(push, off)
46 #endif
47
48 #include <string>
49
50 #ifdef WIN32
51 #include <windows.h>
52 #endif
53
54 #include "Core/System/cl_platform.h"
55 #include "Core/System/comptr.h"
56 #include "Core/Text/file_logger.h"
57 #include "Core/Text/console.h"
58 #include "Core/Text/console_logger.h"
59 #include "Core/Text/logger.h"
60 #include "Core/Text/string_format.h"
61 #include "Core/Text/string_help.h"
62 #include "Core/Text/utf8_reader.h"
63 #include "Core/System/databuffer.h"
64 #include "Core/System/block_allocator.h"
65 #include "Core/System/console_window.h"
66 #include "Core/System/datetime.h"
67 #include "Core/System/disposable_object.h"
68 #include "Core/System/exception.h"
69 #include "Core/System/service.h"
70 #include "Core/System/thread_local_storage.h"
71 #include "Core/System/system.h"
72 #include "Core/System/registry_key.h"
73 #include "Core/System/userdata.h"
74 #include "Core/System/game_time.h"
75 #include "Core/System/work_queue.h"
76 #include "Core/ErrorReporting/crash_reporter.h"
77 #include "Core/ErrorReporting/exception_dialog.h"
78 #include "Core/Signals/signal.h"
79 #include "Core/Resources/resource.h"
80 #include "Core/Resources/resource_container.h"
81 #include "Core/Resources/resource_object.h"
82 #include "Core/Resources/resource_manager.h"
83 #include "Core/Resources/xml_resource_node.h"
84 #include "Core/Resources/xml_resource_document.h"
85 #include "Core/Resources/xml_resource_manager.h"
86 #include "Core/Resources/file_resource_document.h"
87 #include "Core/Resources/file_resource_manager.h"
88 #include "Core/JSON/json_value.h"
89 #include "Core/XML/dom_processing_instruction.h"
90 #include "Core/XML/dom_entity_reference.h"
91 #include "Core/XML/dom_notation.h"
92 #include "Core/XML/dom_exception.h"
93 #include "Core/XML/dom_cdata_section.h"
94 #include "Core/XML/dom_document_fragment.h"
95 #include "Core/XML/dom_comment.h"
96 #include "Core/XML/dom_attr.h"
97 #include "Core/XML/dom_entity.h"
98 #include "Core/XML/dom_document_type.h"
99 #include "Core/XML/dom_document.h"
100 #include "Core/XML/dom_implementation.h"
101 #include "Core/XML/dom_node_list.h"
102 #include "Core/XML/dom_text.h"
103 #include "Core/XML/dom_node.h"
104 #include "Core/XML/dom_character_data.h"
105 #include "Core/XML/dom_named_node_map.h"
106 #include "Core/XML/dom_element.h"
107 #include "Core/XML/dom_string.h"
108 #include "Core/XML/xml_tokenizer.h"
109 #include "Core/XML/xml_writer.h"
110 #include "Core/XML/xml_token.h"
111 #include "Core/XML/xpath_evaluator.h"
112 #include "Core/XML/xpath_object.h"
113 #include "Core/IOData/file.h"
114 #include "Core/IOData/file_help.h"
115 #include "Core/IOData/path_help.h"
116 #include "Core/IOData/iodevice.h"
117 #include "Core/IOData/iodevice_provider.h"
118 #include "Core/IOData/directory.h"
119 #include "Core/IOData/cl_endian.h"
120 #include "Core/IOData/directory_scanner.h"
121 #include "Core/IOData/file_system.h"
122 #include "Core/IOData/file_system_provider.h"
123 #include "Core/IOData/directory_listing.h"
124 #include "Core/IOData/memory_device.h"
125 #include "Core/IOData/html_url.h"
126 #include "Core/Zip/zip_archive.h"
127 #include "Core/Zip/zip_writer.h"
128 #include "Core/Zip/zip_reader.h"
129 #include "Core/Zip/zip_file_entry.h"
130 #include "Core/Zip/zlib_compression.h"
131 #include "Core/Math/angle.h"
132 #include "Core/Math/base64_encoder.h"
133 #include "Core/Math/base64_decoder.h"
134 #include "Core/Math/bezier_curve.h"
135 #include "Core/Math/circle.h"
136 #include "Core/Math/vec2.h"
137 #include "Core/Math/vec3.h"
138 #include "Core/Math/vec4.h"
139 #include "Core/Math/delauney_triangulator.h"
140 #include "Core/Math/ear_clip_triangulator.h"
141 #include "Core/Math/ear_clip_result.h"
142 #include "Core/Math/line_math.h"
143 #include "Core/Math/cl_math.h"
144 #include "Core/Math/quaternion.h"
145 #include "Core/Math/mat2.h"
146 #include "Core/Math/mat3.h"
147 #include "Core/Math/mat4.h"
148 #include "Core/Math/origin.h"
149 #include "Core/Math/outline_triangulator.h"
150 #include "Core/Math/point.h"
151 #include "Core/Math/pointset_math.h"
152 #include "Core/Math/quad.h"
153 #include "Core/Math/rect.h"
154 #include "Core/Math/rect_packer.h"
155 #include "Core/Math/half_float.h"
156 #include "Core/Math/half_float_vector.h"
157 #include "Core/Math/big_int.h"
158 #include "Core/Math/frustum_planes.h"
159 #include "Core/Math/intersection_test.h"
160 #include "Core/Math/aabb.h"
161 #include "Core/Math/obb.h"
162 #include "Core/Math/easing.h"
163 #include "Core/Crypto/random.h"
164 #include "Core/Crypto/secret.h"
165 #include "Core/Crypto/sha1.h"
166 #include "Core/Crypto/md5.h"
167 #include "Core/Crypto/sha224.h"
168 #include "Core/Crypto/sha256.h"
169 #include "Core/Crypto/sha384.h"
170 #include "Core/Crypto/sha512.h"
171 #include "Core/Crypto/sha512_224.h"
172 #include "Core/Crypto/sha512_256.h"
173 #include "Core/Crypto/aes128_encrypt.h"
174 #include "Core/Crypto/aes128_decrypt.h"
175 #include "Core/Crypto/aes192_encrypt.h"
176 #include "Core/Crypto/aes192_decrypt.h"
177 #include "Core/Crypto/aes256_encrypt.h"
178 #include "Core/Crypto/aes256_decrypt.h"
179 #include "Core/Crypto/rsa.h"
180 #include "Core/Crypto/tls_client.h"
181 #include "Core/Math/size.h"
182 #include "Core/Math/triangle_math.h"
183 #include "Core/Math/line.h"
184 #include "Core/Math/line_ray.h"
185 #include "Core/Math/line_segment.h"
186 #include "Core/Crypto/hash_functions.h"
187 #include "Core/core_iostream.h"
188
189 #ifdef __cplusplus_cli
190 #pragma managed(pop)
191 #endif
192
193 #if defined(_MSC_VER)
194 #if !defined(_MT)
195 #error Your application is set to link with the single-threaded version of the run-time library. Go to project settings, in the C++ section, and change it to multi-threaded.
196 #endif
197 #if !defined(_DEBUG)
198 #if defined(DLL)
199 #pragma comment(lib, "clanCore-dll.lib")
200 #elif defined(_DLL)
201 #pragma comment(lib, "clanCore-static-mtdll.lib")
202 #else
203 #pragma comment(lib, "clanCore-static-mt.lib")
204 #endif
205 #else
206 #if defined(DLL)
207 #pragma comment(lib, "clanCore-dll-debug.lib")
208 #elif defined(_DLL)
209 #pragma comment(lib, "clanCore-static-mtdll-debug.lib")
210 #else
211 #pragma comment(lib, "clanCore-static-mt-debug.lib")
212 #endif
213 #endif
214 #pragma comment(lib, "advapi32.lib")
215 #endif
216