core.h Source File - ClanLib SDK
Description: core.h Source File

Sources/API/core.h
1/*
2** ClanLib SDK
3** Copyright (c) 1997-2020 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,1,0)
38#define CLANLIB_VERSION_STRING "4.1.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/file_resource_document.h"
84#include "Core/Resources/file_resource_manager.h"
85#include "Core/JSON/json_value.h"
86#include "Core/IOData/file.h"
87#include "Core/IOData/file_help.h"
88#include "Core/IOData/path_help.h"
89#include "Core/IOData/iodevice.h"
90#include "Core/IOData/iodevice_provider.h"
91#include "Core/IOData/directory.h"
92#include "Core/IOData/cl_endian.h"
93#include "Core/IOData/directory_scanner.h"
94#include "Core/IOData/file_system.h"
95#include "Core/IOData/file_system_provider.h"
96#include "Core/IOData/directory_listing.h"
97#include "Core/IOData/memory_device.h"
98#include "Core/IOData/html_url.h"
99#include "Core/Zip/zip_archive.h"
100#include "Core/Zip/zip_writer.h"
101#include "Core/Zip/zip_reader.h"
102#include "Core/Zip/zip_file_entry.h"
103#include "Core/Zip/zlib_compression.h"
104#include "Core/Math/angle.h"
105#include "Core/Math/base64_encoder.h"
106#include "Core/Math/base64_decoder.h"
107#include "Core/Math/bezier_curve.h"
108#include "Core/Math/circle.h"
109#include "Core/Math/vec2.h"
110#include "Core/Math/vec3.h"
111#include "Core/Math/vec4.h"
112#include "Core/Math/delauney_triangulator.h"
113#include "Core/Math/ear_clip_triangulator.h"
114#include "Core/Math/ear_clip_result.h"
115#include "Core/Math/line_math.h"
116#include "Core/Math/cl_math.h"
117#include "Core/Math/quaternion.h"
118#include "Core/Math/mat2.h"
119#include "Core/Math/mat3.h"
120#include "Core/Math/mat4.h"
121#include "Core/Math/origin.h"
122#include "Core/Math/outline_triangulator.h"
123#include "Core/Math/point.h"
124#include "Core/Math/pointset_math.h"
125#include "Core/Math/quad.h"
126#include "Core/Math/rect.h"
127#include "Core/Math/rect_packer.h"
128#include "Core/Math/half_float.h"
129#include "Core/Math/half_float_vector.h"
130#include "Core/Math/big_int.h"
131#include "Core/Math/frustum_planes.h"
132#include "Core/Math/intersection_test.h"
133#include "Core/Math/aabb.h"
134#include "Core/Math/obb.h"
135#include "Core/Math/easing.h"
136#include "Core/Crypto/random.h"
137#include "Core/Crypto/secret.h"
138#include "Core/Crypto/sha1.h"
139#include "Core/Crypto/md5.h"
140#include "Core/Crypto/sha224.h"
141#include "Core/Crypto/sha256.h"
142#include "Core/Crypto/sha384.h"
143#include "Core/Crypto/sha512.h"
144#include "Core/Crypto/sha512_224.h"
145#include "Core/Crypto/sha512_256.h"
146#include "Core/Crypto/aes128_encrypt.h"
147#include "Core/Crypto/aes128_decrypt.h"
148#include "Core/Crypto/aes192_encrypt.h"
149#include "Core/Crypto/aes192_decrypt.h"
150#include "Core/Crypto/aes256_encrypt.h"
151#include "Core/Crypto/aes256_decrypt.h"
152#include "Core/Crypto/rsa.h"
153#include "Core/Crypto/tls_client.h"
154#include "Core/Math/size.h"
155#include "Core/Math/triangle_math.h"
156#include "Core/Math/line.h"
157#include "Core/Math/line_ray.h"
158#include "Core/Math/line_segment.h"
159#include "Core/Crypto/hash_functions.h"
160#include "Core/core_iostream.h"
161
162#ifdef __cplusplus_cli
163#pragma managed(pop)
164#endif
165
166#if defined(_MSC_VER)
167 #if !defined(_MT)
168 #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.
169 #endif
170 #if !defined(_DEBUG)
171 #if defined(DLL)
172 #pragma comment(lib, "clanCore-dll.lib")
173 #elif defined(_DLL)
174 #pragma comment(lib, "clanCore-static-mtdll.lib")
175 #else
176 #pragma comment(lib, "clanCore-static-mt.lib")
177 #endif
178 #else
179 #if defined(DLL)
180 #pragma comment(lib, "clanCore-dll-debug.lib")
181 #elif defined(_DLL)
182 #pragma comment(lib, "clanCore-static-mtdll-debug.lib")
183 #else
184 #pragma comment(lib, "clanCore-static-mt-debug.lib")
185 #endif
186 #endif
187 #pragma comment(lib, "advapi32.lib")
188#endif
189