I've been trying to figure this out for quite some time, but I always got to a dead end. I tried using the method described at the
CodeMii tutorial, but it's not a very nice way to do it; I've tried using several third-party libraries, including GRRLIB, but this one's not good for me either. Images are very easy to display with GRRLIB, but I also have a lot of text in my game, and it's very hard to work with text (the way I need it) in GRRLIB.
So my question is, what is the optimal way to display images, keeping in mind that these are my requirements:
- If it's a library it must not be in conflict wih 'printf' (GRRLIB, for example, is);
- I need to be able to specify its position (this will probably not be a problem
);
- I need to be able to stretch the image on the whole screen;
- I need to be able to remove the image;
- I need to be able to print text over the image.
So can anyone help me with a recommendation, and perhaps a template? (
libjpeg maybe?)
it's not particularly easy to mix images in with a console mode application.
If you want to use images, I'd recommend using GRRLib as a starter, though you can't then use console text, so you have to use the GRRLib commands to put text onto the screen, i.e.
CODEGRRLIB_Printf(380,370, tex_font, 0xFFFFFFFF, 1, "This is some text!");