| View previous topic :: View next topic |
| Author |
Message |
Gary13579
Joined: 15 Aug 2005 Posts: 93
|
Posted: Fri Nov 04, 2005 10:19 am Post subject: Good tutorial for the gu? |
|
|
I was just using the pg.h and pg.c from hello world, but people have been saying I need to start using the Gu.
I've downloaded and installed libpng and zlib, now is there any pre-made files for blitting images, and hopefully transparency?
If there isn't, how about a good tutorial?
I've looked in the include files, and found a bit, but not much. I have also looked at samples/gu/blit, but that's a lot of code just to blit a random image... |
|
| Back to top |
|
 |
jsgf
Joined: 12 Jul 2005 Posts: 254
|
|
| Back to top |
|
 |
Gary13579
Joined: 15 Aug 2005 Posts: 93
|
Posted: Fri Nov 04, 2005 10:49 am Post subject: |
|
|
Yes, but PSPGL looks like it would be more complex :)
It was suggested that I should use the Lua Player graphics.c/h. I looked at this code, does anyone have a quick sample of how to load a PNG and display it to the screen using this method? |
|
| Back to top |
|
 |
71M
Joined: 21 Jun 2005 Posts: 122 Location: London
|
Posted: Fri Nov 04, 2005 11:28 am Post subject: |
|
|
You might want to look at the code to FileAssistant++, there's a simple texture manager CTextureManager.cpp and a simple GU wrapper in CGfx.cpp
Hopefully that'll give you a start for what you're needing.
PM me with any further questions you have regarding this.
Cheers,
71M |
|
| Back to top |
|
 |
Gary13579
Joined: 15 Aug 2005 Posts: 93
|
Posted: Fri Nov 04, 2005 11:38 am Post subject: |
|
|
I didn't know FA++ was open source :O
Plus I'd really rather have the simpliest thing possible. I'm new to programming on consoles, and pretty new to C++ itself.
Edit: I've gotten the PSP to blit images using the Lua Player graphics.c :D
Now, does anyone know how transparency works? |
|
| Back to top |
|
 |
chp
Joined: 23 Jun 2004 Posts: 313
|
Posted: Fri Nov 04, 2005 4:25 pm Post subject: |
|
|
The 'overcomplex' code was done in the process of increasing performance however. Since it makes such a big difference in speed, it has been kept that way, doing a fullscreen-blit as one operation really takes a big bite out of cache-effiency. I hope your code still deals with this. :) _________________ GE Dominator |
|
| Back to top |
|
 |
|