File tree Expand file tree Collapse file tree 5 files changed +28
-9
lines changed Expand file tree Collapse file tree 5 files changed +28
-9
lines changed Original file line number Diff line number Diff line change 6
6
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
7
7
/* +#+#+#+#+#+ +#+ */
8
8
/* Created: 2022/10/04 21:49:46 by maldavid #+# #+# */
9
- /* Updated: 2023/11/23 14:25:43 by maldavid ### ########.fr */
9
+ /* Updated: 2023/12/08 18:52:47 by kbz_8 ### ########.fr */
10
10
/* */
11
11
/* ************************************************************************** */
12
12
24
24
25
25
#include < core/graphics.h>
26
26
#include < platform/inputs.h>
27
+ #include < core/profile.h>
27
28
28
29
namespace mlx ::core
29
30
{
30
- class Application
31
+ class MLX_API Application
31
32
{
32
33
public:
33
34
Application ();
Original file line number Diff line number Diff line change 6
6
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
7
7
/* +#+#+#+#+#+ +#+ */
8
8
/* Created: 2022/10/04 17:42:32 by maldavid #+# #+# */
9
- /* Updated: 2022/10 /08 19:06:41 by maldavid ### ########.fr */
9
+ /* Updated: 2023/12 /08 18:53:11 by kbz_8 ### ########.fr */
10
10
/* */
11
11
/* ************************************************************************** */
12
12
13
13
#ifndef __MLX_ERRORS__
14
14
#define __MLX_ERRORS__
15
15
16
16
#include < string>
17
+ #include < core/profile.h>
17
18
18
19
enum class e_kind
19
20
{
@@ -25,7 +26,7 @@ enum class e_kind
25
26
26
27
namespace mlx ::core::error
27
28
{
28
- void report (e_kind kind, std::string msg, ...);
29
+ void MLX_API report (e_kind kind, std::string msg, ...);
29
30
}
30
31
31
32
#endif // __MLX_ERRORS__
Original file line number Diff line number Diff line change 6
6
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
7
7
/* +#+#+#+#+#+ +#+ */
8
8
/* Created: 2023/11/10 08:49:17 by maldavid #+# #+# */
9
- /* Updated: 2023/11/10 09:05:56 by maldavid ### ########.fr */
9
+ /* Updated: 2023/12/08 18:49:38 by kbz_8 ### ########.fr */
10
10
/* */
11
11
/* ************************************************************************** */
12
12
41
41
#warning "This compiler is not fully supported"
42
42
#endif
43
43
44
+ #if defined(_WIN32) || defined(_WIN64)
45
+ #define MLX_EXPORT __declspec (dllexport)
46
+ #define MLX_IMPORT __declspec (dllexport)
47
+ #else
48
+ #define MLX_EXPORT
49
+ #define MLX_IMPORT
50
+ #endif
51
+
52
+ #ifdef MLX_BUILD
53
+ #define MLX_API MLX_EXPORT
54
+ #else
55
+ #define MLX_API MLX_IMPORT
56
+ #endif
57
+
44
58
// Checking common assumptions
45
59
#include < climits>
46
60
#include < cstdint>
Original file line number Diff line number Diff line change 6
6
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
7
7
/* +#+#+#+#+#+ +#+ */
8
8
/* Created: 2022/10/05 16:27:35 by maldavid #+# #+# */
9
- /* Updated: 2023/12/08 12:14:39 by kbz_8 ### ########.fr */
9
+ /* Updated: 2023/12/08 18:54:03 by kbz_8 ### ########.fr */
10
10
/* */
11
11
/* ************************************************************************** */
12
12
18
18
#include < SDL2/SDL.h>
19
19
#include < unordered_map>
20
20
21
+ #include < core/profile.h>
22
+
21
23
#include " window.h"
22
24
23
25
namespace mlx
@@ -30,7 +32,7 @@ namespace mlx
30
32
void * param = nullptr ;
31
33
};
32
34
33
- class Input
35
+ class MLX_API Input
34
36
{
35
37
public:
36
38
Input ();
Original file line number Diff line number Diff line change 6
6
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
7
7
/* +#+#+#+#+#+ +#+ */
8
8
/* Created: 2022/10/08 19:16:32 by maldavid #+# #+# */
9
- /* Updated: 2023/11/20 07:20:43 by maldavid ### ########.fr */
9
+ /* Updated: 2023/12/08 18:53:36 by kbz_8 ### ########.fr */
10
10
/* */
11
11
/* ************************************************************************** */
12
12
24
24
25
25
#include < utils/singleton.h>
26
26
#include < core/errors.h>
27
+ #include < core/profile.h>
27
28
28
29
namespace mlx
29
30
{
@@ -42,7 +43,7 @@ namespace mlx
42
43
43
44
constexpr const int MAX_FRAMES_IN_FLIGHT = 3 ;
44
45
45
- class Render_Core : public Singleton <Render_Core>
46
+ class MLX_API Render_Core : public Singleton<Render_Core>
46
47
{
47
48
public:
48
49
Render_Core () = default ;
You can’t perform that action at this time.
0 commit comments