RT
includes
t_gui.h
Go to the documentation of this file.
1
/* ************************************************************************** */
2
/* */
3
/* ::: :::::::: */
4
/* t_gui.h :+: :+: :+: */
5
/* +:+ +:+ +:+ */
6
/* By: nihuynh <nihuynh@student.42.fr> +#+ +:+ +#+ */
7
/* +#+#+#+#+#+ +#+ */
8
/* Created: 2019/06/03 00:05:12 by nihuynh #+# #+# */
9
/* Updated: 2019/07/17 16:36:42 by nihuynh ### ########.fr */
10
/* */
11
/* ************************************************************************** */
12
13
#ifndef T_GUI_H
14
# define T_GUI_H
15
16
# include <SDL.h>
17
# include "
t_data.h
"
18
# include "
animate.h
"
19
# include "
t_cluster.h
"
20
21
typedef
struct
s_gui
22
{
23
struct
s_data
*
app
;
24
t_sdl
*
sdl
;
25
uint32_t
texture_id
;
26
SDL_GLContext
gl_context
;
27
int
flags_render
;
28
char
err_msg
[50];
29
bool
err_open
;
30
bool
load_open
;
31
bool
export_open
;
32
bool
stats_open
;
33
bool
edit_open
;
34
bool
del_obj_open
;
35
bool
del_light_open
;
36
bool
add_obj_open
;
37
int
add_obj_type
;
38
bool
demo_open
;
39
bool
render_set_open
;
40
bool
add_cluster_open
;
41
bool
keymap_open
;
42
bool
about_open
;
43
t_texture
keymap
;
44
uint32_t
keymap_id
;
45
t_cam
cam_cpy
;
46
bool
render_focused
;
47
bool
animate
;
48
bool
record
;
49
int
frame_limit
;
50
long
frames_render_time
;
51
int
animated_frames
;
52
t_cluster
cluster
;
53
t_light
*
light_set
;
54
t_obj
*
obj_set
;
55
t_material
mat_set
;
56
t_anim
*
anim_set
;
57
t_list *
lst_anim_set
;
58
t_list **
alst
;
59
t_pt3
pos_render
;
60
}
t_gui
;
61
62
void
exit_ui
(
t_gui
*
gui
);
63
#endif
s_cam
Definition:
rtstruct.h:130
s_sdl
Definition:
libui.h:43
s_gui::gl_context
SDL_GLContext gl_context
Definition:
t_gui.h:26
s_vec3
Definition:
rtstruct.h:30
s_gui::alst
t_list ** alst
Definition:
t_gui.h:58
s_gui::mat_set
t_material mat_set
Definition:
t_gui.h:55
s_gui::animate
bool animate
Definition:
t_gui.h:47
s_gui::frame_limit
int frame_limit
Definition:
t_gui.h:49
s_data::gui
t_gui gui
Definition:
t_data.h:34
s_gui::obj_set
t_obj * obj_set
Definition:
t_gui.h:54
s_gui::stats_open
bool stats_open
Definition:
t_gui.h:32
s_gui::err_msg
char err_msg[50]
Definition:
t_gui.h:28
s_material
Definition:
rtstruct.h:189
s_gui::record
bool record
Definition:
t_gui.h:48
s_gui::del_light_open
bool del_light_open
Definition:
t_gui.h:35
s_gui::pos_render
t_pt3 pos_render
Definition:
t_gui.h:59
s_obj
Definition:
rtstruct.h:245
s_gui::err_open
bool err_open
Definition:
t_gui.h:29
s_texture
Definition:
rtstruct.h:166
s_gui::add_obj_type
int add_obj_type
Definition:
t_gui.h:37
s_gui::keymap
t_texture keymap
Definition:
t_gui.h:43
s_gui::light_set
t_light * light_set
Definition:
t_gui.h:53
s_gui::cam_cpy
t_cam cam_cpy
Definition:
t_gui.h:45
s_gui::flags_render
int flags_render
Definition:
t_gui.h:27
exit_ui
void exit_ui(t_gui *gui)
Definition:
interface.c:70
t_cluster.h
s_gui::demo_open
bool demo_open
Definition:
t_gui.h:38
s_cluster
Definition:
t_cluster.h:18
animate.h
s_data
Definition:
t_data.h:24
s_gui::sdl
t_sdl * sdl
Definition:
t_gui.h:24
s_gui::keymap_open
bool keymap_open
Definition:
t_gui.h:41
s_gui::load_open
bool load_open
Definition:
t_gui.h:30
s_gui::add_obj_open
bool add_obj_open
Definition:
t_gui.h:36
t_gui
struct s_gui t_gui
s_gui::del_obj_open
bool del_obj_open
Definition:
t_gui.h:34
s_gui::render_set_open
bool render_set_open
Definition:
t_gui.h:39
s_gui::app
struct s_data * app
Definition:
t_gui.h:23
s_gui::cluster
t_cluster cluster
Definition:
t_gui.h:52
s_gui
Definition:
t_gui.h:21
s_gui::about_open
bool about_open
Definition:
t_gui.h:42
s_gui::edit_open
bool edit_open
Definition:
t_gui.h:33
s_anim
Definition:
animate.h:20
s_gui::add_cluster_open
bool add_cluster_open
Definition:
t_gui.h:40
s_gui::lst_anim_set
t_list * lst_anim_set
Definition:
t_gui.h:57
s_gui::animated_frames
int animated_frames
Definition:
t_gui.h:51
s_gui::frames_render_time
long frames_render_time
Definition:
t_gui.h:50
t_data.h
s_gui::anim_set
t_anim * anim_set
Definition:
t_gui.h:56
s_gui::export_open
bool export_open
Definition:
t_gui.h:31
s_gui::render_focused
bool render_focused
Definition:
t_gui.h:46
s_gui::texture_id
uint32_t texture_id
Definition:
t_gui.h:25
s_gui::keymap_id
uint32_t keymap_id
Definition:
t_gui.h:44
s_light
Definition:
rtstruct.h:121
Generated by
1.8.17