Skip to content

Commit 759d2af

Browse files
authored
Merge branch 'master' into master
2 parents d120f07 + 0333184 commit 759d2af

File tree

4 files changed

+4
-28
lines changed

4 files changed

+4
-28
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ LIBS = -L$(FT_DIR) -lft \
7676
-L$(JTOC_DIR) -ljtoc
7777

7878
CC = gcc
79-
CFLAGS = -O3 -Wall -Wextra -Werror -D APPLE___
79+
80+
CFLAGS = -Wall -Wextra -Werror -O3
8081

8182
all: $(NAME)
8283

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Raycast engine
1+
# Wolf3D
22

3-
[Download demo for windows](https://github.com/dolovnyak/raycast-engine/raw/master/raycast_demo.zip)
3+
[Download demo for windows](https://github.com/GodFlight/Wolf3D/raw/master/raycast_demo.zip)
44
###
55

66
![Image alt](https://github.com/GodFlight/Wolf3D/raw/master/image/1.png)

src/main.c

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# define STB_IMAGE_IMPLEMENTATION
22
#include "raycast.h"
33

4-
#ifdef APPLE___
54
int main()
65
{
76
t_conf_json conf;
@@ -19,22 +18,3 @@ int main()
1918
main_loop(m);
2019
return (0);
2120
}
22-
#else
23-
int SDL_main(int argc, char *argv[])
24-
{
25-
t_conf_json conf;
26-
t_rc_main *m;
27-
SDL_Thread *thread;
28-
29-
m = rc_main_init();
30-
if (rc_jtoc_main_from_json(m, "./json/config.json", &conf))
31-
exit(0);
32-
m->sdl->mutex = SDL_CreateMutex();
33-
thread = SDL_CreateThread(draw_loop, "draw_loop", (void *)m);
34-
SDL_DetachThread(thread);
35-
thread = SDL_CreateThread(physic_loop, "physic_loop", (void *)m);
36-
SDL_DetachThread(thread);
37-
main_loop(m);
38-
return (0);
39-
}
40-
#endif

src/rc_jtoc/rc_jtoc_win_from_json.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,9 @@
1414

1515
static int win_from_json_helper(t_rc_main *m, t_sdl *sdl)
1616
{
17-
#ifdef APPLE___
1817
if (!(sdl->win = SDL_CreateWindow("Wolf3D", SDL_WINDOWPOS_CENTERED,
1918
SDL_WINDOWPOS_CENTERED, sdl->win_w, sdl->win_h,
2019
SDL_WINDOW_RESIZABLE)))
21-
#else
22-
if (!(sdl->win = SDL_CreateWindow("Wolf3D", 0, 0, sdl->win_w, sdl->win_h,
23-
SDL_WINDOW_FULLSCREEN)))
24-
#endif
2520
return (rc_jtoc_sdl_log_error("CREATE WINDOW ERROR", -1));
2621
if (!(sdl->renderer = SDL_CreateRenderer(sdl->win, -1, 0)))
2722
return (rc_jtoc_sdl_log_error("CREATE WINDOW RENDERER ERROR", -1));

0 commit comments

Comments
 (0)