Skip to content

olc::Decal

matt-hayward edited this page Apr 20, 2020 · 1 revision

A class that represents a GPU-resident storage of an olc::Sprite.

Fields:

int32_t id

The id of the Decal

olc::Sprite* sprite

The sprite from which the Decal is derived

olc::vf2d vUVScale

Methods:

olc::Decal::Decal(olc::Sprite* spr)

Constructor that loads an olc::Sprite as a Decal

olc::Decal::~Decal()

Default destructor clears memory allocated by the Decal's constructor

void olc::Decal::Update()

Updates the Decal with any changes that have been applied to the associated Sprite

Clone this wiki locally