forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Print an Image at screen in kernel mode...

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Stewie87



Joined: 03 Apr 2008
Posts: 39

PostPosted: Sat Mar 20, 2010 7:37 pm    Post subject: Print an Image at screen in kernel mode... Reply with quote

First of all, sorry for my bad English.
After that, I need simply to print an image at screen (to do a sort of a splash screen) but my program has to work in kernel mode.
I tried OSLib (the Sakya's mod too), the LUA Player's Graphics.c, the PNG/GU libraries... but all work only if I don't use kernel mode (so in user mode)... but I need to use kernel mode :°°°°°°°°°°°°(
Could you give me an help or just an hint to find a simple image library for PSP to print at screen an image in kernel mode please?

Thx to all will help me ;)
Back to top
View user's profile Send private message
Coldbird



Joined: 08 Feb 2007
Posts: 155

PostPosted: Sat Mar 20, 2010 11:50 pm    Post subject: Reply with quote

Afaik you gotta get yourself a pointer to the framebuffer and draw manually... other ways you can do this would be by hooking the GE driver functions I guess.
_________________
Been gone for some time. Now I'm back. Someone mind getting me up-2-date?
Back to top
View user's profile Send private message MSN Messenger
adrahil



Joined: 16 Mar 2006
Posts: 277

PostPosted: Sun Mar 21, 2010 1:36 am    Post subject: Reply with quote

Pure kernel mode programs are ugly (well, unless they are simply PRX modules for VSH or games, in which case you don't need to print stuff on screen anyways).

Make a user-mode program which will do the drawing and load a kernel mode PRX which runs the functions you need.
Back to top
View user's profile Send private message
Stewie87



Joined: 03 Apr 2008
Posts: 39

PostPosted: Sun Mar 21, 2010 2:45 am    Post subject: Reply with quote

adrahil wrote:
Pure kernel mode programs are ugly (well, unless they are simply PRX modules for VSH or games, in which case you don't need to print stuff on screen anyways).

Make a user-mode program which will do the drawing and load a kernel mode PRX which runs the functions you need.


Mmm, good idea! I will try so thx :)
Back to top
View user's profile Send private message
Coldbird



Joined: 08 Feb 2007
Posts: 155

PostPosted: Sun Mar 21, 2010 3:25 am    Post subject: Reply with quote

Not always possible... sometimes you gotta go the ugly way through kernel prx files, especially when other user modules using libc are hogging the whole memory range to themselves...
_________________
Been gone for some time. Now I'm back. Someone mind getting me up-2-date?
Back to top
View user's profile Send private message MSN Messenger
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Sun Mar 21, 2010 3:36 am    Post subject: Reply with quote

If you allocate a block of raw user memory from a kernel module to be used as the display list, then you can draw with the GU from kernel mode.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group