How to make source code "images"
I have some very simple 1-bit images (black and white) that I want to store in the source code of my OpenGL program itself rather than having to load it from a file.
Anyone have any ideas on how to do this? And, on that note, is there any software out there that can convert images to cpp code?
Cheers.
The byte consist of 8 bits.
I think there is no way to make a bit of pixel size in OpenGL.
Try to email them...
I think there is no way to make a bit of pixel size in OpenGL.
Try to email them...
Palib, for DS coding has a program that does this for you. See here it makes a .c file that has an array of the color values and a color pallette to index if needed.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement