Editor UI
This commit is contained in:
@@ -58,7 +58,6 @@ Transform_Gizmo :: struct {
|
||||
uniform_gizmo_scale: float;
|
||||
}
|
||||
|
||||
|
||||
Editor :: struct {
|
||||
show_menu: bool;
|
||||
should_check_entities: bool;
|
||||
@@ -72,6 +71,11 @@ Editor :: struct {
|
||||
menu_position: Vector2;
|
||||
}
|
||||
|
||||
init_editor :: () {
|
||||
aspect_ratio := cast(float)engine.renderer.render_target_width / cast(float)engine.renderer.render_target_height;
|
||||
engine.editor.camera = create_perspective_camera(.{0, 10, -10}, yaw=0, pitch=-40, roll=0.0, fov=40, aspect=aspect_ratio);
|
||||
}
|
||||
|
||||
update_transform_gizmo :: (ray: Ray, mouse_position: Vector2) -> bool {
|
||||
return false;
|
||||
// selected_entity := engine.editor.selected_entity;
|
||||
|
||||
Reference in New Issue
Block a user