1 #ifndef EDITOR_COMPONENTS_RENDER_EDITMAPCOMPONENT_HPP
2 #define EDITOR_COMPONENTS_RENDER_EDITMAPCOMPONENT_HPP
4 #include <BLIB/Graphics/Sprite.hpp>
5 #include <BLIB/Interfaces/GUI/Renderer/Component.hpp>
6 #include <BLIB/Render.hpp>
33 return renderTexture ? renderTexture.operator->() :
nullptr;
37 bl::engine::Engine* enginePtr;
38 bl::rc::vk::RenderTexture::Handle renderTexture;
39 bl::gfx::Sprite sprite;
41 virtual void setVisible(
bool visible)
override;
42 virtual void onElementUpdated()
override;
43 virtual void onRenderSettingChange()
override;
44 virtual bl::ecs::Entity getEntity()
const override;
45 virtual void doCreate(bl::engine::Engine& engine, bl::gui::rdr::Renderer& renderer)
override;
46 virtual void doSceneAdd(bl::rc::Overlay* overlay)
override;
47 virtual void doSceneRemove()
override;
48 virtual void handleAcquisition()
override;
49 virtual void handleMove()
override;
All classes and functionality used for implementing the game editor.
GUI renderer component for the map itself.
EditMapComponent()
Creates the component.
bl::rc::RenderTarget * getTarget()
Returns the render target the map is being rendered to.
virtual ~EditMapComponent()=default
Destroys the component.