Blitting images to Vram

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

Moderators: cheriff, TyRaNiD

Post Reply
ne0h
Posts: 386
Joined: Thu Feb 21, 2008 2:15 am

Blitting images to Vram

Post by ne0h »

Hi,
I'm trying to blit a simple 2x2 image to Vram with sceGuTexImage, but I doesn't know how has to be the data of the image,
a example:

Code: Select all

char data[] = {
0x00,
0xFF,
0x00,
0xFF,
0xFF,
0xFF,
0x00,
0x00,
0xFF,
0xFF,
0x00,
0x00,
};
This is the bmp data of a 2 x 2 image without line terminator ( 00 00 ),
but how it has to be to blit to vram?
If I try to use this data I get two red pixels.... ( and probably others that I can't see)
Post Reply