Trace Engine
A Raycaster Engine in C
Loading...
Searching...
No Matches
render.h
Go to the documentation of this file.
1
#ifndef _H_RENDER
2
#define _H_RENDER
3
4
#include "
trc_world_position.h
"
5
#include "
map.h
"
6
10
typedef
struct
{
11
int
index
;
12
trc_world_position_t
pos
;
13
float
angle
;
14
float
distance
;
15
structures_t
surface
;
16
float
wall_orientation
;
17
}
ray_t
;
18
24
void
render_line
(
const
ray_t
ray);
25
26
#endif
map.h
structures_t
structures_t
Definition
map.h:22
render_line
void render_line(const ray_t ray)
Definition
render.c:26
ray_t
Definition
render.h:10
ray_t::pos
trc_world_position_t pos
Definition
render.h:12
ray_t::index
int index
Definition
render.h:11
ray_t::wall_orientation
float wall_orientation
Definition
render.h:16
ray_t::surface
structures_t surface
Definition
render.h:15
ray_t::distance
float distance
Definition
render.h:14
ray_t::angle
float angle
Definition
render.h:13
trc_world_position_t
Definition
trc_world_position.h:7
trc_world_position.h
engine
inc
render.h
Generated by
1.9.8