Skip to content

Commit

Permalink
GUI improvements. WIP Blender icons added (TODO: investigate license …
Browse files Browse the repository at this point in the history
…and credit or remove these)
  • Loading branch information
JuanDiegoMontoya committed Jul 6, 2024
1 parent 9776c07 commit 4212cab
Show file tree
Hide file tree
Showing 17 changed files with 280 additions and 96 deletions.
10 changes: 5 additions & 5 deletions data/config/defaultLayout.ini
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ DockId=0x0000000C,0
Pos=0,24
Size=335,271
Collapsed=0
DockId=0x0000000D,1
DockId=0x0000000D,2

[Window][###lights_window]
Pos=0,24
Expand Down Expand Up @@ -87,10 +87,10 @@ Collapsed=0
DockId=0x0000000E,0

[Window][ Materials##materials_window]
Pos=0,297
Size=335,404
Pos=0,24
Size=335,271
Collapsed=0
DockId=0x0000000E,1
DockId=0x0000000D,1

[Window][Perf##perf_window]
Pos=337,784
Expand All @@ -102,7 +102,7 @@ DockId=0x00000010,0
Pos=0,297
Size=335,404
Collapsed=0
DockId=0x0000000E,2
DockId=0x0000000E,1

[Window][Scene Graph##scene_graph_window]
Pos=0,24
Expand Down
Binary file added data/textures/icons/curve.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/textures/icons/ease_in_out.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/textures/icons/histogram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/textures/icons/icon_camera.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/textures/icons/icon_camera_flash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/textures/icons/icon_chroma_scope.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/textures/icons/icon_mesh_cube.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/textures/icons/icon_object.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/textures/icons/icon_rgb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/textures/icons/icon_sun.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/textures/icons/particles.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 9 additions & 2 deletions src/FrogRenderer2.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include "shaders/ShadeDeferredPbr.h.glsl"

#include <variant>
#include <vector>

// TODO: these structs should come from shared headers rather than copying them
FVOG_DECLARE_ARGUMENTS(VisbufferPushConstants)
Expand Down Expand Up @@ -670,7 +671,13 @@ class FrogRenderer2 final : public Application
bool showFpsInfo = true;
bool showSceneInfo = false;
struct CameraSelected{};
struct AtmosphereSelected{};
using SelectedThingyType = std::variant<std::monostate, CameraSelected, AtmosphereSelected, Utility::Node*>;
struct SunSelected{};
struct MaterialSelected
{
size_t index;
};
using SelectedThingyType = std::variant<std::monostate, CameraSelected, SunSelected, Utility::Node*, MaterialSelected>;
SelectedThingyType selectedThingy = std::monostate{};

std::unordered_map<std::string, Fvog::Texture> guiIcons;
};
5 changes: 5 additions & 0 deletions src/Fvog/Texture2.h
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,11 @@ namespace Fvog
return createInfo_;
}

[[nodiscard]] bool operator==(const Texture& other) const noexcept
{
return image_ == other.image_;
}

// TODO: Make layout per subresource and track it in the command buffer
std::unique_ptr<VkImageLayout> currentLayout{};

Expand Down
Loading

0 comments on commit 4212cab

Please sign in to comment.