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

Function ReadTexture

olcPixelGameEngine.h:6310–6313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6308 }
6309
6310 void ReadTexture(uint32_t id, olc::Sprite* spr) override
6311 {
6312 glGetTexImage(GL_TEXTURE_2D, 0, GL_RGBA, GL_UNSIGNED_BYTE, spr->GetData());
6313 }
6314
6315 void ApplyTexture(uint32_t id) override
6316 {

Callers

nothing calls this directly

Calls 1

GetDataMethod · 0.80

Tested by

no test coverage detected