Cub3D
 
Loading...
Searching...
No Matches
render_more.c File Reference
#include "cub3d_render.h"
#include <math.h>
Include dependency graph for render_more.c:

Functions

void raycalc (const t_pos2 win_size, int x, float cam_angle, t_raydata *rdata)
 Function to calculate rays using window size and camera angle.
 

Function Documentation

◆ raycalc()

void raycalc ( const t_pos2 win_size,
int x,
float cam_angle,
t_raydata * rdata )

Function to calculate rays using window size and camera angle.

Parameters
[in]win_sizewindow size
[in]xx axis column
[in]cam_anglecamera angle
[in,out]rdatastructure to handle important values for rendering
Here is the call graph for this function: