43 public CovelliteGui::RenderInterface
45 using String_t = ::alicorn::extension::std::String;
46 using Render_t = ::std::function<void(
void)>;
47 using Renders_t = ::std::vector<Render_t>;
49 using RendersPtr_t = ::std::shared_ptr<Component_t::Renders>;
50 using ComponentPtr_t = ::std::shared_ptr<Component_t>;
51 using Object_t = ::std::vector<ComponentPtr_t>;
55 void RenderGeometry(CovelliteGui::Vertex *,
int,
int *,
int,
56 CovelliteGui::TextureHandle,
const CovelliteGui::Vector2f &)
override;
57 CovelliteGui::CompiledGeometryHandle CompileGeometry(CovelliteGui::Vertex *,
58 int,
int *,
int, CovelliteGui::TextureHandle)
override;
59 void RenderCompiledGeometry(CovelliteGui::CompiledGeometryHandle,
60 const CovelliteGui::Vector2f &)
override;
61 void ReleaseCompiledGeometry(CovelliteGui::CompiledGeometryHandle)
override;
62 void EnableScissorRegion(
bool)
override;
63 void SetScissorRegion(
int,
int,
int,
int)
override;
64 bool LoadTexture(CovelliteGui::TextureHandle &, CovelliteGui::Vector2i &,
65 const CovelliteGui::String &)
override;
66 bool GenerateTexture(CovelliteGui::TextureHandle &,
67 const CovelliteGui::byte *,
const CovelliteGui::Vector2i &)
override;
68 void ReleaseTexture(CovelliteGui::TextureHandle)
override;
71 void RenderScene(
void);
74 const RendersPtr_t m_pRenders;
77 const Renders_t m_DefaultRenders;
78 ComponentPtr_t m_pScissorRect;
83 ComponentPtr_t pPosition;
87 ::std::map<size_t, Object> m_Objects;
89 Renders_t m_RenderQueue;
92 explicit Renderer(
const RendersPtr_t &);
95 friend ::covellite::api::renderer::Renderer;