Display text in xmb with prx
-
- Posts: 87
- Joined: Mon Jan 08, 2007 12:16 pm
- Location: Australia
Display text in xmb with prx
Edit: Not Sorted
I cant seem to get any text what so ever to print with a prx over the xmb can anyone tell me what functions i need to just print hello world cheers
another question though is it possible for the font that the xmb uses for menus and the like to print text from a prx to the screen
I cant seem to get any text what so ever to print with a prx over the xmb can anyone tell me what functions i need to just print hello world cheers
another question though is it possible for the font that the xmb uses for menus and the like to print text from a prx to the screen
-
- Posts: 87
- Joined: Mon Jan 08, 2007 12:16 pm
- Location: Australia
-
- Posts: 87
- Joined: Mon Jan 08, 2007 12:16 pm
- Location: Australia
-
- Posts: 87
- Joined: Mon Jan 08, 2007 12:16 pm
- Location: Australia
-
- Posts: 25
- Joined: Fri Jan 19, 2007 3:03 pm
-
- Posts: 87
- Joined: Mon Jan 08, 2007 12:16 pm
- Location: Australia
-
- Posts: 71
- Joined: Fri May 05, 2006 5:59 pm
i havent done much research into the subject but i hope this helps out:Zettablade wrote:You have to write the text directly to vram. A_nub's VSHPong does the. And it also deals with the black background of the text. Wait until he releases the src code, then check it out :)
you should find this in the blit_string function...
Code: Select all
for(p=0;p<8;p++)
{
vram32[offset] = (font & 0x80) ? fg_col : bg_col;
font <<= 1;
offset++;
}
Code: Select all
for(p=0;p<8;p++)
{
if(font & 0x80)
vram32[offset] = fg_col;
font <<= 1;
offset++;
}
- be2003
blog
blog
-
- Posts: 87
- Joined: Mon Jan 08, 2007 12:16 pm
- Location: Australia
-
- Posts: 87
- Joined: Mon Jan 08, 2007 12:16 pm
- Location: Australia
i think the main thing that is holding alot more developers back from producing more plugins and prxs is the fact that there is not much documentation or anything really to do with displaying reliable and usable text and graphics onto the xmb. For my self its holding back the release of an app that i have that also has a xmb plugin while i can write prx i cant display what i want and it makes it pretty much useless
Let me add that I share the same concerns. It is not something I have played a lot with, but I agree that the idea of e.g. having a firmware plugin that when the user presses a key combo the plugin displays a (graphical) window menu such as an overlay with alpha-blending is something I was planning to experiment with, and opens a lot of possibilities to customize and extend custom firwares.reefbarman wrote: there is not much documentation or anything really to do with displaying reliable and usable text and graphics onto the xmb...
Unfortunately, I am not sure where to start. Some hints and "proof of concepts" (like if it is a "modal-dialog"-like overlay it may be possible to capture the screen from VRAM and draw the overlay with blending) I am aware of seem to imply that this would require low level access.
Mine is not a very useful post, just adding that I've been following the thread in case a framework, proof of concept, prototype or sample (e.g. a user presses L and a circle is drawn in the screen) to do graphical layers/overlays in the XMB by means of plugins appears and it would be welcome :o)
-
- Posts: 87
- Joined: Mon Jan 08, 2007 12:16 pm
- Location: Australia
actually you have given me idea with talking about overlays, i hadn't thought of doing it that way before, but i use a 2d graphics library called OSlib to do alot of my graphical displays in my apps, and it has the abilities to grab the screen put it into its own buffer in vram so you can then draw onto the picture and then put it back out to the screen, i might give this a go and if i can get the library to work nice within a prx function i may just be able to get anything to the screen then thanks for the ideaAnissian wrote:Let me add that I share the same concerns. It is not something I have played a lot with, but I agree that the idea of e.g. having a firmware plugin that when the user presses a key combo the plugin displays a (graphical) window menu such as an overlay with alpha-blending is something I was planning to experiment with, and opens a lot of possibilities to customize and extend custom firwares.reefbarman wrote: there is not much documentation or anything really to do with displaying reliable and usable text and graphics onto the xmb...
Unfortunately, I am not sure where to start. Some hints and "proof of concepts" (like if it is a "modal-dialog"-like overlay it may be possible to capture the screen from VRAM and draw the overlay with blending) I am aware of seem to imply that this would require low level access.
Mine is not a very useful post, just adding that I've been following the thread in case a framework, proof of concept, prototype or sample (e.g. a user presses L and a circle is drawn in the screen) to do graphical layers/overlays in the XMB by means of plugins appears and it would be welcome :o)
-
- Posts: 87
- Joined: Mon Jan 08, 2007 12:16 pm
- Location: Australia
oh excellent i didnt realise there was such a function ill have to give it ago, but i would still like to learn how to write text and graphics directly to the screen as i want to have a pop up box overlay and such over the top of the xmb.dot_blank wrote:just use the dialog utility of psputility to output text and let psp handle the fonts
But i think sceUtilityMsgDialogInitStart is not quite what im looking for as i need to be able to define where it is on screen size and colour
thanks though dot