Added set_position_rotation_scale procedures

This commit is contained in:
2024-12-02 23:36:35 +01:00
parent e7522f9c55
commit 71668cc2f5
3 changed files with 68 additions and 4 deletions

View File

@@ -1,7 +1,5 @@
#load "../ui/widgets.jai";
#placeholder editor_ui_entity_creation;
pick_scene_view_at :: (camera: Camera, coordinates: Vector2) {
ray := normalized_screen_to_ray_v2(camera, coordinates);
@@ -51,8 +49,8 @@ editor_ui :: () {
//ui_space(15, 10);
if ui_toolbar_button("View") {
}
//if ui_toolbar_button("View") {
//}
ui_space(20, 0);
@@ -266,6 +264,10 @@ base_editor_update :: () {
}
}
if key_pressed(.CTRL) && key_down(.Z) {
undo();
}
if key_pressed(.CTRL) && key_down(.S) {
save_scene(engine.current_scene, "../assets/scenes/");
//show_message("Saved scene");