RT
Data Structures | Typedefs | Functions
t_data.h File Reference
#include "option.h"
#include "rtstruct.h"
#include "t_scene.h"
#include "ftlist.h"
#include "libui.h"
#include "t_gui.h"
#include "t_settings.h"
Include dependency graph for t_data.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  s_data
 

Typedefs

typedef struct s_data t_data
 

Functions

int process_pixel (int x, int y, void *arg)
 
void prep_render (t_sdl *sdl)
 
t_objfind_obj_at_pixel (t_data *app, int x, int y)
 
void interface (t_data *app)
 
t_dataget_app (t_data *app)
 
void free_app (t_data *app)
 
void hook_sdl (t_data *app)
 
void init_textures (t_data *app)
 
void parse_material_csv (t_data *app, char *csv_file)
 
void get_scenes (t_data *app)
 
int reader (char *str, t_data *app)
 : Top function to organise the parsing More...
 
void load_scene (t_data *app, char *filename)
 
void free_scene (t_data *app)
 
void free_lst (t_data *data)
 
void export_animation (int fd, t_data *app)
 
void record_frame (t_data *app)
 

Typedef Documentation

◆ t_data

typedef struct s_data t_data

Function Documentation

◆ export_animation()

void export_animation ( int  fd,
t_data app 
)

◆ find_obj_at_pixel()

t_obj* find_obj_at_pixel ( t_data app,
int  x,
int  y 
)

◆ free_app()

void free_app ( t_data app)

◆ free_lst()

void free_lst ( t_data data)

◆ free_scene()

void free_scene ( t_data app)

◆ get_app()

t_data* get_app ( t_data app)

◆ get_scenes()

void get_scenes ( t_data app)

◆ hook_sdl()

void hook_sdl ( t_data app)

◆ init_textures()

void init_textures ( t_data app)

◆ interface()

void interface ( t_data app)

◆ load_scene()

void load_scene ( t_data app,
char *  filename 
)

◆ parse_material_csv()

void parse_material_csv ( t_data app,
char *  csv_file 
)

◆ prep_render()

void prep_render ( t_sdl sdl)

◆ process_pixel()

int process_pixel ( int  x,
int  y,
void *  arg 
)

◆ reader()

int reader ( char *  filename,
t_data app 
)

: Top function to organise the parsing

Parameters
filename: file to parse
app: link to the data
Returns
int : status of the function

◆ record_frame()

void record_frame ( t_data app)