Struct Content2D

Inheritance Relationships

Derived Types

Struct Documentation

struct Content2D

Retains immutable uploaded contents without a per-object frame selection.

Direct construction permits null handles; loaders/submission validate their own inputs. Native use still requires the original live backend domain.

Subclassed by CE::Assets::Graphics::Asset, CE::Assets::Sprites::Asset, CE::Assets::Tilesets::Animation, CE::Assets::Tilesets::Asset, CE::Assets::Tilesets::Tile, CE::Text::Legacy::Font

Public Functions

inline Content2D(std::shared_ptr<CE::Rendering::Geometry::Buffer2D> geometry, std::shared_ptr<CE::Rendering::Resources::Image> texture, std::shared_ptr<const CE::Rendering::Resources::Material> material = {})

Retain uploaded handles without selecting a frame or validating compatibility.

See also

Detailed guide

Parameters:
  • geometry – Retained geometry, possibly null for manually assembled values.

  • texture – Retained image, possibly null for manually assembled values.

  • material – Optional retained material; this constructor creates no default or native resource. Handles can outlive caches, but native use still requires their original live backend domain. Loader/submission paths validate their own inputs.

Public Members

const std::shared_ptr<CE::Rendering::Geometry::Buffer2D> geometry

Retained immutable uploaded geometry; null is permitted by direct construction.

const std::shared_ptr<CE::Rendering::Resources::Image> texture

Retained image contents in the same usable backend domain as the geometry.

const std::shared_ptr<const CE::Rendering::Resources::Material> material

Optional retained material recipe/handle; consumers choose fallback when absent.