
fix: - fix texture for each direction (north texture is in north etc) - fix mirror textures (the left of each texture is at its left) - fix dimensions (walls are 1x1 for any window dimensions or FOV) - optimize render() dev: - add testmaps/good_directions_test.cub - add textures/test/*.xpm
28 lines
1.2 KiB
C
28 lines
1.2 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* render.h :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: mcolonna <mcolonna@student.42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2024/10/31 17:13:20 by mc #+# #+# */
|
|
/* Updated: 2024/11/12 12:24:02 by mcolonna ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#ifndef RENDER_H
|
|
# define RENDER_H
|
|
|
|
# include "include.h"
|
|
|
|
# include "utils.h"
|
|
# include "const.h"
|
|
# include "global.h"
|
|
|
|
/// @brief Draw the camera image using raycasting.
|
|
///
|
|
/// @param img_data Data addr of the image to draw on.
|
|
/// @return Unused.
|
|
int render(u_int32_t *img_data);
|
|
|
|
#endif
|