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

Method GetBGRA

Source/Graphics/text.cpp:153–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153void TextCanvas::GetBGRA(MemoryBlock* mem_to_fill) {
154 unsigned num_pixels = pixels_.size();
155 mem_to_fill->resize(num_pixels);
156 for (unsigned i = 0; i < num_pixels; ++i) {
157 mem_to_fill->at(i) = pixels_[i];
158 }
159}
160
161void TextCanvas::Clear() {
162 for (unsigned char& pixel : pixels_) {

Callers 2

CreateMethod · 0.80

Calls 3

sizeMethod · 0.45
resizeMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected