wren
Vulkan-based game engine
Loading...
Searching...
No Matches
inspector_panel.cpp File Reference
#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>
Include dependency graph for inspector_panel.cpp:

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)
 

Macro Definition Documentation

◆ CHECK_ID_IS_COMPONENT

#define CHECK_ID_IS_COMPONENT ( id,
component_type )    id == selected_entity->world().component<component_type>().id()

Function Documentation

◆ draw_component() [1/3]

void draw_component ( const editor::Context & ctx,
wren::scene::components::MeshRenderer & mesh_renderer )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ draw_component() [2/3]

void draw_component ( const std::string_view & tag,
wren::math::Vec3f & vec )
Here is the call graph for this function:

◆ draw_component() [3/3]

void draw_component ( wren::scene::components::Transform & transform)
Here is the call graph for this function:

◆ render_inspector_panel()

void render_inspector_panel ( const editor::Context & ctx,
const std::shared_ptr< wren::scene::Scene > & scene,
const std::optional< flecs::entity > & selected_entity )
Here is the call graph for this function:
Here is the caller graph for this function: