Re: SDL-"starting problems" [noob]

View: New views
4 Messages — Rating Filter:   Alert me  

Parent Message unknown Re: SDL-"starting problems" [noob]

by nfries88 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
everything in your main function starting from SDL_WaitEvent needs to be in a loop.
otherwise, SDL only processes a single event (the one you waited for with SDL_WaitEvent) and continually updates the screen using your UpdateScreen method.

_______________________________________________
SDL mailing list
SDL@...
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Parent Message unknown Re: SDL-"starting problems" [noob]

by der_al0x :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
thanks a lot Very Happy
I didn't think about that ^^'

_______________________________________________
SDL mailing list
SDL@...
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Parent Message unknown Re: SDL-"starting problems" [noob]

by nfries88 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
if statements aren't loops... try while(true){ if(SDL_PollEvent(&event)){ ... } }

_______________________________________________
SDL mailing list
SDL@...
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Parent Message unknown Re: SDL-"starting problems" [noob]

by der_al0x :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.







nfries88 wrote:
if statements aren't loops... try while(true){ if(SDL_PollEvent(&event)){ ... } }

did it exactly like that just forgot I'm just "writing" with my function and not "using" it ^^' thanks Very Happy

_______________________________________________
SDL mailing list
SDL@...
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org