Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OneLoneCoder/olcPixelGameEngine
/ SetSize
Method
SetSize
olcPixelGameEngine.h:2029–2033 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
2027
}
2028
2029
void Sprite::SetSize(int32_t w, int32_t h)
2030
{
2031
width = w; height = h;
2032
pColData.resize(width * height, nDefaultPixel);
2033
}
2034
2035
Sprite::~Sprite()
2036
{
Callers
1
UpdateSprite
Method · 0.80
Calls
1
resize
Method · 0.45
Tested by
no test coverage detected