Struct Tile

Inheritance Relationships

Base Types

Struct Documentation

struct Tile : public CE::Assets::Content2D, public CE::Assets::Animation::Cursor<Tile>

Declaration: final

One static grid-cell offset retaining atlas resources; its inherited one-slot cursor does not select another grid cell.

Public Functions

inline explicit Tile(std::size_t cell, const CE::Memory::Shared<CE::Rendering::Geometry::Buffer2D> &geometry, const CE::Memory::Shared<CE::Rendering::Resources::Image> &texture, std::shared_ptr<const CE::Rendering::Resources::Material> material = {})

Retain one static cell and resource handles without grid/domain validation.

See also

Detailed guide

Parameters:
  • cell – Original grid-cell offset; direct construction does not check it.

  • geometry – Retained uploaded atlas geometry.

  • texture – Retained atlas image.

  • material – Optional retained material; no default is constructed. The inherited cursor has index0/limit1; set_frame() cannot change this cell offset.

inline std::size_t cell() const

Declaration: [[nodiscard]]

Read the retained original grid-cell offset, independent of inherited cursor ordinal.

See also

Detailed guide