MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / UploadTextCanvasToTexture

Method UploadTextCanvasToTexture

Source/Graphics/text.cpp:223–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221}
222
223void TextCanvasTexture::UploadTextCanvasToTexture() {
224 TextCanvas& text_canvas = impl_->text_canvas;
225 TextCanvas::MemoryBlock& bgra_block = impl_->bgra_block;
226 TextureRef& texture_ref = impl_->texture_ref;
227 text_canvas.GetBGRA(&bgra_block);
228 FillTextureFromBGRABlock(texture_ref, bgra_block, text_canvas.width(), text_canvas.height());
229}
230
231void TextCanvasTexture::ClearTextCanvas() {
232 impl_->text_canvas.Clear();

Callers

nothing calls this directly

Calls 4

FillTextureFromBGRABlockFunction · 0.85
GetBGRAMethod · 0.80
widthMethod · 0.45
heightMethod · 0.45

Tested by

no test coverage detected