|
wren
Vulkan-based game engine
|
#include "inspector_panel.hpp"#include <imgui.h>#include <misc/cpp/imgui_stdlib.h>#include <wren/scene/components/mesh.hpp>#include <wren/scene/components/tag.hpp>#include <wren/scene/components/transform.hpp>#include <wren/scene/entity.hpp>
Macros | |
| #define | CHECK_ID_IS_COMPONENT(id, component_type) id == selected_entity->world().component<component_type>().id() |
Functions | |
| void | draw_component (const editor::Context &ctx, wren::scene::components::MeshRenderer &mesh_renderer) |
| void | draw_component (wren::scene::components::Transform &transform) |
| void | draw_component (const std::string_view &tag, wren::math::Vec3f &vec) |
| void | render_inspector_panel (const editor::Context &ctx, const std::shared_ptr< wren::scene::Scene > &scene, const std::optional< flecs::entity > &selected_entity) |
| #define CHECK_ID_IS_COMPONENT | ( | id, | |
| component_type ) id == selected_entity->world().component<component_type>().id() |
| void draw_component | ( | const editor::Context & | ctx, |
| wren::scene::components::MeshRenderer & | mesh_renderer ) |


| void draw_component | ( | const std::string_view & | tag, |
| wren::math::Vec3f & | vec ) |

| void draw_component | ( | wren::scene::components::Transform & | transform | ) |

| void render_inspector_panel | ( | const editor::Context & | ctx, |
| const std::shared_ptr< wren::scene::Scene > & | scene, | ||
| const std::optional< flecs::entity > & | selected_entity ) |

