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 

Psp Utility Diagram over sdl

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



Joined: 20 Oct 2008
Posts: 355

PostPosted: Mon Mar 16, 2009 8:50 pm    Post subject: Psp Utility Diagram over sdl Reply with quote

i searched and found one thread using psputility but it was using SDL_gl but i'm wanting to use just plain old SDL at the moment how can i use sdl and still be able to use dialogs like web browser, keyboard, net, etc...
Back to top
View user's profile Send private message MSN Messenger
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Tue Mar 17, 2009 1:23 pm    Post subject: Reply with quote

You'll probably need to stop rendering first. Does it have a separate draw/render loop? If it does then set a flag outside and pause the loop then it *shouldn't* conflict with utility dialogs.
Back to top
View user's profile Send private message
coolkehon



Joined: 20 Oct 2008
Posts: 355

PostPosted: Wed Mar 18, 2009 1:52 am    Post subject: Reply with quote

i didnt see any separate render loop when i try to update the utility where its supposed to draw it it doesnt it only draws what it draws and i looked at the source code of sdl and saw no way to update the gu therefore i cant update the utility
Back to top
View user's profile Send private message MSN Messenger
coolkehon



Joined: 20 Oct 2008
Posts: 355

PostPosted: Fri Mar 20, 2009 12:55 am    Post subject: Reply with quote

besides what i posted is there now way to get this to work
Back to top
View user's profile Send private message MSN Messenger
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Fri Mar 20, 2009 6:36 am    Post subject: Reply with quote

SDL has to have a loop or you wouldn't be rendering. It usually ends with something like SDL_UpdateRects and/or SDL_Flip. As long as you interrupt the main loop, you can always do your own rendering, then go back to the loop.
Back to top
View user's profile Send private message AIM Address
coolkehon



Joined: 20 Oct 2008
Posts: 355

PostPosted: Fri Mar 20, 2009 7:25 am    Post subject: Reply with quote

yeah thats the problem i couldnt find the way to interupt the main loop it just blits all at once i'm a newbie at sdl got any ideas cause i'm lost i even looked at source and saw no way it looks like it draw the entire buffer to screen and flips but how can i intercept that
Back to top
View user's profile Send private message MSN Messenger
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Fri Mar 20, 2009 8:34 am    Post subject: Reply with quote

Just put a call to your code after the flip. Do the GU init, do the utility thingy, then finally do the same init that's in SDL to leave it in a state SDL can use, then return back to the SDL loop.
Back to top
View user's profile Send private message AIM Address
coolkehon



Joined: 20 Oct 2008
Posts: 355

PostPosted: Fri Mar 20, 2009 9:01 pm    Post subject: Reply with quote

yeah well i'm busy working on numerous other things besides college right now so i will have to get back to this but thanks for your help and i'll try it some time
Back to top
View user's profile Send private message MSN Messenger
coolkehon



Joined: 20 Oct 2008
Posts: 355

PostPosted: Sat Apr 25, 2009 1:09 am    Post subject: Reply with quote

ya know what i'm still trying to get this working and i cant get it working at all i've tried everything i could really use some help on this because i dont know what to do i'm new to hooking and the dialogs and SDL but want to use a library thats portable and switch from oslib but want the dialogs for savestate,htmlviewer,etc like keyboard can someone help me figure this out its probably something simple i got the thing to come up it just flashes though and i dont even know where to begin with htmlviewer because it has to have a pointer to display list i think

here is my code
http://www.sendspace.com/file/bdyl80

edit: looked at source more and found that there is a SDL_VideoDevice struct that i dont even have access to how can i fix this although i though i could just update the gu after SDL_flip but was wrong because it flickers and i would like to have this not filcker (cool website though) anyone help would be greatly appreciated all these views and not post man comeone give me some help[/code]
Back to top
View user's profile Send private message MSN Messenger
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