MCPcopy Create free account
hub / github.com/OneLoneCoder/olcPixelGameEngine / UpdateTexture

Function UpdateTexture

olcPixelGameEngine.h:6304–6308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6302 }
6303
6304 void UpdateTexture(uint32_t id, olc::Sprite* spr) override
6305 {
6306 UNUSED(id);
6307 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, spr->width, spr->height, 0, GL_RGBA, GL_UNSIGNED_BYTE, spr->GetData());
6308 }
6309
6310 void ReadTexture(uint32_t id, olc::Sprite* spr) override
6311 {

Callers

nothing calls this directly

Calls 1

GetDataMethod · 0.80

Tested by

no test coverage detected