2D Image Display... best method?

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
Klimru
Posts: 34
Joined: Sat Apr 09, 2005 7:29 am

2D Image Display... best method?

Post by Klimru »

Ok, for example. Lets say I have a 2D image, fullscreen 480x272 by 24-bit in memory.

What would be the most efficient way to go about getting that data on to the screen?

And, for a little more advanced displaying... suppose I had several smaller images that I wanted to display on the screen in layers... some with semi-transparency and such?

I assume the best way to do this would be via the GU... any simple examples on how to do this?
rinco
Posts: 255
Joined: Fri Jan 21, 2005 2:12 pm
Location: Canberra, Australia

Post by rinco »

There are blit and copy samples in the sdk.

I plan on investigating the use of GU textures with SDL_gfx.

I will let you know what I find out or do.
71M
Posts: 122
Joined: Tue Jun 21, 2005 5:28 am
Location: London

Post by 71M »

Check out the FileAssistant++ source code, there is a CGfx class which is used for drawing GU graphics on the screen.
It may give you some insight into how to use the GU, alternatively there are many samples in the SDK GU samples folder.

Cheers,
71M
Post Reply