Line |
Branch |
Exec |
Source |
1 |
|
|
/* |
2 |
|
|
* Filename: windows_manager.c |
3 |
|
|
* Path: sources/System |
4 |
|
|
* Created Date: Friday, March 10th 2023, 6:57:13 pm |
5 |
|
|
* Author: Thomas |
6 |
|
|
* |
7 |
|
|
* Copyright (c) 2023 our_rpg |
8 |
|
|
*/ |
9 |
|
|
|
10 |
|
|
#include "components.h" |
11 |
|
|
#include "raylib.h" |
12 |
|
|
#include "systems.h" |
13 |
|
|
#include "world.h" |
14 |
|
|
|
15 |
|
✗ |
int system_windows_manager_constructor(system_t *system) |
16 |
|
|
{ |
17 |
|
✗ |
system->type = S_WINDOW_MANAGER; |
18 |
|
✗ |
system->run = &system_windows_manager; |
19 |
|
✗ |
system->active = true; |
20 |
|
✗ |
return 0; |
21 |
|
|
} |
22 |
|
|
|
23 |
|
✗ |
int system_windows_manager(void *ptr) |
24 |
|
|
{ |
25 |
|
✗ |
if (WindowShouldClose()) |
26 |
|
✗ |
return -1; |
27 |
|
|
return 0; |
28 |
|
|
} |
29 |
|
|
|