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

Method ReadTexture

olcPixelGameEngine.h:5720–5723  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5718 }
5719
5720 void ReadTexture(uint32_t id, olc::Sprite* spr) override
5721 {
5722 glGetTexImage(GL_TEXTURE_2D, 0, GL_RGBA, GL_UNSIGNED_BYTE, spr->GetData());
5723 }
5724
5725 void ApplyTexture(uint32_t id) override
5726 {

Callers 1

UpdateSpriteMethod · 0.45

Calls 1

GetDataMethod · 0.80

Tested by

no test coverage detected