Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion library/sdl_types.imc #2
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Chromatic  
View profile  
 More options Feb 19 2004, 12:48 am
Newsgroups: perl.perl6.internals
From: chroma...@wgz.org (Chromatic)
Date: Wed, 18 Feb 2004 20:45:19 -0800
Local: Wed, Feb 18 2004 11:45 pm
Subject: Re: [PATCH] library/sdl_types.imc #2

On Fri, 2004-02-13 at 09:21, Jens Rieks wrote:
> This patch fixes _SDL_WaitEvent a bit; SDL_WaitEvent returns an integer and
> not a SDL_Event.
> It also introduces _SDL_PollEvent which is mostly a copy of _SDL_WaitEvent.
> Finally, _SDL_loop is modified to allow an "idle" event entry that gets called
> if no events are pending. If such an event is defined, _SDL_PollEvent is used
> to check whether events are pending. The idle callback is made every 50ms,
> "timer callback" might be a better name.

Thanks, applied with a few tweaks.

We can figure out a slightly nicer interface as we start to use it in
real PIR programs -- and from higher level languages.

> It is also necessary to add code for SDL_PollEvent to library/sdl.pasm.

Done.

> I propose to rename this file to sdl_init.pasm; I'am working on a sdl.imc file
> that makes it much easier to use SDL with PIR, because it hides much of the
> 'internals'. I will send the file to the list in a few minutes (the
> documentation if not yet sufficient at the moment).

I'm not sure of the best way to organize these.  Maybe we should wait
until object support improves.  On the other hand, I would like to see
how Perl 6 or Pirate would call these libraries before commiting one way
or the other.

-- c


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.