Skip to content

BgImage

Modar Nasser edited this page Jun 18, 2024 · 3 revisions

In file LDtkLoader/Level.hpp

Struct : ldtk::BgImage

Contains information about the Level background image.

Fields

path

ldtk::FilePath ldtk::Level::BgImage::path

The relative path to the background image file.

crop

ldtk::IntRect ldtk::Level::BgImage::crop

The cropped sub rectangle of the displayed image.

pos

ldtk::IntPoint ldtk::Level::BgImage::pos

The position of the top left corner of the background image in the level.

scale

ldtk::FloatPoint ldtk::Level::BgImage::scale

The scale of the background image.

🔝

Clone this wiki locally