| View previous topic :: View next topic |
| Author |
Message |
Stewie87
Joined: 03 Apr 2008 Posts: 39
|
Posted: Sat Mar 20, 2010 7:37 pm Post subject: Print an Image at screen in kernel mode... |
|
|
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 |
|
 |
Coldbird

Joined: 08 Feb 2007 Posts: 155
|
Posted: Sat Mar 20, 2010 11:50 pm Post subject: |
|
|
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 |
|
 |
adrahil
Joined: 16 Mar 2006 Posts: 277
|
Posted: Sun Mar 21, 2010 1:36 am Post subject: |
|
|
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 |
|
 |
Stewie87
Joined: 03 Apr 2008 Posts: 39
|
Posted: Sun Mar 21, 2010 2:45 am Post subject: |
|
|
| 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 |
|
 |
Coldbird

Joined: 08 Feb 2007 Posts: 155
|
Posted: Sun Mar 21, 2010 3:25 am Post subject: |
|
|
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 |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Sun Mar 21, 2010 3:36 am Post subject: |
|
|
| 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 |
|
 |
|