Struct Content2D
Defined in File asset2d.h
Inheritance Relationships
Derived Types
public CE::Assets::Graphics::Asset(Struct Asset)public CE::Assets::Sprites::Asset(Struct Asset)public CE::Assets::Tilesets::Animation(Struct Animation)public CE::Assets::Tilesets::Asset(Struct Asset)public CE::Assets::Tilesets::Tile(Struct Tile)protected CE::Text::Legacy::Font(Struct Font)
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
Retain uploaded handles without selecting a frame or validating compatibility.
See also
- 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.