Yeah!
Not that any advice given would have helped :D
You need to add this:
Code: Select all
guStart();
sceGuTexMode(GU_PSM_8888, 0, 0, 0);
sceGuTexFunc(GU_TFX_REPLACE, GU_TCC_RGBA);
sceGuTexFilter(GU_NEAREST, GU_NEAREST);
sceGuFinish();
sceGuSync(0,0);
At the end of every Intrafont function before flipping the screen.
So the whole thing looks like this:
Code: Select all
guStart();
intraFontSetStyle(ltn8, 1.5f,optioncol,0,0);
intraFontPrint(ltn8, 10, 10, "Hello");
sceGuFinish();
sceGuSync(0,0);
guStart();
sceGuTexMode(GU_PSM_8888, 0, 0, 0);
sceGuTexFunc(GU_TFX_REPLACE, GU_TCC_RGBA);
sceGuTexFilter(GU_NEAREST, GU_NEAREST);
sceGuFinish();
sceGuSync(0,0);
So to expanded further, asuming your image is already loaded,
and you're going to take J.F.'s advice:
Code: Select all
intraFontInit();
intraFont* ltn8;
ltn8 = intraFontLoad("flash0:/font/ltn8.pgf",INTRAFONT_CACHE_ASCII);
initGraphics();
blitAlphaImageToScreen(0, 0, 480, 272, backgroundimage, 0,0);
guStart();
intraFontSetStyle(ltn8, 1.5f,optioncol,0,0);
intraFontPrint(ltn8, 10, 10, "Hello");
sceGuFinish();
sceGuSync(0,0);
guStart();
sceGuTexMode(GU_PSM_8888, 0, 0, 0);
sceGuTexFunc(GU_TFX_REPLACE, GU_TCC_RGBA);
sceGuTexFilter(GU_NEAREST, GU_NEAREST);
sceGuFinish();
sceGuSync(0,0);
sceDisplayWaitVblankStart();
flipScreen();
Great when you actually get help on a forum eh? ;)
Now in the author's defence, you only needed to
RTFM! :D
If you're using the graphics library then you may need to reset the sceGuTex* states to what
they are defaulted to in the initGraphics() functions, after using the intraFont* functions.
Cheers, Art.
If not actually, then potentially.