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 

Blitting images to Vram

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



Joined: 21 Feb 2008
Posts: 386

PostPosted: Sat Dec 20, 2008 5:00 am    Post subject: Blitting images to Vram Reply with quote

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:

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)
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