Copy3DEngine/src/moteur.h

35 lines
667 B
C
Raw Normal View History

2024-09-01 16:38:23 +02:00
// Voir README.md pour license précise, par Fcalva 2023-2024 et est sous GPLv3
#ifndef moteur_h
#define moteur_h
2024-09-07 11:42:56 +02:00
#include <libprof.h>
#include <gint/display.h>
#include "fixed.h"
2024-10-05 00:56:13 +02:00
#include "game.h"
#include "config.h"
2024-09-01 16:38:23 +02:00
typedef struct {
prof_t raycast_time;
prof_t draw_time;
} EngineTimers;
void dscale_bopti(bopti_image_t *tex, fixed_t scale_x, fixed_t scale_y,
int x, int y);
void draw_stripe(bopti_image_t *tex, int texSampleY, int linePos,
fixed_t texSize, int texX, int x);
2024-09-01 16:38:23 +02:00
void load_map();
void draw_walls(
#if debug
2024-10-05 00:56:13 +02:00
EngineTimers *timers,
2024-09-01 16:38:23 +02:00
#endif
2024-10-05 00:56:13 +02:00
RcGame *game
2024-09-01 16:38:23 +02:00
);
2024-10-05 00:56:13 +02:00
void move(RcGame *game);
2024-09-01 16:38:23 +02:00
#endif /* moteur */