|
Trace Engine
A Raycaster Engine in C
|
Macros | |
| #define | TEXTURE_FILE_PATH "engine/data/structures.ted" |
| #define | READ_MODE "r" |
| #define | TEXTURES_ARR_SIZE (TEXTURE_SIZE * TEXTURE_SIZE * TEXTURE_COUNT) |
Functions | |
| void | load_textures (void) |
| int | get_texture_size (void) |
| rgb_t | get_texture_pixel (const structures_t structure, const trc_world_position_t pixel_pos) |
| rgb_t | apply_shade (const rgb_t original_pixel, const float shade) |
Variables | |
| rgb_t | ALL_TEXTURES [TEXTURES_ARR_SIZE] |
| #define READ_MODE "r" |
| #define TEXTURE_FILE_PATH "engine/data/structures.ted" |
| #define TEXTURES_ARR_SIZE (TEXTURE_SIZE * TEXTURE_SIZE * TEXTURE_COUNT) |
Given an RGB and a shade, returns the same pixel but modified with the shade
| rgb_t get_texture_pixel | ( | const structures_t | structure, |
| const trc_world_position_t | pixel_pos | ||
| ) |
Given an structure and a texture position, it returns the RGB info of the pixel in that position
| int get_texture_size | ( | void | ) |
Returns the size of the textures being used
| void load_textures | ( | void | ) |
Loads the textures into engine structures (for faster performance)
| rgb_t ALL_TEXTURES[TEXTURES_ARR_SIZE] |