Copy3DEngine/src/moteur.h

48 lines
863 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-09-01 16:38:23 +02:00
//param. graphiques
2024-09-07 11:42:56 +02:00
#define screen_w 128
#define screen_h 64
#define viewport_w 128
#define viewport_h 64
#define max_dist fix(32)
2024-09-01 16:38:23 +02:00
2024-09-07 11:42:56 +02:00
#define TSIZE 32
#define TINDEX_S 16
2024-09-01 16:38:23 +02:00
#define debug 0 //pour afficher les infos de debug
#define asm_opti 0
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 end_screen();
void draw_walls(
#if debug
EngineTimers *timers
#endif
);
void move();
#endif /* moteur */