mitiru::adapter

Namespace catalog extracted from docs/API_CATALOG.md (3 types, 23 items).

Namespace catalog extracted from docs/API_CATALOG.md (3 types, 23 items).

NameKindItems
InputAdapterclass9
ScreenRendererclass9
ScreenTextRendererclass5
class InputAdapter : public sgc::IInputProvider 9
explicit InputAdapter(const InputState& state) noexcept
void pollPressedKeys(std::vector<int>& outPressedKeys) const override
[[nodiscard]] sgc::Vec2f mousePosition() const override
[[nodiscard]] sgc::Vec2f mouseDelta() const override
[[nodiscard]] bool isMouseButtonDown(int button) const override
[[nodiscard]] bool isMouseButtonPressed(int button) const override
[[nodiscard]] bool isMouseButtonReleased(int button) const override
[[nodiscard]] bool isKeyDown(int keyCode) const override
[[nodiscard]] bool isKeyJustPressed(int keyCode) const override
class ScreenRenderer : public sgc::IRenderer 9
explicit ScreenRenderer(Screen& screen) noexcept
void drawRect(const sgc::AABB2f& rect, const sgc::Colorf& color) override
void drawRectFrame(const sgc::AABB2f& rect, float thickness, const sgc::Colorf& color) override
void drawCircle(const sgc::Vec2f& center, float radius, const sgc::Colorf& color) override
void drawCircleFrame(const sgc::Vec2f& center, float radius, float , const sgc::Colorf& color) override
void drawLine(const sgc::Vec2f& from, const sgc::Vec2f& to, float thickness, const sgc::Colorf& color) override
void drawTriangle(const sgc::Vec2f& p0, const sgc::Vec2f& p1, const sgc::Vec2f& p2, const sgc::Colorf& color) override
void drawFadeOverlay(float alpha, const sgc::Colorf& color) override
void clearBackground(const sgc::Colorf& color) override
class ScreenTextRenderer : public sgc::ITextRenderer, public sgc::ITextMeasure 5
explicit ScreenTextRenderer(Screen& screen) noexcept
void drawText( std::string_view text, float fontSize, const sgc::Vec2f& pos, const sgc::Colorf& color) override
void drawTextCentered( std::string_view text, float fontSize, const sgc::Vec2f& center, const sgc::Colorf& color) override
[[nodiscard]] sgc::Vec2f measure( std::string_view text, float fontSize) const override
[[nodiscard]] float lineHeight(float fontSize) const override

Sourced from docs/API_CATALOG.md, auto-generated by tools/generate_api_catalog.py.