#101441 - Moeity - Tue Sep 05, 2006 3:55 pm
I'm coding up a little ebook reader software for the DS. I've got Freetype compiled, and can load a TrueType font and print basic glyph outlines to the screen. However, I can't get the colours right.
This is my first console system devel, and I'm not sure how these palettes work. Freetype is giving me back a 256 greyscale bitmap byte array. How can I tell the DS to render my byte buffer is in greyscale? As near as I can tell, I have to set the layer palette to greyscale, but I don't understand how to do this.
Any tips, or pointers to relevant documentation would be wonderful.
Thanks,
Moeity
This is my first console system devel, and I'm not sure how these palettes work. Freetype is giving me back a 256 greyscale bitmap byte array. How can I tell the DS to render my byte buffer is in greyscale? As near as I can tell, I have to set the layer palette to greyscale, but I don't understand how to do this.
Any tips, or pointers to relevant documentation would be wonderful.
Thanks,
Moeity