PSP Hacks - Forums
Go Back   PSP Hacks - Forums > PSP Community > PSP Programming & Development

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 10-13-2008, 12:46 AM
Dark_Sabre's Avatar
Dark_Sabre Dark_Sabre is offline
Programmer
PSP Enthusiast
 
Join Date: Jul 2007
Location: Tauranga, New Zealand
Posts: 534
Dark_Sabre User Has a Beginner Reputation
Default oslib help - deleting images off-screen and duplicate images

Well I've been thinking that since I'm going to need to know these for a project im working on could someone please show me how to do these two?
__________________
----------Current project----------
---------------------
A shell which will have music, picture, game, text editors etc included!
WIP Thread
Reply With Quote
  #2  
Old 10-13-2008, 03:07 PM
roe-ur-boat roe-ur-boat is offline
Senior Member
PSP Smarty
 
Join Date: Apr 2007
Location: Ireland
Posts: 171
roe-ur-boat User Has a Beginner Reputation
Default

You can't just delete images off the screen... Just use a clear screen function or whatever. Also, what do you mean by duplicate images? If you mean drawing the same one twice just well... do that.
Reply With Quote
  #3  
Old 10-14-2008, 01:45 AM
Dark_Sabre's Avatar
Dark_Sabre Dark_Sabre is offline
Programmer
PSP Enthusiast
 
Join Date: Jul 2007
Location: Tauranga, New Zealand
Posts: 534
Dark_Sabre User Has a Beginner Reputation
Default

that works? hmm..... and by deleting say for after drawing it say it goes off screen how would I get rid of it?
__________________
----------Current project----------
---------------------
A shell which will have music, picture, game, text editors etc included!
WIP Thread
Reply With Quote
  #4  
Old 10-14-2008, 04:15 AM
Blade_punk's Avatar
Blade_punk Blade_punk is online now
Moderator
PSP Monk
 
Join Date: Nov 2006
Location: Candy Mountain
Posts: 2,572
Blade_punk User Has a Beginner Reputation
Default

Do you mean remove it from memory? If so use oslDeleteImage().
If you dont want it drawn at all just... Dont draw it.
Reply With Quote
  #5  
Old 10-14-2008, 04:32 AM
Dark_Sabre's Avatar
Dark_Sabre Dark_Sabre is offline
Programmer
PSP Enthusiast
 
Join Date: Jul 2007
Location: Tauranga, New Zealand
Posts: 534
Dark_Sabre User Has a Beginner Reputation
Default

I mean say e.g. a bullet is shot from a ship and it collides with something, what would get rid of the image from the screen and yet still let me use oslDrawImage (I think thats it)
__________________
----------Current project----------
---------------------
A shell which will have music, picture, game, text editors etc included!
WIP Thread
Reply With Quote
  #6  
Old 10-14-2008, 04:52 AM
Scorpus's Avatar
Scorpus Scorpus is online now
Programmer
PSP God
 
Join Date: Jan 2008
Location: Australia
Posts: 3,343
Scorpus will become famous soon enough
Default

No, that removes the image from the RAM so you would have to reload it again if you wanted to draw it again
Reply With Quote
  #7  
Old 10-14-2008, 05:02 AM
Blade_punk's Avatar
Blade_punk Blade_punk is online now
Moderator
PSP Monk
 
Join Date: Nov 2006
Location: Candy Mountain
Posts: 2,572
Blade_punk User Has a Beginner Reputation
Default

Not drawing the image doesnt remove it from the memory.
If you wanna draw the same image maore than once just use
oslDrawImageXY(X, Y, whatever) more than once with different coords. In regards to removing from the screen something basic would be:
Code:
int blit = 1;
image = blah;
while(1)
{
	if(blit == 1)oslDrawImage(image);
	if(something happens)blit = 0;
}
Reply With Quote
Reply

 



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 07:06 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©