Copy3DEngine/include/C3D/moteur.h
2024-10-09 00:18:31 +02:00

36 lines
723 B
C

// Voir README.md pour license précise, par Fcalva 2023-2024 et est sous GPLv3
#ifndef moteur_h
#define moteur_h
#include <libprof.h>
#include <gint/display.h>
#include "fixed.h"
#include "game.h"
#include "config.h"
typedef struct {
prof_t raycast_time;
prof_t draw_time;
} EngineTimers;
int get_pixel(bopti_image_t const *tex, int u, int v);
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);
void load_map();
void draw_walls(
#if debug
EngineTimers *timers,
#endif
RcGame *game
);
void move(RcGame *game);
#endif /* moteur */