Cub3D
 
Loading...
Searching...
No Matches
hitside.c File Reference
#include "data_structure.h"
Include dependency graph for hitside.c:

Functions

t_imghitside_texture (t_textures *tex, int hitside, const t_pos2 *step)
 Function to select the texture based on the hit side and step direction.
 

Function Documentation

◆ hitside_texture()

t_img * hitside_texture ( t_textures * tex,
int hitside,
const t_pos2 * step )

Function to select the texture based on the hit side and step direction.

Parameters
[in]texpointer to texture structure
[in]hitsidehitside
[in]stepstep direction