wren
Vulkan-based game engine
Loading...
Searching...
No Matches
editor::Editor Class Reference

#include <editor.hpp>

Collaboration diagram for editor::Editor:

Public Member Functions

 Editor (const std::shared_ptr< wren::Context > &ctx)
 
void on_update ()
 

Static Public Member Functions

static auto create (const std::shared_ptr< wren::Application > &app, const std::filesystem::path &project_path) -> wren::expected< std::shared_ptr< Editor > >
 

Private Member Functions

auto load_scene () -> wren::expected< void >
 
auto build_render_graph (const std::shared_ptr< wren::Context > &ctx) -> wren::expected< wren::GraphBuilder >
 

Private Attributes

Context editor_context_
 
Camera camera_
 
std::optional< flecs::entity > selected_entity_
 
std::shared_ptr< wren::scene::Scenescene_
 
std::shared_ptr< wren::Contextwren_ctx_
 
std::shared_ptr< wren::vk::Shader > mesh_shader_
 
std::shared_ptr< wren::vk::Shader > viewer_shader_
 
std::vector< VkDescriptorSet > dset_ {}
 
vk::Sampler texture_sampler_
 
std::optional< wren::math::Vec2fscene_resized_
 
wren::math::Vec2f last_scene_size_
 

Constructor & Destructor Documentation

◆ Editor()

editor::Editor::Editor ( const std::shared_ptr< wren::Context > & ctx)

Member Function Documentation

◆ build_render_graph()

auto editor::Editor::build_render_graph ( const std::shared_ptr< wren::Context > & ctx) -> wren::expected<wren::GraphBuilder>
private
Here is the call graph for this function:

◆ create()

auto editor::Editor::create ( const std::shared_ptr< wren::Application > & app,
const std::filesystem::path & project_path ) -> wren::expected<std::shared_ptr<Editor>>
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ load_scene()

auto editor::Editor::load_scene ( ) -> wren::expected<void>
private
Here is the call graph for this function:

◆ on_update()

void editor::Editor::on_update ( )
Here is the call graph for this function:

Member Data Documentation

◆ camera_

Camera editor::Editor::camera_
private

◆ dset_

std::vector<VkDescriptorSet> editor::Editor::dset_ {}
private

◆ editor_context_

Context editor::Editor::editor_context_
private

◆ last_scene_size_

wren::math::Vec2f editor::Editor::last_scene_size_
private

◆ mesh_shader_

std::shared_ptr<wren::vk::Shader> editor::Editor::mesh_shader_
private

◆ scene_

std::shared_ptr<wren::scene::Scene> editor::Editor::scene_
private

◆ scene_resized_

std::optional<wren::math::Vec2f> editor::Editor::scene_resized_
private

◆ selected_entity_

std::optional<flecs::entity> editor::Editor::selected_entity_
private

◆ texture_sampler_

vk::Sampler editor::Editor::texture_sampler_
private

◆ viewer_shader_

std::shared_ptr<wren::vk::Shader> editor::Editor::viewer_shader_
private

◆ wren_ctx_

std::shared_ptr<wren::Context> editor::Editor::wren_ctx_
private

The documentation for this class was generated from the following files: