|
Untitled
|
All of the required structures for the Editor system. More...
Data Structures | |
| struct | EditorSettings |
| Editor settings and engine global variables that can be changed through the editor. More... | |
| struct | ComboLabel |
| The structure used for some dropdown abstractions in the Editor UI. More... | |
| struct | MainEditorMenu |
| struct | LightEditorMenu |
| struct | LProbeEditorMenu |
| struct | AProbeEditorMenu |
| struct | UIElementEditorMenu |
| struct | AssetInstanceEditorMenu |
| struct | MeshNodeEditorMenu |
| struct | TextBoxEditorMenu |
| struct | UndoStructure |
| struct | Undo |
| struct | NKSlider |
Macros | |
| #define | MAX_GLTF_NAMES 256 |
| #define | MAX_RPROBE_NAMES 256 |
| #define | MAX_UNDO_BYTES 50000 |
| #define | MAX_UNDOS 256 |
| #define | CAST_SPECIAL(type, special) |
Functions | |
| void | change_fullscreen_option (FullscreenOptions option) |
| void | change_render_resolution () |
| void | change_ssao_res (int w, int h) |
| void | change_dof_res (int w, int h) |
| void | change_bloom_res (int w, int h) |
| void | UNDO_INIT () |
| Initializes Undos inside of UNDOS to free state. | |
| void | clear_special_undo_bytes (Undo *undo) |
| void | clear_undo (Undo *undo) |
| void | destroy_undo (Undo *undo) |
| Undo * | find_last_undo () |
| Undo * | find_empty_undo () |
| void | link_undo (Undo *undo) |
| void | check_stack_size () |
| void | perform_newest_undo () |
| Performs top-most Undo and moves the top-most pointer to the previous. | |
| void | perform_newest_redo () |
| Performs top-most Redo (Undo->next) and moves pointers upward. | |
| void | destroy_redo_history () |
| void | push_nk_slider_undo (NKSlider *s, UndoStructure structure, size_t byte_offset) |
| void | push_raw_bytes_undo (void *bytes, size_t byte_size, UndoStructure structure, size_t byte_offset) |
| void | push_special_undo (UndoStructure structure, uint8_t **bytes, size_t total_byte_size, size_t bytes_count, size_t byte_offset) |
| void | push_special_undo_normal_bytes (UndoStructure structure, void *bytes, size_t byte_size, size_t byte_offset) |
| UndoStructure | create_undo_structure (UndoStructureType type, int id[8], UndoSpecial special) |
| UndoStructure | create_singular_id_undo_structure (UndoStructureType type, int id, UndoSpecial special) |
| UndoStructure | create_light_undo_structure (int id, UndoSpecial special) |
| void | copy_special_undo (Undo *undo, uint8_t ***special_bytes, int ids[8]) |
| void | execute_non_special_undo (Undo *undo, uint8_t *p) |
| void | execute_light_undo (Undo *undo) |
| void | execute_globals_undo (Undo *undo) |
| UndoStructure | create_editor_settings_undo_structure (UndoSpecial special) |
| void | execute_editor_settings_undo (Undo *undo) |
| UndoStructure | create_rprobe_undo_structure (int id, UndoSpecial special) |
| void | execute_rprobe_undo (Undo *undo) |
| void | execute_lprobe_undo (Undo *undo) |
| void | execute_aprobe_undo (Undo *undo) |
| void | execute_aemitter_undo (Undo *undo) |
| void | execute_aportal_undo (Undo *undo) |
| void | execute_ui_menu_undo (Undo *undo) |
| void | execute_ui_element_undo (Undo *undo) |
| void | execute_ui_container_undo (Undo *undo) |
| void | execute_text_box_undo (Undo *undo) |
| void | execute_asset_instance_undo (Undo *undo) |
| void | execute_mesh_node_undo (Undo *undo) |
| void | execute_undo (Undo *undo) |
| Performs an Undo (switch-case into each UndoStructureType). | |
| void | store_into_nkslider (NKSlider *s, void *bytes, size_t byte_size) |
| void | toggle_performance_overlay () |
| Toggles the performance overlay menu: PERFORMANCE_OVERLAY_MENU. | |
| void | update_performance_overlay (GLuint64 query_s[PQUERY_MAX]) |
| Fills performance overlay with text based on current GPU profiling information. | |
| void | create_performance_overlay () |
| Allocates and initializes position of the TextBoxes for the performance overlay. | |
| bool | nk_check_equivalency (void *a, void *b, size_t byte_size, NKSlider *s, bool *dirty) |
| bool | check_equivalencyv3 (vec3 *a, vec3 b, NKSlider *s, bool *dirty) |
| bool | check_equivalencyv4 (vec4 *a, vec4 b, NKSlider *s, bool *dirty) |
| bool | check_equivalencyf (float *a, float b, NKSlider *s, bool *dirty) |
| bool | check_equivalencyi (int *a, int b, NKSlider *s, bool *dirty) |
| void | FILE_DIR_REGISTRY_INIT () |
| Initializes each FileDirectoryRegistry based on initial paths. | |
| void | load_filenames (FileDirectoryRegistry *registry) |
| void | load_rprobe_filenames (const char *folder_path) |
| void | load_gltf_filenames (const char *folder_path) |
| void | render_entity_menu () |
| void | render_file_directory_dropdown (FileDirectoryRegistry *registry) |
| void | render_dropdown_labels (int *selected, char **options, int option_count) |
| void | render_dropdown (const char *dropdown_name, int *selected, char **options, int option_count, int x, int y) |
| mat3 | mat3_rotation_x (float angle_radians) |
| mat3 | mat3_rotation_y (float angle_radians) |
| mat3 | mat3_rotation_z (float angle_radians) |
| void | obb_orthonormalize (OBB *obb) |
| void | render_ivec3_widget (const char *name, UndoStructureType undo_type, int id, ivec3 *vec, NKSlider *sliders) |
| void | render_pos_widget (const char *name, UndoStructureType undo_type, int id, vec3 *pos, NKSlider *sliders) |
| void | render_aabb_widget (const char *name, AABB *aabb) |
| void | render_mat4_widget (const char *name, UndoStructureType undo_type, int id, mat4 *mat, vec3 *tr, vec4 *rot, vec3 *sc, NKSlider *sliders) |
| void | render_obb_widget (const char *name, UndoStructureType undo_type, int id, OBB *obb, NKSlider *sliders) |
| void | render_selection_menu () |
| void | render_text_menu () |
| void | render_ui_menu () |
| void | render_audio_menu () |
| void | render_lprobe_menu () |
| void | render_main_menu () |
| void | render_mn_menu () |
| void | render_material_menu () |
| void | render_light_menu () |
| void | render_asset_instance_menu () |
| void | render_editor_menu () |
| Renders the editor menus. | |
FileDirectoryRegistries | |
All of the registries used for parsing working directories. | |
| FileDirectoryRegistry | lightmap_registry |
| FileDirectoryRegistry | light_registry |
| FileDirectoryRegistry | sound_registry |
| FileDirectoryRegistry | aportal_registry |
| FileDirectoryRegistry | rprobe_registry |
| FileDirectoryRegistry | lprobe_registry |
| FileDirectoryRegistry | aprobe_registry |
| FileDirectoryRegistry | scene_apv_registry |
| FileDirectoryRegistry | ui_registry |
Editor Wireframe Sizes | |
Sizes of wireframes for various engine structures. | |
| #define | EDITOR_LIGHT_SIZE 0.5f |
| #define | EDITOR_RPROBE_SIZE 0.5f |
| #define | EDITOR_AUDIO_EMITTER_SIZE 0.5f |
| #define | EDITOR_APROBE_SIZE 0.1f |
| #define | EDITOR_APORTAL_SIZE 0.2f |
All of the required structures for the Editor system.
The structures, functions, constants, and variables within the editor system.
All of these track slider states in the editor UI so that Undos with current values can be pushed when sliders start.
| struct EditorSettings |
Editor settings and engine global variables that can be changed through the editor.
Also houses flags and indices for the editor UI.
Definition at line 668 of file engine_types.h.
| Data Fields | ||
|---|---|---|
| DebugView | current_debug_view | |
| PostprocessDView | pp_dview | |
| bool | editor_menu_open | |
| bool | editor_mode | |
| bool | mesh_node_menu_open | |
| bool | material_menu_open | |
| bool | light_menu_open | |
| bool | main_menu_open | |
| bool | entity_menu_open | |
| bool | text_menu_open | |
| bool | audio_menu_open | |
| bool | selection_menu_open | |
| bool | lprobe_menu_open | |
| bool | ui_menu_open | |
| bool | asset_instance_menu_open | |
| bool | opening_menu | |
| SelectionMode | SELMODE | |
| bool | element_drag_mode | |
| bool | text_box_drag_mode | |
| bool | SSAO | |
| bool | SSR | |
| bool | DOF | |
| bool | MBLUR | |
| bool | TAA | |
| bool | BLOOM | |
| bool | MSAA | |
| bool | VSYNC | |
| bool | NOISE | |
| bool | LUT | |
| bool | ACES | |
| bool | UI | |
| bool | FULL_GBUFFER | |
| bool | dof_expanded | |
| float | DOF_fstop | |
| float | DOF_focal_length | |
| float | DOF_sensor_height | |
| float | DOF_max_blur_radius | |
| bool | wireframe_toggled | Shows wireframes around many structures: Lights, ReflectionProbes, AudioProbes, AudioPortals, AABBs, etc. |
| int | res_width |
Tracks rendering dimensions in editor menu.
|
| int | res_height | |
| int | selected_material_mn_id | |
| int | selected_sm_id | |
| int | selected_gltf_file_id | |
| int | selected_rprobe_file_id | |
| int | selected_asset_id | |
| int | selected_light_id | |
| int | selected_mn_id | |
| int | selected_ent_id | |
| int | selected_text_id | |
| int | selected_audio_emitter_id | |
| int | selected_audio_portal_id | |
| int | selected_audio_probe_volume_id | |
| int | selected_lighting_probe_volume_id | |
| int | selected_fullscreen_option | |
| int | current_fullscreen_option | |
| int | selected_ui_element_id | |
| int | selected_ui_menu_id | |
| int | selected_ui_action_id | |
| int | selected_ui_hover_id | |
| int | selected_asset_instance_id | |
| int | selected_asset_instance_mn_id | |
| int | selected_r_probe | |
| vec3 | rotation_axis | The rotation axis for rotation operations in the editor. |
| float | rotation_angle | The current angle for rotation operations in the editor. |
| bool | audio_probe_volume_overlay | |
| bool | lighting_probe_volume_overlay | |
| int | lm_iterations | The amount of iterations to bake a lightmap. |
| int | probe_iterations | The amount of iterations to bake each probe. |
| float | texels_per_uv_unit | Controls the texel density of the uv lightmapper. |
| float | ao_threshold | Controls the distance threshold for AO detection. |
| int | ao_iterations | Controls how many iterations per lightmap iteration perform the AO check. |
| bool | mfactor_enabled | Controls how many iterations per lightmap iteration perform the AO check. |
| float | mfactor | Controls how many iterations per lightmap iteration perform the AO check. |
| int | audio_probe_iterations | The amount of iterations (sample rays) to bake per AudioProbe. |
| int | audio_probe_bounces | The amount of bounces to accept per AudioProbe iteration. |
| float | render_framerate_target | The target framerate for rendering and processing ui events (a cap). |
| float | reverb_wet | Controls the volume of the reverb signal. |
| float | volume | Controls the engine volume. |
| float | obb_axis_x_angle | |
| float | obb_axis_y_angle | |
| float | obb_axis_z_angle | |
| AABB | lm_aabb | The AABB that sizes the current lightmap in world space. |
| size_t | undo_stack_max_byte_size | The maximum memory value for the Undo stack. |
| struct ComboLabel |
The structure used for some dropdown abstractions in the Editor UI.
Definition at line 1550 of file engine_types.h.
| Data Fields | ||
|---|---|---|
| char | buffer[600][256] | |
| const char * | ptrs[600] | |
| int | selected | |
| int | item_to_id[600] | |
| int | item_count | |
| struct MainEditorMenu |
| struct LightEditorMenu |
Definition at line 3222 of file engine_types.h.
| Data Fields | ||
|---|---|---|
| NKSlider | color_r | |
| NKSlider | color_g | |
| NKSlider | color_b | |
| NKSlider | x | |
| NKSlider | y | |
| NKSlider | z | |
| NKSlider | rx | |
| NKSlider | ry | |
| NKSlider | rz | |
| NKSlider | intensity | |
| NKSlider | threshold | |
| NKSlider | cone_angle | |
| NKSlider | penumbra | |
| NKSlider | light_type | |
| NKSlider | mfactor | |
| NKSlider | mfactor_enabled | |
| NKSlider | texels_per_unit | |
| NKSlider | lm_iterations | |
| NKSlider | probe_iterations | |
| NKSlider | ao_iterations | |
| NKSlider | ao_threshold | |
| NKSlider | lm_aabbx | |
| NKSlider | lm_aabby | |
| NKSlider | lm_aabbz | |
| NKSlider | aabbe_x | |
| NKSlider | aabbe_y | |
| NKSlider | aabbe_z | |
| NKSlider | rp_aabbx | |
| NKSlider | rp_aabby | |
| NKSlider | rp_aabbz | |
| NKSlider | rp_aabbe_x | |
| NKSlider | rp_aabbe_y | |
| NKSlider | rp_aabbe_z | |
| NKSlider | rp_fade_x | |
| NKSlider | rp_fade_y | |
| NKSlider | rp_fade_z | |
| NKSlider | rp_capposx | |
| NKSlider | rp_capposy | |
| NKSlider | rp_capposz | |
| NKSlider | center_pos | |
| struct LProbeEditorMenu |
Definition at line 3284 of file engine_types.h.
| Data Fields | ||
|---|---|---|
| NKSlider | OBB_sliders[9] | |
| struct AProbeEditorMenu |
| struct UIElementEditorMenu |
Definition at line 3311 of file engine_types.h.
| Data Fields | ||
|---|---|---|
| NKSlider | x | |
| NKSlider | y | |
| NKSlider | z | |
| NKSlider | sx | |
| NKSlider | sy | |
| NKSlider | radius | |
| NKSlider | angle | |
| NKSlider | sizex | |
| NKSlider | sizey | |
| NKSlider | layer | |
| NKSlider | color | |
| NKSlider | fill | |
| NKSlider | shadow_dist | |
| NKSlider | shadow_dirx | |
| NKSlider | shadow_diry | |
| NKSlider | cpadl | |
| NKSlider | cpadr | |
| NKSlider | cpadu | |
| NKSlider | cpadd | |
| NKSlider | cpad | |
| NKSlider | cscrollx | |
| NKSlider | cscrolly | |
| NKSlider | sliderx | |
| NKSlider | slidery | |
| NKSlider | slidermin | |
| NKSlider | slidermax | |
| NKSlider | sliderlen | |
| NKSlider | sliderscrollscale | |
| struct AssetInstanceEditorMenu |
Definition at line 3358 of file engine_types.h.
| Data Fields | ||
|---|---|---|
| NKSlider | model[10] | |
| struct MeshNodeEditorMenu |
Definition at line 3365 of file engine_types.h.
| Data Fields | ||
|---|---|---|
| NKSlider | model[10] | |
| struct TextBoxEditorMenu |
| struct UndoStructure |
| Data Fields | ||
|---|---|---|
| UndoStructureType | type | |
| UndoSpecial | special | |
| int | ids[8] | |
| struct Undo |
| Data Fields | ||
|---|---|---|
| bool | free | |
| size_t | special_count | |
| size_t | byte_size | |
| size_t | byte_offset | |
| uint32_t | id | |
| Undo * | prev | |
| Undo * | next | |
| uint8_t ** | special_bytes | |
| UndoStructure | structure | |
| uint8_t | bytes[50000] | |
| struct NKSlider |
| #define EDITOR_LIGHT_SIZE 0.5f |
Definition at line 140 of file engine_types.h.
Referenced by render().
| #define EDITOR_RPROBE_SIZE 0.5f |
Definition at line 142 of file engine_types.h.
| #define EDITOR_AUDIO_EMITTER_SIZE 0.5f |
Definition at line 144 of file engine_types.h.
Referenced by render().
| #define EDITOR_APROBE_SIZE 0.1f |
Definition at line 146 of file engine_types.h.
Referenced by render_probe_volume().
| #define EDITOR_APORTAL_SIZE 0.2f |
Definition at line 148 of file engine_types.h.
Referenced by process_sdl_event(), and render().
| #define MAX_UNDO_BYTES 50000 |
Definition at line 95 of file types.h.
Referenced by execute_non_special_undo().
| #define MAX_UNDOS 256 |
Definition at line 96 of file types.h.
Referenced by find_empty_undo(), and UNDO_INIT().
| #define CAST_SPECIAL | ( | type, | |
| special ) |
| enum UndoStructureType |
| enum UndoValue |
| enum UndoSpecial |
| void change_fullscreen_option | ( | FullscreenOptions | option | ) |
Definition at line 64 of file editor.c.
References change_fullscreen_option(), EditorSettings::current_fullscreen_option, EDITOR_SETTINGS, FSOPT_BORDERLESS, FSOPT_FULLSCREEN, FSOPT_WINDOWED, SCREEN_HEIGHT, SCREEN_WIDTH, and window.
Referenced by change_fullscreen_option(), execute_editor_settings_undo(), and render_main_menu().
| void change_render_resolution | ( | ) |
Definition at line 94 of file editor.c.
References allocate_gbuffer_msaa(), allocate_main_fbo(), change_fbo_resolution(), change_render_resolution(), DEPTH_DOWNSAMPLE_FBO, Framebuffer::depth_rbo, Framebuffer::depth_texture, EDITOR_SETTINGS, Framebuffer::fbo, EditorSettings::FULL_GBUFFER, GBUFFER_FBO, GBUFFER_RESOLVE_FBO, GLRenderbuffer::i, GLTexture::i, MAIN_FBO, MAIN_RESOLVE_FBO, EditorSettings::MSAA, RENDER_HEIGHT, and RENDER_WIDTH.
Referenced by change_render_resolution(), execute_editor_settings_undo(), and render_main_menu().
| void change_ssao_res | ( | int | w, |
| int | h ) |
Definition at line 115 of file editor.c.
References change_fbo_resolution(), change_ssao_res(), SSAO_BLUR_FBO, SSAO_FBO, SSAO_HEIGHT, and SSAO_WIDTH.
Referenced by change_ssao_res(), execute_editor_settings_undo(), and render_main_menu().
| void change_dof_res | ( | int | w, |
| int | h ) |
Definition at line 123 of file editor.c.
References BOKEH_FBO, change_dof_res(), change_fbo_resolution(), COC_FBO, DOF_HEIGHT, and DOF_WIDTH.
Referenced by change_dof_res(), execute_editor_settings_undo(), and render_main_menu().
| void change_bloom_res | ( | int | w, |
| int | h ) |
Definition at line 132 of file editor.c.
References BLOOM_HEIGHT, BLOOM_PYRAMID, BLOOM_WIDTH, change_bloom_res(), and change_fbo_resolution().
Referenced by change_bloom_res(), execute_editor_settings_undo(), and render_main_menu().
| void UNDO_INIT | ( | ) |
Initializes Undos inside of UNDOS to free state.
Definition at line 155 of file editor.c.
References Undo::free, Undo::id, MAX_UNDOS, Undo::next, Undo::prev, top_undo, UNDO_INIT(), and UNDOS.
Referenced by init(), and UNDO_INIT().
| void clear_special_undo_bytes | ( | Undo * | undo | ) |
Definition at line 168 of file editor.c.
References Undo::byte_size, clear_special_undo_bytes(), Undo::special_bytes, and Undo::special_count.
Referenced by clear_special_undo_bytes(), execute_aportal_undo(), execute_aprobe_undo(), execute_rprobe_undo(), execute_text_box_undo(), and execute_ui_element_undo().
| void clear_undo | ( | Undo * | undo | ) |
Definition at line 181 of file editor.c.
References Undo::byte_offset, Undo::byte_size, clear_undo(), Undo::free, Undo::next, Undo::special_bytes, and Undo::special_count.
Referenced by clear_undo(), destroy_redo_history(), and destroy_undo().
| void destroy_undo | ( | Undo * | undo | ) |
Definition at line 201 of file editor.c.
References clear_undo(), destroy_undo(), Undo::next, and Undo::prev.
Referenced by check_stack_size(), destroy_undo(), and find_empty_undo().
| Undo * find_last_undo | ( | ) |
Definition at line 221 of file editor.c.
References find_last_undo(), Undo::prev, undo_stack_idx, and UNDOS.
Referenced by find_empty_undo(), and find_last_undo().
| Undo * find_empty_undo | ( | ) |
Definition at line 233 of file editor.c.
References destroy_undo(), find_empty_undo(), find_last_undo(), MAX_UNDOS, and UNDOS.
Referenced by find_empty_undo(), push_nk_slider_undo(), push_raw_bytes_undo(), push_special_undo(), and push_special_undo_normal_bytes().
| void link_undo | ( | Undo * | undo | ) |
Definition at line 251 of file editor.c.
References Undo::free, link_undo(), Undo::next, next_redo, Undo::prev, and top_undo.
Referenced by link_undo(), push_nk_slider_undo(), push_raw_bytes_undo(), push_special_undo(), and push_special_undo_normal_bytes().
| void check_stack_size | ( | ) |
Definition at line 272 of file editor.c.
References check_stack_size(), destroy_undo(), EDITOR_SETTINGS, Undo::prev, top_undo, EditorSettings::undo_stack_max_byte_size, and undo_stack_size.
Referenced by check_stack_size(), push_nk_slider_undo(), push_raw_bytes_undo(), push_special_undo(), and push_special_undo_normal_bytes().
| void perform_newest_undo | ( | ) |
Performs top-most Undo and moves the top-most pointer to the previous.
Definition at line 287 of file editor.c.
References execute_undo(), next_redo, perform_newest_undo(), Undo::prev, and top_undo.
Referenced by perform_newest_undo(), and process_input().
| void perform_newest_redo | ( | ) |
Performs top-most Redo (Undo->next) and moves pointers upward.
Definition at line 303 of file editor.c.
References execute_undo(), Undo::next, next_redo, perform_newest_redo(), and top_undo.
Referenced by perform_newest_redo(), and process_input().
| void destroy_redo_history | ( | ) |
Definition at line 315 of file editor.c.
References clear_undo(), destroy_redo_history(), Undo::free, Undo::next, Undo::prev, and top_undo.
Referenced by check_equivalencyf(), check_equivalencyi(), check_equivalencyv3(), check_equivalencyv4(), destroy_redo_history(), and nk_check_equivalency().
| void push_nk_slider_undo | ( | NKSlider * | s, |
| UndoStructure | structure, | ||
| size_t | byte_offset ) |
Definition at line 335 of file editor.c.
References Undo::byte_offset, NKSlider::byte_size, Undo::byte_size, NKSlider::bytes, Undo::bytes, check_stack_size(), find_empty_undo(), link_undo(), push_nk_slider_undo(), Undo::special_count, Undo::structure, and undo_stack_size.
Referenced by push_nk_slider_undo(), render_audio_menu(), render_ivec3_widget(), render_light_menu(), render_main_menu(), render_mat4_widget(), render_obb_widget(), render_pos_widget(), render_text_menu(), and render_ui_menu().
| void push_raw_bytes_undo | ( | void * | bytes, |
| size_t | byte_size, | ||
| UndoStructure | structure, | ||
| size_t | byte_offset ) |
Definition at line 350 of file editor.c.
References Undo::byte_offset, Undo::byte_size, Undo::bytes, check_stack_size(), find_empty_undo(), link_undo(), push_raw_bytes_undo(), Undo::special_count, Undo::structure, and undo_stack_size.
Referenced by push_raw_bytes_undo(), render_audio_menu(), render_lprobe_menu(), render_main_menu(), render_text_menu(), and render_ui_menu().
| void push_special_undo | ( | UndoStructure | structure, |
| uint8_t ** | bytes, | ||
| size_t | total_byte_size, | ||
| size_t | bytes_count, | ||
| size_t | byte_offset ) |
Definition at line 365 of file editor.c.
References Undo::byte_offset, check_stack_size(), find_empty_undo(), link_undo(), push_special_undo(), Undo::special_bytes, Undo::special_count, Undo::structure, and undo_stack_size.
Referenced by push_special_undo(), render_audio_menu(), render_light_menu(), render_lprobe_menu(), render_main_menu(), render_mat4_widget(), render_mn_menu(), render_obb_widget(), render_text_menu(), and render_ui_menu().
| void push_special_undo_normal_bytes | ( | UndoStructure | structure, |
| void * | bytes, | ||
| size_t | byte_size, | ||
| size_t | byte_offset ) |
Definition at line 379 of file editor.c.
References Undo::byte_offset, Undo::bytes, check_stack_size(), find_empty_undo(), link_undo(), push_special_undo_normal_bytes(), Undo::special_count, Undo::structure, and undo_stack_size.
Referenced by push_special_undo_normal_bytes(), and render_ui_menu().
| UndoStructure create_undo_structure | ( | UndoStructureType | type, |
| int | id[8], | ||
| UndoSpecial | special ) |
Definition at line 393 of file editor.c.
References create_undo_structure(), and UndoStructure::ids.
Referenced by create_undo_structure(), render_audio_menu(), render_ivec3_widget(), render_light_menu(), render_lprobe_menu(), render_main_menu(), render_mat4_widget(), render_mn_menu(), render_obb_widget(), render_pos_widget(), render_text_menu(), and render_ui_menu().
| UndoStructure create_singular_id_undo_structure | ( | UndoStructureType | type, |
| int | id, | ||
| UndoSpecial | special ) |
Definition at line 407 of file editor.c.
References create_singular_id_undo_structure(), and UndoStructure::ids.
Referenced by create_singular_id_undo_structure(), and render_light_menu().
| UndoStructure create_light_undo_structure | ( | int | id, |
| UndoSpecial | special ) |
Definition at line 418 of file editor.c.
References create_light_undo_structure(), UndoStructure::ids, and UNDOSTRUCT_LIGHT.
Referenced by create_light_undo_structure(), and render_light_menu().
| void copy_special_undo | ( | Undo * | undo, |
| uint8_t *** | special_bytes, | ||
| int | ids[8] ) |
Definition at line 430 of file editor.c.
References Undo::byte_size, copy_special_undo(), and Undo::special_count.
Referenced by copy_special_undo().
| void execute_non_special_undo | ( | Undo * | undo, |
| uint8_t * | p ) |
Definition at line 453 of file editor.c.
References Undo::byte_offset, Undo::byte_size, Undo::bytes, execute_non_special_undo(), MAX_UNDO_BYTES, and temp.
Referenced by execute_aemitter_undo(), execute_aportal_undo(), execute_aprobe_undo(), execute_asset_instance_undo(), execute_editor_settings_undo(), execute_globals_undo(), execute_light_undo(), execute_lprobe_undo(), execute_mesh_node_undo(), execute_non_special_undo(), execute_rprobe_undo(), execute_text_box_undo(), execute_ui_container_undo(), execute_ui_element_undo(), and execute_ui_menu_undo().
| void execute_light_undo | ( | Undo * | undo | ) |
Definition at line 463 of file editor.c.
References Undo::byte_size, CAST_VEC, Vector::count, destroy_entity(), EDITOR_SETTINGS, ENTITIES, Light::entity_id, execute_light_undo(), execute_non_special_undo(), GLOBALS, UndoStructure::ids, Globals::lights, Globals::lights_dirty, REMOVE_FROM_VEC, EditorSettings::selected_light_id, Light::sm_dirty, UndoStructure::special, Undo::special_bytes, Undo::special_count, Undo::structure, temp, UNDOLIGHT_DELETE, UNDOLIGHT_SPAWN, and UNDOSPECIAL_NONE.
Referenced by execute_light_undo(), and execute_undo().
| void execute_globals_undo | ( | Undo * | undo | ) |
Definition at line 516 of file editor.c.
References add_all_meshes_to_buffer(), build_uv_islands(), CAST_VEC, Vector::count, destroy_asset_instance(), draw_dirty, execute_globals_undo(), execute_non_special_undo(), GLOBALS, GPU_upload_scene_data(), UndoStructure::ids, init_lightmap_data(), SceneData::lightmap_data, Globals::mesh_nodes, Globals::meshes, Globals::scene_data, UndoStructure::special, Undo::structure, UNDOGLOBAL_SPAWN_ASSET_INSTANCE, UNDOSPECIAL_NONE, upload_lights(), upload_material_data(), and Globals::vertex_layouts.
Referenced by execute_globals_undo(), and execute_undo().
| UndoStructure create_editor_settings_undo_structure | ( | UndoSpecial | special | ) |
Definition at line 554 of file editor.c.
References create_editor_settings_undo_structure(), and UNDOSTRUCT_EDITOR_SETTINGS.
Referenced by create_editor_settings_undo_structure(), and render_light_menu().
| void execute_editor_settings_undo | ( | Undo * | undo | ) |
Definition at line 563 of file editor.c.
References BLOOM_HEIGHT, BLOOM_WIDTH, change_bloom_res(), change_dof_res(), change_fullscreen_option(), change_render_resolution(), change_ssao_res(), DOF_HEIGHT, DOF_WIDTH, EDITOR_SETTINGS, execute_editor_settings_undo(), execute_non_special_undo(), UndoStructure::ids, RENDER_HEIGHT, RENDER_WIDTH, SCREEN_HEIGHT, SCREEN_WIDTH, EditorSettings::selected_fullscreen_option, UndoStructure::special, SSAO_HEIGHT, SSAO_WIDTH, Undo::structure, temp, UNDOEDITORSETTINGS_BLOOM_RES, UNDOEDITORSETTINGS_DOF_RES, UNDOEDITORSETTINGS_FULLSCREENOPT, UNDOEDITORSETTINGS_HALFSIZE_EFFECTS, UNDOEDITORSETTINGS_RENDER_RES, UNDOEDITORSETTINGS_SCREEN_RES, UNDOEDITORSETTINGS_SSAO_RES, UNDOSPECIAL_NONE, and window.
Referenced by execute_editor_settings_undo(), and execute_undo().
| UndoStructure create_rprobe_undo_structure | ( | int | id, |
| UndoSpecial | special ) |
Definition at line 630 of file editor.c.
References create_rprobe_undo_structure(), UndoStructure::ids, and UNDOSTRUCT_RPROBE.
Referenced by create_rprobe_undo_structure().
| void execute_rprobe_undo | ( | Undo * | undo | ) |
Definition at line 641 of file editor.c.
References Undo::byte_size, CAST_VEC, clear_special_undo_bytes(), EDITOR_SETTINGS, execute_non_special_undo(), execute_rprobe_undo(), GLOBALS, UndoStructure::ids, SceneData::reflection_probes, REMOVE_FROM_VEC, Globals::scene_data, EditorSettings::selected_r_probe, SHIFT_VEC_RIGHT, UndoStructure::special, Undo::special_bytes, Undo::special_count, Undo::structure, temp, UNDORPROBE_DELETE, UNDORPROBE_SPAWN, and UNDOSPECIAL_NONE.
Referenced by execute_rprobe_undo(), and execute_undo().
| void execute_lprobe_undo | ( | Undo * | undo | ) |
Definition at line 696 of file editor.c.
References Undo::byte_offset, Undo::byte_size, CAST_VEC, EDITOR_SETTINGS, execute_lprobe_undo(), execute_non_special_undo(), GLOBALS, UndoStructure::ids, SceneData::lighting_probe_volumes, SceneData::LOADED_LIGHTING_PV, SceneData::LOADED_LIGHTING_PV_FLAG, LPV::lprobes, LPV_PADDED_COUNT, LPV_SLOTS, EditorSettings::obb_axis_x_angle, EditorSettings::obb_axis_y_angle, EditorSettings::obb_axis_z_angle, LPV::pv_id, REDOLPROBE_RESET_LPVS, REMOVE_FROM_VEC, reset_lighting_pvs(), Globals::scene_data, EditorSettings::selected_lighting_probe_volume_id, SH_MAX, SHIFT_VEC_RIGHT, size, UndoStructure::special, Undo::special_bytes, Undo::special_count, Undo::structure, temp, UNDOLPROBE_DELETE, UNDOLPROBE_OBB_ROT, UNDOLPROBE_RESET_LPV_SIZE, UNDOLPROBE_RESET_LPVS, UNDOLPROBE_SPAWN, UNDOSPECIAL_NONE, vec3::x, vec3::y, and vec3::z.
Referenced by execute_lprobe_undo(), and execute_undo().
| void execute_aprobe_undo | ( | Undo * | undo | ) |
Definition at line 863 of file editor.c.
References SceneData::audio_probe_volumes, Undo::byte_offset, Undo::byte_size, CAST_VEC, clear_special_undo_bytes(), EDITOR_SETTINGS, execute_aprobe_undo(), execute_non_special_undo(), GLOBALS, UndoStructure::ids, EditorSettings::obb_axis_x_angle, EditorSettings::obb_axis_y_angle, EditorSettings::obb_axis_z_angle, REMOVE_FROM_VEC, Globals::scene_data, EditorSettings::selected_audio_probe_volume_id, SHIFT_VEC_RIGHT, UndoStructure::special, Undo::special_bytes, Undo::special_count, Undo::structure, temp, UNDOAPROBE_DELETE_APV, UNDOAPROBE_OBB_ROT, UNDOAPROBE_RESET_APV_SIZE, UNDOAPROBE_SPAWN_APV, UNDOSPECIAL_NONE, vec3::x, vec3::y, and vec3::z.
Referenced by execute_aprobe_undo(), and execute_undo().
| void execute_aemitter_undo | ( | Undo * | undo | ) |
Definition at line 964 of file editor.c.
References AUDIO_EMITTERS, destroy_emitter(), EDITOR_SETTINGS, end_emitter(), execute_aemitter_undo(), execute_non_special_undo(), UndoStructure::ids, load_emitter(), play_emitter(), EditorSettings::selected_audio_emitter_id, UndoStructure::special, Undo::structure, temp, UNDOAEMITTER_DELETE_EMITTER, UNDOAEMITTER_DELETE_SOUND_OBJ, UNDOAEMITTER_LOAD_SOUND_OBJ, UNDOAEMITTER_PLAY_EMITTER, UNDOAEMITTER_SPAWN, UNDOAEMITTER_STOP_EMITTER, UNDOSPECIAL_NONE, and unload_emitter().
Referenced by execute_aemitter_undo(), and execute_undo().
| void execute_aportal_undo | ( | Undo * | undo | ) |
Definition at line 1013 of file editor.c.
References Globals::audio_portals, Undo::byte_size, CAST_VEC, clear_special_undo_bytes(), execute_aportal_undo(), execute_non_special_undo(), GLOBALS, UndoStructure::ids, remove_audio_portal(), SHIFT_VEC_RIGHT, UndoStructure::special, Undo::special_bytes, Undo::special_count, Undo::structure, UNDOAPORTAL_DELETE, UNDOAPORTAL_SPAWN, and UNDOSPECIAL_NONE.
Referenced by execute_aportal_undo(), and execute_undo().
| void execute_ui_menu_undo | ( | Undo * | undo | ) |
Definition at line 1059 of file editor.c.
References CAST_VEC, execute_non_special_undo(), execute_ui_menu_undo(), UndoStructure::ids, MENUS, UndoStructure::special, Undo::structure, and UNDOSPECIAL_NONE.
Referenced by execute_ui_menu_undo(), and execute_undo().
| void execute_ui_element_undo | ( | Undo * | undo | ) |
Definition at line 1076 of file editor.c.
References add_all_text_boxes_to_draw_buffer(), align_text_box_label(), assign_element_to_container(), Undo::byte_size, Undo::bytes, CAST_VEC, clear_special_undo_bytes(), UIMenu::containers, delete_text_box(), delete_ui_container(), delete_ui_element(), UIContainer::element, UIMenu::elements, execute_non_special_undo(), execute_ui_element_undo(), UndoStructure::ids, MENUS, reassign_elements_to_container(), REDOUIELEMENT_ADD_TO_CONTAINER, remove_element_from_container(), UndoStructure::special, Undo::special_bytes, Undo::special_count, Undo::structure, temp, TextBox::text, UIMenu::text_boxes, TextBox::text_cap, UIMenu::uID, UNDOSPECIAL_NONE, UNDOUIELEMENT_CHANGE_CONTAINER, UNDOUIELEMENT_CREATE_CONTAINER, UNDOUIELEMENT_CREATE_ELEMENT, UNDOUIELEMENT_CREATE_LABEL, UNDOUIELEMENT_DELETE_CONTAINER, UNDOUIELEMENT_DELETE_ELEMENT, UNDOUIELEMENT_JUSTIFY_LABEL, and UNDOUIELEMENT_REMOVE_FROM_CONTAINER.
Referenced by execute_ui_element_undo(), and execute_undo().
| void execute_ui_container_undo | ( | Undo * | undo | ) |
Definition at line 1246 of file editor.c.
References UIElement::as, CAST_VEC, UIElement::container, UIMenu::containers, UIMenu::elements, execute_non_special_undo(), execute_ui_container_undo(), UndoStructure::ids, MENUS, UIContainer::scrollbar, UndoStructure::special, Undo::structure, temp, UNDOSPECIAL_NONE, and UNDOUICONTAINER_CHANGE_SCROLLBAR.
Referenced by execute_ui_container_undo(), and execute_undo().
| void execute_text_box_undo | ( | Undo * | undo | ) |
Definition at line 1298 of file editor.c.
References add_all_text_boxes_to_draw_buffer(), assign_text_box_to_container(), Undo::byte_size, CAST_VEC, clear_special_undo_bytes(), UIMenu::containers, delete_text_box(), EDITOR_SETTINGS, execute_non_special_undo(), execute_text_box_undo(), UndoStructure::ids, MENUS, remove_text_box_from_container(), EditorSettings::selected_text_id, UndoStructure::special, Undo::special_bytes, Undo::special_count, Undo::structure, temp, UIMenu::text_boxes, UNDOSPECIAL_NONE, UNDOTEXTBOX_ADD_TO_CONTAINER, UNDOTEXTBOX_CHANGE_CONTAINER, UNDOTEXTBOX_CHANGE_TEXT, UNDOTEXTBOX_CREATE_TEXT_BOX, UNDOTEXTBOX_DELETE_TEXT_BOX, and UNDOTEXTBOX_REMOVE_FROM_CONTAINER.
Referenced by execute_text_box_undo(), and execute_undo().
| void execute_asset_instance_undo | ( | Undo * | undo | ) |
Definition at line 1426 of file editor.c.
References ASSET_INSTANCES, compose_trs_from_vectors(), EDITOR_SETTINGS, execute_asset_instance_undo(), execute_non_special_undo(), UndoStructure::ids, EditorSettings::rotation_angle, UndoStructure::special, Undo::special_bytes, Undo::structure, temp, UNDOASSETINSTANCE_MAT, UNDOASSETINSTANCE_ROTATION_ANGLE, and UNDOSPECIAL_NONE.
Referenced by execute_asset_instance_undo(), and execute_undo().
| void execute_mesh_node_undo | ( | Undo * | undo | ) |
Definition at line 1470 of file editor.c.
References CAST_VEC, compose_trs_from_mesh_node(), draw_dirty, EDITOR_SETTINGS, execute_mesh_node_undo(), execute_non_special_undo(), GLOBALS, UndoStructure::ids, SubMesh::material, Globals::mesh_nodes, Globals::meshes, EditorSettings::rotation_angle, UndoStructure::special, Undo::special_bytes, Undo::structure, Mesh::submeshes, temp, UNDOMN_CHANGE_MATERIAL, UNDOMN_MAT, UNDOMN_ROTATION_ANGLE, and UNDOSPECIAL_NONE.
Referenced by execute_mesh_node_undo(), and execute_undo().
| void execute_undo | ( | Undo * | undo | ) |
Performs an Undo (switch-case into each UndoStructureType).
| The | Undo to perform. |
Definition at line 1530 of file editor.c.
References execute_aemitter_undo(), execute_aportal_undo(), execute_aprobe_undo(), execute_asset_instance_undo(), execute_editor_settings_undo(), execute_globals_undo(), execute_light_undo(), execute_lprobe_undo(), execute_mesh_node_undo(), execute_rprobe_undo(), execute_text_box_undo(), execute_ui_container_undo(), execute_ui_element_undo(), execute_ui_menu_undo(), execute_undo(), Undo::structure, UndoStructure::type, UNDOSTRUCT_AEMITTER, UNDOSTRUCT_APORTAL, UNDOSTRUCT_APROBE, UNDOSTRUCT_ASSETINSTANCE, UNDOSTRUCT_EDITOR_SETTINGS, UNDOSTRUCT_ENTITY, UNDOSTRUCT_GLOBAL, UNDOSTRUCT_LIGHT, UNDOSTRUCT_LPROBE, UNDOSTRUCT_MATERIAL, UNDOSTRUCT_MENU, UNDOSTRUCT_MN, UNDOSTRUCT_RPROBE, UNDOSTRUCT_TEXTBOX, UNDOSTRUCT_UI_CONTAINER, and UNDOSTRUCT_UI_ELEMENT.
Referenced by execute_undo(), perform_newest_redo(), and perform_newest_undo().
| void store_into_nkslider | ( | NKSlider * | s, |
| void * | bytes, | ||
| size_t | byte_size ) |
Definition at line 1590 of file editor.c.
References NKSlider::byte_size, NKSlider::bytes, and store_into_nkslider().
Referenced by render_light_menu(), and store_into_nkslider().
| void toggle_performance_overlay | ( | ) |
Toggles the performance overlay menu: PERFORMANCE_OVERLAY_MENU.
Definition at line 1616 of file editor.c.
References CAST_VEC, MENUS, PERFORMANCE_OVERLAY_MENU, PERFORMANCE_OVERLAY_TEXT_BOX_COUNT, PERFORMANCE_OVERLAY_TEXT_BOX_START, UIMenu::text_boxes, toggle_performance_overlay(), and TextBox::visible.
Referenced by process_input(), and toggle_performance_overlay().
| void update_performance_overlay | ( | GLuint64 | query_s[PQUERY_MAX] | ) |
Fills performance overlay with text based on current GPU profiling information.
| query_s | The result of glQueries for the current frame. |
Definition at line 1635 of file editor.c.
References add_all_text_boxes_to_draw_buffer(), CAST_VEC, MENUS, move_text_box_to_origin(), PERFORMANCE_OVERLAY_MENU, PERFORMANCE_OVERLAY_TEXT_BOX_COUNT, PERFORMANCE_OVERLAY_TEXT_BOX_START, PQUERY_MAX, QUERY_NAMES, TextBox::text, UIMenu::text_boxes, time, and update_performance_overlay().
Referenced by main(), and update_performance_overlay().
| void create_performance_overlay | ( | ) |
Allocates and initializes position of the TextBoxes for the performance overlay.
Definition at line 1674 of file editor.c.
References create_menu(), create_performance_overlay(), DEFAULT_TEXT_BOX, TextBox::free, TextBox::justify, JUSTIFY_LEFT, TextBox::menu, move_text_box_to_origin(), PERFORMANCE_OVERLAY_MENU, PERFORMANCE_OVERLAY_TEXT_BOX_COUNT, PERFORMANCE_OVERLAY_TEXT_BOX_START, TextBox::text, UIMenu::text_boxes, TextBox::text_cap, TextBox::translation, TextBox::uID, UIMenu::uID, TextBox::visible, and vec2::y.
Referenced by create_performance_overlay(), main(), and scene_load().
| bool nk_check_equivalency | ( | void * | a, |
| void * | b, | ||
| size_t | byte_size, | ||
| NKSlider * | s, | ||
| bool * | dirty ) |
Definition at line 1712 of file editor.c.
References NKSlider::byte_size, NKSlider::bytes, destroy_redo_history(), NKSlider::is_held, and nk_check_equivalency().
Referenced by nk_check_equivalency(), render_mat4_widget(), and render_text_menu().
Definition at line 1748 of file editor.c.
References NKSlider::byte_size, NKSlider::bytes, check_equivalencyv3(), destroy_redo_history(), NKSlider::is_held, and vec3_equal().
Referenced by check_equivalencyv3(), and render_light_menu().
Definition at line 1778 of file editor.c.
References NKSlider::byte_size, NKSlider::bytes, check_equivalencyv4(), destroy_redo_history(), NKSlider::is_held, and vec4_equal().
Referenced by check_equivalencyv4(), and render_ui_menu().
| bool check_equivalencyf | ( | float * | a, |
| float | b, | ||
| NKSlider * | s, | ||
| bool * | dirty ) |
Definition at line 1805 of file editor.c.
References NKSlider::byte_size, NKSlider::bytes, check_equivalencyf(), destroy_redo_history(), and NKSlider::is_held.
Referenced by check_equivalencyf(), render_audio_menu(), render_light_menu(), render_main_menu(), render_mat4_widget(), render_obb_widget(), render_pos_widget(), render_text_menu(), and render_ui_menu().
| bool check_equivalencyi | ( | int * | a, |
| int | b, | ||
| NKSlider * | s, | ||
| bool * | dirty ) |
Definition at line 1830 of file editor.c.
References NKSlider::byte_size, NKSlider::bytes, check_equivalencyi(), destroy_redo_history(), and NKSlider::is_held.
Referenced by check_equivalencyi(), render_ivec3_widget(), render_light_menu(), render_main_menu(), and render_ui_menu().
| void FILE_DIR_REGISTRY_INIT | ( | ) |
Initializes each FileDirectoryRegistry based on initial paths.
Definition at line 1858 of file editor.c.
References aportal_registry, aprobe_registry, FileDirectoryRegistry::current_selection, FileDirectoryRegistry::directory, FILE_DIR_REGISTRY_INIT(), init_vector(), light_registry, lightmap_registry, lprobe_registry, FileDirectoryRegistry::names, FileDirectoryRegistry::open, rprobe_registry, scene_apv_registry, scene_lpv_registry, scene_registry, FileDirectoryRegistry::search_suffix, sound_registry, and ui_registry.
Referenced by FILE_DIR_REGISTRY_INIT(), and init().
| void load_filenames | ( | FileDirectoryRegistry * | registry | ) |
Definition at line 1929 of file editor.c.
References Vector::count, FileDirectoryRegistry::directory, load_filenames(), FileDirectoryRegistry::names, FileDirectoryRegistry::search_suffix, FileDirectoryRegistry::suffix, and vector_expand().
Referenced by load_filenames(), and render_file_directory_dropdown().
| void load_rprobe_filenames | ( | const char * | folder_path | ) |
Definition at line 1966 of file editor.c.
References load_rprobe_filenames(), rprobe_names, and rprobe_names_count.
Referenced by load_rprobe_filenames(), and render_main_menu().
| void load_gltf_filenames | ( | const char * | folder_path | ) |
Definition at line 1987 of file editor.c.
References gltf_names, gltf_names_count, and load_gltf_filenames().
Referenced by load_gltf_filenames(), and render_main_menu().
| void render_entity_menu | ( | ) |
Definition at line 2028 of file editor.c.
References Entity::ac, AnimationTrack::active, ANIM_TARGET_BOOL, ANIM_TARGET_FLOAT, ANIM_TARGET_INT, ANIM_TARGET_MAX, ANIM_TARGET_VEC3, calc_inverse_inertia(), COL_HULL, create_animation_component(), create_physics_component(), AnimationTrack::duration, EDITOR_SETTINGS, ENTITIES, ESTATE_PLAYER_INTERACT, State::fn, AnimationComponent::free, PhysicsComponent::free, PhysicsComponent::inverse_inertia, AnimationTrack::kf, AnimationTrack::kf_count, AnimationTrack::loop, PhysicsComponent::mass, MENU_ENT, menu_names, PhysicsComponent::mu, NK_CTX, NUKLEAR_HOVERED, Entity::pc, PHYSICS_FULL, render_entity_menu(), PhysicsComponent::restitution, SCREEN_HEIGHT, SCREEN_WIDTH, EditorSettings::selected_ent_id, Entity::skin, Entity::state, target_types, AnimationKeyframe::time, time, AnimationComponent::track_count, AnimationComponent::tracks, AnimationTrack::type, and AnimationKeyframe::val.
Referenced by render_editor_menu(), and render_entity_menu().
| void render_file_directory_dropdown | ( | FileDirectoryRegistry * | registry | ) |
Definition at line 2323 of file editor.c.
References ComboLabel::buffer, Vector::buffer, Vector::count, FileDirectoryRegistry::current_selection, FileDirectoryRegistry::directory, ComboLabel::item_count, LABEL_LEN, load_filenames(), FileDirectoryRegistry::names, NK_CTX, FileDirectoryRegistry::open, ComboLabel::ptrs, render_file_directory_dropdown(), and ComboLabel::selected.
Referenced by render_audio_menu(), render_file_directory_dropdown(), render_light_menu(), render_lprobe_menu(), and render_main_menu().
| void render_dropdown_labels | ( | int * | selected, |
| char ** | options, | ||
| int | option_count ) |
Definition at line 2360 of file editor.c.
References ComboLabel::buffer, ComboLabel::item_count, LABEL_LEN, NK_CTX, ComboLabel::ptrs, render_dropdown_labels(), and ComboLabel::selected.
Referenced by render_dropdown_labels(), and render_ui_menu().
| void render_dropdown | ( | const char * | dropdown_name, |
| int * | selected, | ||
| char ** | options, | ||
| int | option_count, | ||
| int | x, | ||
| int | y ) |
Definition at line 2384 of file editor.c.
References ComboLabel::buffer, ComboLabel::item_count, LABEL_LEN, NK_CTX, ComboLabel::ptrs, render_dropdown(), and ComboLabel::selected.
Referenced by render_asset_instance_menu(), render_dropdown(), render_main_menu(), render_text_menu(), and render_ui_menu().
| mat3 mat3_rotation_x | ( | float | angle_radians | ) |
Definition at line 2422 of file editor.c.
References mat3_rotation_x().
Referenced by mat3_rotation_x(), and render_obb_widget().
| mat3 mat3_rotation_y | ( | float | angle_radians | ) |
Definition at line 2433 of file editor.c.
References mat3_rotation_y().
Referenced by mat3_rotation_y(), and render_obb_widget().
| mat3 mat3_rotation_z | ( | float | angle_radians | ) |
Definition at line 2443 of file editor.c.
References mat3_rotation_z().
Referenced by mat3_rotation_z(), and render_obb_widget().
| void obb_orthonormalize | ( | OBB * | obb | ) |
Definition at line 2453 of file editor.c.
References mat3::a0, mat3::a1, mat3::a2, mat3::b0, mat3::b1, mat3::b2, mat3::c0, mat3::c1, mat3::c2, obb_orthonormalize(), OBB::rot, vec3_cross(), vec3_dot(), vec3_normalize(), vec3_scale(), vec3_sub(), vec3::x, vec3::y, and vec3::z.
Referenced by obb_orthonormalize().
| void render_ivec3_widget | ( | const char * | name, |
| UndoStructureType | undo_type, | ||
| int | id, | ||
| ivec3 * | vec, | ||
| NKSlider * | sliders ) |
Definition at line 2479 of file editor.c.
References check_equivalencyi(), create_undo_structure(), NK_CTX, push_nk_slider_undo(), render_ivec3_widget(), UNDOSPECIAL_NONE, UNDOSTRUCT_APROBE, ivec3::x, ivec3::y, and ivec3::z.
Referenced by render_audio_menu(), and render_ivec3_widget().
| void render_pos_widget | ( | const char * | name, |
| UndoStructureType | undo_type, | ||
| int | id, | ||
| vec3 * | pos, | ||
| NKSlider * | sliders ) |
Definition at line 2540 of file editor.c.
References check_equivalencyf(), create_undo_structure(), NK_CTX, push_nk_slider_undo(), render_pos_widget(), UNDOSPECIAL_NONE, UNDOSTRUCT_AEMITTER, vec3::x, vec3::y, and vec3::z.
Referenced by render_audio_menu(), and render_pos_widget().
| void render_aabb_widget | ( | const char * | name, |
| AABB * | aabb ) |
Definition at line 2600 of file editor.c.
References calculate_aabb_bounds(), AABB::center, AABB::extents, NK_CTX, render_aabb_widget(), vec3::x, vec3::y, and vec3::z.
Referenced by render_aabb_widget().
| void render_mat4_widget | ( | const char * | name, |
| UndoStructureType | undo_type, | ||
| int | id, | ||
| mat4 * | mat, | ||
| vec3 * | tr, | ||
| vec4 * | rot, | ||
| vec3 * | sc, | ||
| NKSlider * | sliders ) |
Definition at line 2676 of file editor.c.
References check_equivalencyf(), compose_trs_from_vectors(), create_undo_structure(), EDITOR_SETTINGS, M_PI, nk_check_equivalency(), NK_CTX, push_nk_slider_undo(), push_special_undo(), quat_from_axis_angle(), render_mat4_widget(), rot(), EditorSettings::rotation_angle, EditorSettings::rotation_axis, UNDOASSETINSTANCE_MAT, UNDOASSETINSTANCE_ROTATION_ANGLE, UNDOMN_MAT, UNDOMN_ROTATION_ANGLE, UNDOSPECIAL_NONE, UNDOSTRUCT_ASSETINSTANCE, UNDOSTRUCT_EDITOR_SETTINGS, UNDOSTRUCT_MN, vec3_normalize(), vec3::x, vec3::y, and vec3::z.
Referenced by render_asset_instance_menu(), render_mat4_widget(), and render_mn_menu().
| void render_obb_widget | ( | const char * | name, |
| UndoStructureType | undo_type, | ||
| int | id, | ||
| OBB * | obb, | ||
| NKSlider * | sliders ) |
Definition at line 2811 of file editor.c.
References OBB::center, check_equivalencyf(), create_undo_structure(), EDITOR_SETTINGS, OBB::extents, NKSlider::is_held, M_PI, mat3_identity(), mat3_mul(), mat3_rotation_x(), mat3_rotation_y(), mat3_rotation_z(), NK_CTX, EditorSettings::obb_axis_x_angle, EditorSettings::obb_axis_y_angle, EditorSettings::obb_axis_z_angle, push_nk_slider_undo(), push_special_undo(), render_obb_widget(), OBB::rot, UNDOAPROBE_OBB_ROT, UNDOLPROBE_OBB_ROT, UNDOSPECIAL_NONE, UNDOSTRUCT_APROBE, UNDOSTRUCT_LPROBE, vec3::x, vec3::y, and vec3::z.
Referenced by render_audio_menu(), render_lprobe_menu(), and render_obb_widget().
| void render_selection_menu | ( | ) |
Definition at line 3002 of file editor.c.
References EDITOR_SETTINGS, NK_CTX, NUKLEAR_HOVERED, render_selection_menu(), SCREEN_HEIGHT, EditorSettings::SELMODE, SELMODE_AEM, SELMODE_APORTAL, SELMODE_APV, SELMODE_ASSETINSTANCE, SELMODE_ENTITY, SELMODE_LIGHT, SELMODE_LPV, SELMODE_MN, SELMODE_RPROBE, SELMODE_TEXTBOX, and SELMODE_UIELEMENT.
Referenced by render_editor_menu(), and render_selection_menu().
| void render_text_menu | ( | ) |
Definition at line 3040 of file editor.c.
References add_all_text_boxes_to_draw_buffer(), TextBox::angle, TextBoxEditorMenu::angle, assign_text_box_to_container(), CAST_VEC, check_equivalencyf(), color, TextBox::color, TextBoxEditorMenu::color, container_is_valid(), UIMenu::containers, Vector::count, create_text_box(), create_undo_structure(), delete_text_box(), EDITOR_SETTINGS, TextBox::fill, TextBoxEditorMenu::fill, UIContainer::free, TextBox::id, UIContainer::id, UIMenu::id, TextBox::layer, TextBoxEditorMenu::layer, MAX_UI_CONTAINERS, MAX_UI_MENU_NAMES, TextBox::menu, menu_names, MENU_TEXT, MENUS, move_text_box_to_menu(), nk_check_equivalency(), NK_CTX, NUKLEAR_HOVERED, TextBox::parent_container, push_nk_slider_undo(), push_raw_bytes_undo(), push_special_undo(), remove_text_box_from_container(), render_dropdown(), render_text_menu(), TextBox::scale, TextBoxEditorMenu::scale, SCREEN_WIDTH, EditorSettings::selected_text_id, EditorSettings::selected_ui_menu_id, TextBox::shadow, TextBox::shadow_dir, TextBoxEditorMenu::shadow_dirx, TextBoxEditorMenu::shadow_diry, TextBox::shadow_dist, TextBoxEditorMenu::shadow_dist, tb_id_flags, tb_text_flags, TextBox::text, EditorSettings::text_box_drag_mode, UIMenu::text_boxes, TextBox::text_cap, text_id_buffer, TextBox::text_size, TextBoxEditorMenu::text_size, TEXTBOX_MENU, TextBox::translation, TextBoxEditorMenu::translation, TextBox::uID, UIContainer::uID, UIMenu::uID, UNDOSPECIAL_NONE, UNDOSTRUCT_TEXTBOX, UNDOTEXTBOX_CHANGE_CONTAINER, UNDOTEXTBOX_CHANGE_TEXT, UNDOTEXTBOX_CREATE_TEXT_BOX, UNDOTEXTBOX_DELETE_TEXT_BOX, UNDOTEXTBOX_REMOVE_FROM_CONTAINER, vec2_normalize(), vec4::w, vec2::x, vec4::x, vec2::y, vec4::y, and vec4::z.
Referenced by render_editor_menu(), and render_text_menu().
| void render_ui_menu | ( | ) |
Definition at line 3424 of file editor.c.
References UIElement::action_callback, ACTION_CALLBACK_COUNT, ACTION_CALLBACKS, add_all_text_boxes_to_draw_buffer(), UILabel::align, align_text_box_label(), UIElement::angle, UIElementEditorMenu::angle, UIElement::as, assign_element_to_container(), UIElement::base_pos, UILabel::box, CAST_VEC, check_equivalencyf(), check_equivalencyi(), check_equivalencyv4(), color, UIElement::color, UIElementEditorMenu::color, compute_slider_bounds(), UIElement::container, container_is_valid(), UIMenu::containers, Vector::count, UIElementEditorMenu::cpad, create_text_box(), create_ui_container(), create_ui_element(), create_undo_structure(), UIElementEditorMenu::cscrollx, UIElementEditorMenu::cscrolly, DEFAULT_LABEL, DEFAULT_SLIDER, delete_text_box(), delete_ui_container(), delete_ui_element(), UISlider::dir, EDITOR_SETTINGS, element_cid_buffer, EditorSettings::element_drag_mode, element_id_buffer, UIMenu::elements, UIElement::fill, UIElementEditorMenu::fill, find_text_box_in_menu(), UIContainer::free, UIElement::free, UIElement::hover_callback, HOVER_CALLBACK_COUNT, HOVER_CALLBACKS, UICallback::id, UIContainer::id, UIElement::id, UIMenu::id, UIElement::interactable, JUSTIFY_MAX, JUSTIFY_NAMES, label_id_buffer, UIElement::layer, UIElementEditorMenu::layer, UISlider::len, UIContainer::mask, MAX_UI_CONTAINERS, MAX_UI_ELEMENTS, MAX_UI_MENU_NAMES, UISlider::max_val, UIElement::menu, menu_id_buffer, menu_names, MENU_UI, MENUS, UISlider::min_val, move_element_to_menu(), NK_CTX, NUKLEAR_HOVERED, UIContainer::padding, UIElement::parent_container, push_nk_slider_undo(), push_raw_bytes_undo(), push_special_undo(), push_special_undo_normal_bytes(), UIElement::radius, UIElementEditorMenu::radius, remove_element_from_container(), render_dropdown(), render_dropdown_labels(), render_ui_menu(), UIElement::scale, SCREEN_HEIGHT, UIContainer::scroll_dir, UISlider::scroll_scale, UIContainer::scrollbar, EditorSettings::selected_ui_action_id, EditorSettings::selected_ui_element_id, EditorSettings::selected_ui_hover_id, EditorSettings::selected_ui_menu_id, UIElement::shadow, UIElement::shadow_dir, UIElementEditorMenu::shadow_dirx, UIElementEditorMenu::shadow_diry, UIElement::shadow_dist, UIElementEditorMenu::shadow_dist, size, UIElement::size, UIElementEditorMenu::sizex, UIElementEditorMenu::sizey, UIElementEditorMenu::sliderlen, UIElementEditorMenu::slidermax, UIElementEditorMenu::slidermin, UIElementEditorMenu::sliderscrollscale, UIElementEditorMenu::sliderx, UIElementEditorMenu::slidery, UIElementEditorMenu::sx, UIElementEditorMenu::sy, TextBox::text, UIMenu::text_boxes, TextBox::text_cap, UIElement::translation, ui_cont_flags, ui_id_flags, UI_INTERACTABLE_LABEL, UI_INTERACTABLE_MAX, UI_INTERACTABLE_NAMES, UI_INTERACTABLE_SLIDER, ui_label_id_flags, ui_menu_id_flags, UIContainer::uID, UIElement::uID, UIMenu::uID, UIELEMENT_MENU, UNDOSPECIAL_NONE, UNDOSTRUCT_MENU, UNDOSTRUCT_UI_CONTAINER, UNDOSTRUCT_UI_ELEMENT, UNDOUICONTAINER_CHANGE_SCROLLBAR, UNDOUIELEMENT_CHANGE_CONTAINER, UNDOUIELEMENT_CREATE_CONTAINER, UNDOUIELEMENT_CREATE_ELEMENT, UNDOUIELEMENT_CREATE_LABEL, UNDOUIELEMENT_DELETE_CONTAINER, UNDOUIELEMENT_DELETE_ELEMENT, UNDOUIELEMENT_JUSTIFY_LABEL, UNDOUIELEMENT_REMOVE_FROM_CONTAINER, vec2_normalize(), UIElement::visible, vec4::w, UIContainer::wrap, UIElementEditorMenu::x, vec2::x, vec4::x, UIElementEditorMenu::y, vec2::y, vec4::y, and vec4::z.
Referenced by render_editor_menu(), and render_ui_menu().
| void render_audio_menu | ( | ) |
Definition at line 4216 of file editor.c.
References AudioPortal::adjacent_portals, aportal_flags, aportal_name_buffer, AProbeEditorMenu::aportal_pos, aportal_registry, APROBE_MENU, aprobe_name_buffer, aprobe_registry, SceneData::APV_FILE, apv_flags, SceneData::APV_PATH, AProbeEditorMenu::apv_res, AUDIO_EMITTERS, Globals::audio_portals, EditorSettings::audio_probe_bounces, EditorSettings::audio_probe_iterations, EditorSettings::audio_probe_volume_overlay, SceneData::audio_probe_volumes, bake_audio_probe_volume(), AudioEmitter::base_volume, Vector::buffer, ProbeVolume::byte_offset, Vector::capacity, CAST_VEC, check_equivalencyf(), Vector::count, create_undo_structure(), FileDirectoryRegistry::current_selection, DEFAULT_APV_RES, destroy_emitter(), FileDirectoryRegistry::directory, EDITOR_SETTINGS, AProbeEditorMenu::emitter_pos, end_emitter(), GLOBALS, AudioEmitter::id, init_emitter(), init_new_audio_portal(), AudioEmitter::is_loaded, AudioEmitter::is_loop, AudioEmitter::is_occludable, load_aportals(), load_aprobes(), load_emitter(), mat3_identity(), MAX_AUDIO_EMITTERS, MENU_AUDIO, menu_names, FileDirectoryRegistry::names, NK_CTX, NUKLEAR_HOVERED, ProbeVolume::obb, AProbeEditorMenu::OBB_sliders, AudioEmitter::path, play_emitter(), AudioEmitter::pos, AudioPortal::pos, push_nk_slider_undo(), push_raw_bytes_undo(), push_special_undo(), recalculate_audio_portal_paths(), remove_audio_portal(), REMOVE_FROM_VEC, render_audio_menu(), render_file_directory_dropdown(), render_ivec3_widget(), render_obb_widget(), render_pos_widget(), reset_audio_pvs(), ProbeVolume::resolution, EditorSettings::reverb_wet, OBB::rot, save_aportals(), save_aprobes(), scene_apv_flags, scene_apv_name_buffer, scene_apv_registry, Globals::scene_data, SCREEN_WIDTH, EditorSettings::selected_audio_emitter_id, EditorSettings::selected_audio_portal_id, EditorSettings::selected_audio_probe_volume_id, ProbeVolume::size, AudioEmitter::sound_obj, sound_registry, UNDOAEMITTER_DELETE_EMITTER, UNDOAEMITTER_LOAD_SOUND_OBJ, UNDOAEMITTER_PLAY_EMITTER, UNDOAEMITTER_SPAWN, UNDOAEMITTER_STOP_EMITTER, UNDOAPORTAL_DELETE, UNDOAPORTAL_SPAWN, UNDOAPROBE_DELETE_APV, UNDOAPROBE_RESET_APV_SIZE, UNDOAPROBE_SPAWN_APV, UNDOSPECIAL_NONE, UNDOSTRUCT_AEMITTER, UNDOSTRUCT_APORTAL, UNDOSTRUCT_APROBE, vector_expand(), AProbeEditorMenu::volume, and EditorSettings::volume.
Referenced by render_audio_menu(), and render_editor_menu().
| void render_lprobe_menu | ( | ) |
Definition at line 4681 of file editor.c.
References bake_lighting_probe_volume(), Vector::buffer, ProbeVolume::byte_offset, CAST_VEC, Vector::count, create_undo_structure(), FileDirectoryRegistry::current_selection, DEFAULT_LPV_RES, FileDirectoryRegistry::directory, EDITOR_SETTINGS, OBB::extents, GLOBALS, EditorSettings::lighting_probe_volume_overlay, SceneData::lighting_probe_volumes, load_lprobes(), SceneData::LOADED_LIGHTING_PV, LPROBE_MENU, EditorSettings::lprobe_menu_open, lprobe_name_buffer, lprobe_registry, LPV::lprobes, SceneData::LPV_FILE, lpv_flags, LPV_PADDED_COUNT, SceneData::LPV_PATH, LPV_SLOTS, mat3_identity(), MENU_LPROBE, menu_names, FileDirectoryRegistry::names, NK_CTX, NUKLEAR_HOVERED, ProbeVolume::obb, LProbeEditorMenu::OBB_sliders, push_raw_bytes_undo(), push_special_undo(), LPV::pv_id, REMOVE_FROM_VEC, render_file_directory_dropdown(), render_lprobe_menu(), render_obb_widget(), reset_lighting_pvs(), ProbeVolume::resolution, OBB::rot, save_lprobes(), scene_apv_flags, Globals::scene_data, scene_lpv_name_buffer, scene_lpv_registry, SCREEN_WIDTH, EditorSettings::selected_audio_probe_volume_id, EditorSettings::selected_lighting_probe_volume_id, SH_MAX, ProbeVolume::size, size, UNDOLPROBE_DELETE, UNDOLPROBE_RESET_LPV_SIZE, UNDOLPROBE_RESET_LPVS, UNDOLPROBE_SPAWN, UNDOSPECIAL_NONE, UNDOSTRUCT_LPROBE, and vector_expand().
Referenced by render_editor_menu(), and render_lprobe_menu().
| void render_main_menu | ( | ) |
Definition at line 4932 of file editor.c.
References EditorSettings::ACES, add_all_meshes_to_buffer(), allocate_gbuffer(), allocate_gbuffer_msaa(), allocate_main_fbo(), asset_dir, Globals::assets, EditorSettings::BLOOM, BLOOM_HEIGHT, BLOOM_PYRAMID, BLOOM_WIDTH, MainEditorMenu::blur_radius, ComboLabel::buffer, Vector::buffer, build_uv_islands(), CAST_VEC, change_bloom_res(), change_dof_res(), change_fullscreen_option(), change_render_resolution(), change_ssao_res(), check_equivalencyf(), check_equivalencyi(), COC_FBO, Vector::count, create_undo_structure(), EditorSettings::current_debug_view, EditorSettings::current_fullscreen_option, FileDirectoryRegistry::current_selection, Framebuffer::depth_rbo, Framebuffer::depth_texture, EditorSettings::DOF, EditorSettings::DOF_focal_length, EditorSettings::DOF_fstop, DOF_HEIGHT, EditorSettings::DOF_max_blur_radius, EditorSettings::DOF_sensor_height, DOF_WIDTH, draw_dirty, DVIEW_MAX, DVIEW_NAMES, EDITOR_SETTINGS, Framebuffer::fbo, MainEditorMenu::focal_length, FSOPT_MAX, MainEditorMenu::fstop, EditorSettings::FULL_GBUFFER, FULLSCREEN_OPTION_NAMES, GBUFFER_FBO, GBUFFER_RESOLVE_FBO, GLOBALS, gltf_file_names_open, gltf_names, gltf_names_count, GPU_upload_scene_data(), Framebuffer::h, GLRenderbuffer::i, GLTexture::i, AssetInstance::id, init_lightmap_data(), init_new_asset_instance(), init_scene_bvh(), ComboLabel::item_count, LABEL_LEN, SceneData::lightmap_data, load_gltf(), load_gltf_filenames(), load_rprobe_filenames(), load_rprobes(), load_ui(), EditorSettings::LUT, MAIN_FBO, MAIN_MENU, MAIN_RESOLVE_FBO, EditorSettings::MBLUR, MENU_MAIN, menu_names, Globals::mesh_nodes, Globals::meshes, EditorSettings::MSAA, MSAA_OPTIONS, MSAA_SAMPLE_OPTIONS_MAX, Globals::msaa_samples, SceneData::name, FileDirectoryRegistry::names, NK_CTX, EditorSettings::NOISE, NUKLEAR_HOVERED, Asset::path, EditorSettings::pp_dview, PPDVIEW_MAX, PPDVIEW_NAMES, ComboLabel::ptrs, push_nk_slider_undo(), push_raw_bytes_undo(), push_special_undo(), SceneData::reflection_probes, render_dropdown(), render_file_directory_dropdown(), EditorSettings::render_framerate_target, RENDER_HEIGHT, render_main_menu(), RENDER_WIDTH, EditorSettings::res_height, MainEditorMenu::res_height, EditorSettings::res_width, MainEditorMenu::res_width, rprobe_dir, rprobe_file_names_open, rprobe_name_flags, rprobe_names, rprobe_names_count, save_ui(), save_vector(), Globals::scene_data, scene_file_name_flags, scene_load(), scene_load_volumes(), scene_name_flags, scene_registry, scene_save(), scene_save_volumes(), SCREEN_HEIGHT, SCREEN_WIDTH, ComboLabel::selected, EditorSettings::selected_asset_id, EditorSettings::selected_fullscreen_option, EditorSettings::selected_gltf_file_id, EditorSettings::selected_rprobe_file_id, MainEditorMenu::sensor_height, EditorSettings::SSAO, SSAO_FBO, SSAO_HEIGHT, SSAO_WIDTH, EditorSettings::SSR, EditorSettings::TAA, EditorSettings::UI, ui_name_flags, ui_registry, UNDOEDITORSETTINGS_BLOOM_RES, UNDOEDITORSETTINGS_DOF_RES, UNDOEDITORSETTINGS_FULLSCREENOPT, UNDOEDITORSETTINGS_HALFSIZE_EFFECTS, UNDOEDITORSETTINGS_RENDER_RES, UNDOEDITORSETTINGS_SCREEN_RES, UNDOEDITORSETTINGS_SSAO_RES, UNDOGLOBAL_SPAWN_ASSET_INSTANCE, UNDOSPECIAL_NONE, UNDOSTRUCT_EDITOR_SETTINGS, UNDOSTRUCT_GLOBAL, upload_lights(), upload_material_data(), Globals::vertex_layouts, view, EditorSettings::VSYNC, Framebuffer::w, and window.
Referenced by render_editor_menu(), and render_main_menu().
| void render_mn_menu | ( | ) |
Definition at line 5539 of file editor.c.
References ComboLabel::buffer, CAST_VEC, compose_trs_from_mesh_node(), Vector::count, create_undo_structure(), draw_dirty, EDITOR_SETTINGS, MeshNode::ent, EditorSettings::entity_menu_open, Entity::free, MeshNode::global_matrix, GLOBALS, Entity::id, MeshNode::id, ComboLabel::item_count, LABEL_LEN, SubMesh::material, EditorSettings::material_menu_open, Globals::materials, MENU_MN, menu_names, MeshNode::mesh, Globals::mesh_nodes, Globals::meshes, MN_MENU, MeshNodeEditorMenu::model, Material::name, NK_CTX, NUKLEAR_HOVERED, EditorSettings::opening_menu, ComboLabel::ptrs, push_special_undo(), render_mat4_widget(), render_mn_menu(), MeshNode::rotation, MeshNode::scale, SCREEN_HEIGHT, ComboLabel::selected, EditorSettings::selected_ent_id, EditorSettings::selected_material_mn_id, EditorSettings::selected_mn_id, EditorSettings::selected_sm_id, MeshNode::skip_directional_uv_lighting, Mesh::submeshes, MeshNode::translation, UNDOMN_CHANGE_MATERIAL, UNDOSPECIAL_NONE, and UNDOSTRUCT_MN.
Referenced by render_editor_menu(), and render_mn_menu().
| void render_material_menu | ( | ) |
Definition at line 5695 of file editor.c.
References Material::alpha_mode, Material::ao_strength, CAST_VEC, EDITOR_SETTINGS, Material::emissive_strength, GLOBALS, Material::ka, Material::kd, Material::ke, Material::ks, Globals::materials, MENU_MATERIAL, menu_names, Material::metallic, NK_CTX, NUKLEAR_HOVERED, Material::override_arm, render_material_menu(), Material::roughness, SCREEN_HEIGHT, SCREEN_WIDTH, EditorSettings::selected_material_mn_id, upload_material_data(), vec4::w, vec4::x, vec4::y, and vec4::z.
Referenced by render_editor_menu(), and render_material_menu().
| void render_light_menu | ( | ) |
Definition at line 5925 of file editor.c.
References ReflectionProbe::aabb, LightEditorMenu::aabbe_x, LightEditorMenu::aabbe_y, LightEditorMenu::aabbe_z, add_all_meshes_to_buffer(), EditorSettings::ao_iterations, LightEditorMenu::ao_iterations, EditorSettings::ao_threshold, LightEditorMenu::ao_threshold, bake_lightmap(), bake_reflection_probes(), Vector::buffer, build_light_bvh(), NKSlider::byte_size, NKSlider::bytes, calculate_aabb_bounds(), ReflectionProbe::capture_pos, CAST_VEC, AABB::center, LightEditorMenu::center_pos, check_equivalencyf(), check_equivalencyi(), check_equivalencyv3(), clamp(), LightEditorMenu::color_b, LightEditorMenu::color_g, LightEditorMenu::color_r, Light::cone_angle, LightEditorMenu::cone_angle, Vector::count, create_editor_settings_undo_structure(), create_entity(), create_light_undo_structure(), create_singular_id_undo_structure(), create_undo_structure(), ReflectionProbe::cubemap_idx, FileDirectoryRegistry::current_selection, UVIsland::currently_rasterizing, default_light, Light::dir, FileDirectoryRegistry::directory, EDITOR_SETTINGS, ENTITIES, Light::entity_id, EditorSettings::entity_menu_open, AABB::extents, ReflectionProbe::fade_margin, Entity::free, GLOBALS, GPU_upload_scene_data(), Entity::id, Light::intensity, LightEditorMenu::intensity, LightmapData::islands, LIGHT_MENU, light_name_buffer, light_name_flags, light_registry, Light::light_type, LightEditorMenu::light_type, SceneData::lightmap_data, lightmap_registry, Globals::lights, Globals::lights_dirty, EditorSettings::lm_aabb, LightEditorMenu::lm_aabbx, LightEditorMenu::lm_aabby, LightEditorMenu::lm_aabbz, LM_allocate_empty_mns(), EditorSettings::lm_iterations, LightEditorMenu::lm_iterations, lm_name_flags, LM_regenerate_texels(), load_lightmap_from_binary(), load_vector(), EditorSettings::mfactor, LightEditorMenu::mfactor, EditorSettings::mfactor_enabled, LightEditorMenu::mfactor_enabled, FileDirectoryRegistry::names, NK_CTX, NUKLEAR_HOVERED, EditorSettings::opening_menu, Light::penumbra, LightEditorMenu::penumbra, Light::pos, EditorSettings::probe_iterations, LightEditorMenu::probe_iterations, push_nk_slider_undo(), push_special_undo(), Light::radius, reallocate_rprobe_array(), SceneData::reflection_probes, REMOVE_FROM_VEC, render_file_directory_dropdown(), render_light_menu(), Light::rgb, LightEditorMenu::rp_aabbe_x, LightEditorMenu::rp_aabbe_y, LightEditorMenu::rp_aabbe_z, LightEditorMenu::rp_aabbx, LightEditorMenu::rp_aabby, LightEditorMenu::rp_aabbz, LightEditorMenu::rp_capposx, LightEditorMenu::rp_capposy, LightEditorMenu::rp_capposz, LightEditorMenu::rp_fade_x, LightEditorMenu::rp_fade_y, LightEditorMenu::rp_fade_z, LightEditorMenu::rx, save_lightmap_to_binary(), save_vector(), Globals::scene_data, SCREEN_HEIGHT, SCREEN_WIDTH, EditorSettings::selected_ent_id, EditorSettings::selected_light_id, EditorSettings::selected_r_probe, Light::sm_dirty, SPOT_LIGHT, store_into_nkslider(), LightEditorMenu::texels_per_unit, EditorSettings::texels_per_uv_unit, Light::threshold, LightEditorMenu::threshold, UNDOLIGHT_DELETE, UNDOLIGHT_SPAWN, UNDORPROBE_DELETE, UNDORPROBE_SPAWN, UNDOSPECIAL_NONE, UNDOSTRUCT_LIGHT, UNDOSTRUCT_RPROBE, upload_lights(), upload_material_data(), vec3_normalize(), vector_expand(), Globals::vertex_layouts, LightEditorMenu::x, vec3::x, LightEditorMenu::y, vec3::y, LightEditorMenu::z, and vec3::z.
Referenced by render_editor_menu(), and render_light_menu().
| void render_asset_instance_menu | ( | ) |
Definition at line 6524 of file editor.c.
References AI_MENU, ASSET_INSTANCES, CAST_VEC, destroy_asset_instance(), EDITOR_SETTINGS, GLOBALS, MENU_AINST, menu_names, EditorSettings::mesh_node_menu_open, Globals::mesh_nodes, AssetInstance::model, AssetInstanceEditorMenu::model, MeshNode::name, NK_CTX, AssetInstance::node_count, AssetInstance::node_indices, NUKLEAR_HOVERED, render_asset_instance_menu(), render_dropdown(), render_mat4_widget(), AssetInstance::rot, AssetInstance::scale, SCREEN_HEIGHT, SCREEN_WIDTH, EditorSettings::selected_asset_instance_id, EditorSettings::selected_asset_instance_mn_id, EditorSettings::selected_mn_id, AssetInstance::tr, and UNDOSTRUCT_ASSETINSTANCE.
Referenced by render_asset_instance_menu(), and render_editor_menu().
| void render_editor_menu | ( | ) |
Renders the editor menus.
Definition at line 6605 of file editor.c.
References aportal_flags, apv_flags, EditorSettings::asset_instance_menu_open, EditorSettings::audio_menu_open, CAST_VEC, Vector::count, EDITOR_SETTINGS, ENTITIES, EditorSettings::entity_menu_open, Entity::free, GLOBALS, Globals::keyboard_locked, EditorSettings::light_menu_open, light_name_flags, Globals::lights, lm_name_flags, EditorSettings::lprobe_menu_open, lpv_flags, EditorSettings::main_menu_open, EditorSettings::material_menu_open, Globals::materials, MAX_ASSET_INSTANCES, MAX_TEXT_BOXES, MAX_UI_ELEMENTS, MENU_AINST, MENU_AUDIO, MENU_ENT, MENU_LPROBE, MENU_MAIN, MENU_MATERIAL, MENU_MN, menu_names, MENU_TEXT, MENU_UI, MENUS, EditorSettings::mesh_node_menu_open, Globals::mesh_nodes, NK_CTX, NUKLEAR_HOVERED, render_asset_instance_menu(), render_audio_menu(), render_editor_menu(), render_entity_menu(), render_light_menu(), render_lprobe_menu(), render_main_menu(), render_material_menu(), render_mn_menu(), render_selection_menu(), render_text_menu(), render_ui_menu(), rprobe_name_flags, scene_apv_flags, scene_file_name_flags, scene_lpv_flags, scene_name_flags, EditorSettings::selected_asset_instance_id, EditorSettings::selected_ent_id, EditorSettings::selected_light_id, EditorSettings::selected_material_mn_id, EditorSettings::selected_mn_id, EditorSettings::selected_text_id, EditorSettings::selected_ui_element_id, EditorSettings::selected_ui_menu_id, EditorSettings::selection_menu_open, tb_cont_flags, tb_id_flags, tb_text_flags, EditorSettings::text_menu_open, ui_cont_flags, ui_id_flags, ui_label_id_flags, ui_menu_id_flags, EditorSettings::ui_menu_open, ui_name_flags, ui_parent_cont_flags, and ui_scrollbar_flags.
Referenced by main(), and render_editor_menu().
| LightEditorMenu LIGHT_MENU = {0} |
Definition at line 35 of file editor.c.
Referenced by render_light_menu().
| MainEditorMenu MAIN_MENU = {0} |
Definition at line 36 of file editor.c.
Referenced by render_main_menu().
| LProbeEditorMenu LPROBE_MENU = {0} |
Definition at line 37 of file editor.c.
Referenced by render_lprobe_menu().
| AProbeEditorMenu APROBE_MENU = {0} |
Definition at line 38 of file editor.c.
Referenced by render_audio_menu().
| UIElementEditorMenu UIELEMENT_MENU = {0} |
Definition at line 39 of file editor.c.
Referenced by render_ui_menu().
| TextBoxEditorMenu TEXTBOX_MENU = {0} |
Definition at line 40 of file editor.c.
Referenced by render_text_menu().
| AssetInstanceEditorMenu AI_MENU = {0} |
Definition at line 41 of file editor.c.
Referenced by render_asset_instance_menu().
| MeshNodeEditorMenu MN_MENU = {0} |
Definition at line 42 of file editor.c.
Referenced by render_mn_menu().
| char gltf_names[256][256] |
Definition at line 46 of file editor.c.
Referenced by load_gltf_filenames(), and render_main_menu().
| int gltf_names_count = 0 |
Definition at line 47 of file editor.c.
Referenced by load_gltf_filenames(), and render_main_menu().
| char rprobe_names[256][256] |
Definition at line 49 of file editor.c.
Referenced by load_rprobe_filenames(), and render_main_menu().
| int rprobe_names_count = 0 |
Definition at line 50 of file editor.c.
Referenced by load_rprobe_filenames(), and render_main_menu().
| FileDirectoryRegistry scene_registry = {0} |
Definition at line 52 of file editor.c.
Referenced by FILE_DIR_REGISTRY_INIT(), render_main_menu(), scene_load(), scene_load_volumes(), scene_save(), and scene_save_volumes().
| FileDirectoryRegistry lightmap_registry = {0} |
Definition at line 53 of file editor.c.
Referenced by FILE_DIR_REGISTRY_INIT(), render_light_menu(), scene_load(), scene_load_volumes(), scene_save(), and scene_save_volumes().
| FileDirectoryRegistry light_registry = {0} |
Definition at line 54 of file editor.c.
Referenced by FILE_DIR_REGISTRY_INIT(), render_light_menu(), scene_load(), scene_load_volumes(), scene_save(), and scene_save_volumes().
| FileDirectoryRegistry sound_registry = {0} |
Definition at line 55 of file editor.c.
Referenced by FILE_DIR_REGISTRY_INIT(), and render_audio_menu().
| FileDirectoryRegistry aportal_registry = {0} |
Definition at line 56 of file editor.c.
Referenced by FILE_DIR_REGISTRY_INIT(), render_audio_menu(), scene_load(), scene_load_volumes(), scene_save(), and scene_save_volumes().
| FileDirectoryRegistry rprobe_registry = {0} |
Definition at line 57 of file editor.c.
Referenced by FILE_DIR_REGISTRY_INIT(), scene_load(), scene_load_volumes(), scene_save(), and scene_save_volumes().
| FileDirectoryRegistry lprobe_registry = {0} |
Definition at line 58 of file editor.c.
Referenced by FILE_DIR_REGISTRY_INIT(), render_lprobe_menu(), scene_load(), scene_load_volumes(), scene_save(), and scene_save_volumes().
| FileDirectoryRegistry aprobe_registry = {0} |
Definition at line 59 of file editor.c.
Referenced by FILE_DIR_REGISTRY_INIT(), render_audio_menu(), scene_load(), scene_load_volumes(), scene_save(), and scene_save_volumes().
| FileDirectoryRegistry scene_apv_registry = {0} |
Definition at line 60 of file editor.c.
Referenced by FILE_DIR_REGISTRY_INIT(), render_audio_menu(), scene_load(), scene_load_volumes(), scene_save(), and scene_save_volumes().
| FileDirectoryRegistry scene_lpv_registry = {0} |
Definition at line 61 of file editor.c.
Referenced by FILE_DIR_REGISTRY_INIT(), and render_lprobe_menu().
| FileDirectoryRegistry ui_registry = {0} |
Definition at line 62 of file editor.c.
Referenced by FILE_DIR_REGISTRY_INIT(), load_ui(), render_main_menu(), and save_ui().
Definition at line 149 of file editor.c.
Referenced by find_empty_undo(), find_last_undo(), and UNDO_INIT().
| int undo_stack_idx = 0 |
Definition at line 150 of file editor.c.
Referenced by find_last_undo().
| size_t undo_stack_size = 0 |
Definition at line 151 of file editor.c.
Referenced by check_stack_size(), push_nk_slider_undo(), push_raw_bytes_undo(), push_special_undo(), and push_special_undo_normal_bytes().
| Undo* top_undo = NULL |
Definition at line 152 of file editor.c.
Referenced by check_stack_size(), destroy_redo_history(), link_undo(), perform_newest_redo(), perform_newest_undo(), and UNDO_INIT().
| Undo* next_redo = NULL |
Definition at line 153 of file editor.c.
Referenced by link_undo(), perform_newest_redo(), and perform_newest_undo().
| const char QUERY_NAMES[PQUERY_MAX][256] |
Definition at line 1600 of file editor.c.
Referenced by update_performance_overlay().
| nk_bool gltf_file_names_open = nk_false |
Definition at line 2018 of file editor.c.
Referenced by render_main_menu().
| nk_bool rprobe_file_names_open = nk_false |
Definition at line 2019 of file editor.c.
Referenced by render_main_menu().
| const char target_types[4][256] |
Definition at line 2021 of file editor.c.
Referenced by render_entity_menu().
| const char menu_names[][256] |
The array for all editor menu names (to avoid Nuklear hashing problems).
Definition at line 2306 of file editor.c.
Referenced by handle_ui_selection_event(), process_sdl_event(), render_asset_instance_menu(), render_audio_menu(), render_editor_menu(), render_entity_menu(), render_lprobe_menu(), render_main_menu(), render_material_menu(), render_mn_menu(), render_text_menu(), and render_ui_menu().
| int tb_id_flags = NK_EDIT_INACTIVE |
Definition at line 2972 of file editor.c.
Referenced by render_editor_menu(), and render_text_menu().
| int tb_text_flags = NK_EDIT_INACTIVE |
Definition at line 2973 of file editor.c.
Referenced by render_editor_menu(), and render_text_menu().
| int tb_cont_flags = NK_EDIT_INACTIVE |
Definition at line 2974 of file editor.c.
Referenced by render_editor_menu().
| int ui_menu_id_flags = NK_EDIT_INACTIVE |
Definition at line 2975 of file editor.c.
Referenced by render_editor_menu(), and render_ui_menu().
| int ui_id_flags = NK_EDIT_INACTIVE |
Definition at line 2976 of file editor.c.
Referenced by render_editor_menu(), and render_ui_menu().
| int ui_parent_cont_flags = NK_EDIT_INACTIVE |
Definition at line 2977 of file editor.c.
Referenced by render_editor_menu().
| int ui_cont_flags = NK_EDIT_INACTIVE |
Definition at line 2978 of file editor.c.
Referenced by render_editor_menu(), and render_ui_menu().
| int ui_scrollbar_flags = NK_EDIT_INACTIVE |
Definition at line 2979 of file editor.c.
Referenced by render_editor_menu().
| int ui_label_id_flags = NK_EDIT_INACTIVE |
Definition at line 2980 of file editor.c.
Referenced by render_editor_menu(), and render_ui_menu().
| int aportal_flags = NK_EDIT_INACTIVE |
Definition at line 2981 of file editor.c.
Referenced by render_audio_menu(), and render_editor_menu().
| int apv_flags = NK_EDIT_INACTIVE |
Definition at line 2982 of file editor.c.
Referenced by render_audio_menu(), and render_editor_menu().
| int scene_apv_flags = NK_EDIT_INACTIVE |
Definition at line 2983 of file editor.c.
Referenced by render_audio_menu(), render_editor_menu(), and render_lprobe_menu().
| int lpv_flags = NK_EDIT_INACTIVE |
Definition at line 2984 of file editor.c.
Referenced by render_editor_menu(), and render_lprobe_menu().
| int scene_lpv_flags = NK_EDIT_INACTIVE |
Definition at line 2985 of file editor.c.
Referenced by render_editor_menu().
| int scene_name_flags = NK_EDIT_INACTIVE |
Definition at line 2986 of file editor.c.
Referenced by render_editor_menu(), and render_main_menu().
| int scene_file_name_flags = NK_EDIT_INACTIVE |
Definition at line 2987 of file editor.c.
Referenced by render_editor_menu(), and render_main_menu().
| int ui_name_flags = NK_EDIT_INACTIVE |
Definition at line 2988 of file editor.c.
Referenced by render_editor_menu(), and render_main_menu().
| int rprobe_name_flags = NK_EDIT_INACTIVE |
Definition at line 2989 of file editor.c.
Referenced by render_editor_menu(), and render_main_menu().
| int light_name_flags = NK_EDIT_INACTIVE |
Definition at line 2990 of file editor.c.
Referenced by render_editor_menu(), and render_light_menu().
| int lm_name_flags = NK_EDIT_INACTIVE |
Definition at line 2991 of file editor.c.
Referenced by render_editor_menu(), and render_light_menu().
| char aportal_name_buffer[256] |
Definition at line 2996 of file editor.c.
Referenced by render_audio_menu().
| char light_name_buffer[256] |
Definition at line 2997 of file editor.c.
Referenced by render_light_menu().
| char aprobe_name_buffer[256] |
Definition at line 2998 of file editor.c.
Referenced by render_audio_menu().
| char lprobe_name_buffer[256] |
Definition at line 2999 of file editor.c.
Referenced by render_lprobe_menu().
| char scene_apv_name_buffer[256] |
Definition at line 3000 of file editor.c.
Referenced by render_audio_menu().
| char scene_lpv_name_buffer[256] |
Definition at line 3001 of file editor.c.
Referenced by render_lprobe_menu().
| char text_id_buffer[256] |
Definition at line 3038 of file editor.c.
Referenced by render_text_menu().
| char menu_id_buffer[256] |
Definition at line 3415 of file editor.c.
Referenced by render_ui_menu().
| char element_id_buffer[256] |
Definition at line 3416 of file editor.c.
Referenced by render_ui_menu().
| char element_cid_buffer[256] |
Definition at line 3420 of file editor.c.
Referenced by render_ui_menu().
| char label_id_buffer[256] |
Definition at line 3422 of file editor.c.
Referenced by render_ui_menu().
| const char* MSAA_OPTIONS[] |
Definition at line 4674 of file editor.c.
Referenced by render_main_menu().
|
extern |
Definition at line 53 of file editor.c.
Referenced by FILE_DIR_REGISTRY_INIT(), render_light_menu(), scene_load(), scene_load_volumes(), scene_save(), and scene_save_volumes().
|
extern |
Definition at line 54 of file editor.c.
Referenced by FILE_DIR_REGISTRY_INIT(), render_light_menu(), scene_load(), scene_load_volumes(), scene_save(), and scene_save_volumes().
|
extern |
Definition at line 55 of file editor.c.
Referenced by FILE_DIR_REGISTRY_INIT(), and render_audio_menu().
|
extern |
Definition at line 56 of file editor.c.
Referenced by FILE_DIR_REGISTRY_INIT(), render_audio_menu(), scene_load(), scene_load_volumes(), scene_save(), and scene_save_volumes().
|
extern |
Definition at line 57 of file editor.c.
Referenced by FILE_DIR_REGISTRY_INIT(), scene_load(), scene_load_volumes(), scene_save(), and scene_save_volumes().
|
extern |
Definition at line 58 of file editor.c.
Referenced by FILE_DIR_REGISTRY_INIT(), render_lprobe_menu(), scene_load(), scene_load_volumes(), scene_save(), and scene_save_volumes().
|
extern |
Definition at line 59 of file editor.c.
Referenced by FILE_DIR_REGISTRY_INIT(), render_audio_menu(), scene_load(), scene_load_volumes(), scene_save(), and scene_save_volumes().
|
extern |
Definition at line 60 of file editor.c.
Referenced by FILE_DIR_REGISTRY_INIT(), render_audio_menu(), scene_load(), scene_load_volumes(), scene_save(), and scene_save_volumes().
|
extern |
Definition at line 62 of file editor.c.
Referenced by FILE_DIR_REGISTRY_INIT(), load_ui(), render_main_menu(), and save_ui().