Add note comment on ExportImageAsCode()
This commit is contained in:
parent
0bcb892975
commit
4e8e90b6df
1 changed files with 1 additions and 0 deletions
|
@ -450,6 +450,7 @@ void ExportImageAsCode(Image image, const char *fileName)
|
||||||
for (int i = 0; i < dataSize - 1; i++) bytesCount += sprintf(txtData + bytesCount, ((i%TEXT_BYTES_PER_LINE == 0)? "0x%x,\n" : "0x%x, "), ((unsigned char *)image.data)[i]);
|
for (int i = 0; i < dataSize - 1; i++) bytesCount += sprintf(txtData + bytesCount, ((i%TEXT_BYTES_PER_LINE == 0)? "0x%x,\n" : "0x%x, "), ((unsigned char *)image.data)[i]);
|
||||||
bytesCount += sprintf(txtData + bytesCount, "0x%x };\n", ((unsigned char *)image.data)[dataSize - 1]);
|
bytesCount += sprintf(txtData + bytesCount, "0x%x };\n", ((unsigned char *)image.data)[dataSize - 1]);
|
||||||
|
|
||||||
|
// NOTE: Text data length exported is determined by '\0' (NULL) character
|
||||||
SaveFileText(fileName, txtData);
|
SaveFileText(fileName, txtData);
|
||||||
|
|
||||||
RL_FREE(txtData);
|
RL_FREE(txtData);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue