Struct Asset

Inheritance Relationships

Base Type

Struct Documentation

struct Asset : public CE::Assets::Content2D

Declaration: final

A whole-image quad in local Y-up pixels about a normalized top-left pivot.

Direct construction retains handles without validating their compatibility.

Public Functions

inline Asset(std::shared_ptr<CE::Rendering::Geometry::Buffer2D> geometry, std::shared_ptr<CE::Rendering::Resources::Image> image)

Public Static Functions

static Asset from_image(std::shared_ptr<CE::Rendering::Resources::Image> image, CE::Rendering::Resources::Provider &provider, CE::Rendering::Geometry::Pivot pivot = CE::Rendering::Geometry::Pivot{0.0f, 0.0f})

Declaration: [[nodiscard]]

static Asset load(const std::filesystem::path &file, CE::Rendering::Resources::Provider &provider, CE::Rendering::Geometry::Pivot pivot = CE::Rendering::Geometry::Pivot{0.0f, 0.0f})

Declaration: [[nodiscard]]