MCPcopy Create free account
hub / github.com/MyGUI/mygui / writeTextBitmap

Function writeTextBitmap

MyGUIEngine/src/msdfgen/main.cpp:196–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194#endif
195
196static bool writeTextBitmap(FILE *file, const float *values, int cols, int rows, int rowStride) {
197 for (int row = 0; row < rows; ++row) {
198 const float *cur = values;
199 for (int col = 0; col < cols; ++col)
200 fprintf(file, col ? " %02X" : "%02X", int(pixelFloatToByte(*cur++)));
201 fprintf(file, "\n");
202 values += rowStride;
203 }
204 return true;
205}
206
207static bool writeTextBitmapFloat(FILE *file, const float *values, int cols, int rows, int rowStride) {
208 for (int row = 0; row < rows; ++row) {

Callers 1

writeOutputFunction · 0.85

Calls 1

pixelFloatToByteFunction · 0.85

Tested by

no test coverage detected