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

Method UpdateTexture

olcPixelGameEngine.h:5714–5718  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5712 }
5713
5714 void UpdateTexture(uint32_t id, olc::Sprite* spr) override
5715 {
5716 UNUSED(id);
5717 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, spr->width, spr->height, 0, GL_RGBA, GL_UNSIGNED_BYTE, spr->GetData());
5718 }
5719
5720 void ReadTexture(uint32_t id, olc::Sprite* spr) override
5721 {

Callers 1

UpdateMethod · 0.45

Calls 1

GetDataMethod · 0.80

Tested by

no test coverage detected