olcPixelGameEngine v2.28
The official distribution of olcPixelGameEngine, a tool used in javidx9's YouTube videos and projects
Loading...
Searching...
No Matches
olc::Decal Class Reference

#include <olcPixelGameEngine.h>

Public Member Functions

 Decal (olc::Sprite *spr, bool filter=false, bool clamp=true)
 
 Decal (const uint32_t nExistingTextureResource, olc::Sprite *spr)
 
virtual ~Decal ()
 
void Update ()
 
void UpdateSprite ()
 

Public Attributes

int32_t id = -1
 
olc::Spritesprite = nullptr
 
olc::vf2d vUVScale = { 1.0f, 1.0f }
 

Constructor & Destructor Documentation

◆ Decal() [1/2]

olc::Decal::Decal ( olc::Sprite * spr,
bool filter = false,
bool clamp = true )

◆ Decal() [2/2]

olc::Decal::Decal ( const uint32_t nExistingTextureResource,
olc::Sprite * spr )

◆ ~Decal()

virtual olc::Decal::~Decal ( )
virtual

Member Function Documentation

◆ Update()

void olc::Decal::Update ( )

◆ UpdateSprite()

void olc::Decal::UpdateSprite ( )

Member Data Documentation

◆ id

int32_t olc::Decal::id = -1

◆ sprite

olc::Sprite* olc::Decal::sprite = nullptr

◆ vUVScale

olc::vf2d olc::Decal::vUVScale = { 1.0f, 1.0f }

The documentation for this class was generated from the following file: