@ -1210,6 +1210,8 @@ namespace olc
const uint8_t GetMosaicEffect ( ) const ;
const uint8_t GetMosaicEffect ( ) const ;
void SetMosaicEffect ( uint8_t effectLevel ) ;
void SetMosaicEffect ( uint8_t effectLevel ) ;
void ClearDecalInstances ( ) ;
HWButton * const GetKeyboardState ( uint8_t key ) ;
HWButton * const GetKeyboardState ( uint8_t key ) ;
public :
public :
static std : : map < char , Pixel > charToColor ;
static std : : map < char , Pixel > charToColor ;
@ -2142,6 +2144,12 @@ namespace olc
return std : : string ( originalText ) ;
return std : : string ( originalText ) ;
}
}
void PixelGameEngine : : ClearDecalInstances ( ) {
for ( LayerDesc & layer : GetLayers ( ) ) {
layer . vecDecalInstance . clear ( ) ;
}
}
std : : u32string PixelGameEngine : : stripLeadingCol ( std : : u32string_view originalText ) {
std : : u32string PixelGameEngine : : stripLeadingCol ( std : : u32string_view originalText ) {
if ( originalText . length ( ) > 0 & & originalText [ 0 ] = = ' # ' ) return std : : u32string ( originalText . substr ( 7 ) ) ;
if ( originalText . length ( ) > 0 & & originalText [ 0 ] = = ' # ' ) return std : : u32string ( originalText . substr ( 7 ) ) ;
return std : : u32string ( originalText ) ;
return std : : u32string ( originalText ) ;