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 SDL Bindings (in progress)
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 Jan 31 2004, 3:48 am
Newsgroups: perl.perl6.internals
From: chroma...@wgz.org (Chromatic)
Date: Sat, 31 Jan 2004 00:27:53 -0800
Local: Sat, Jan 31 2004 3:27 am
Subject: SDL Bindings (in progress)

Hi all,

Thanks to Leo for fixing up the struct PMCs, I've code that can create a
new SDL window and blit a blue rectangle onto it.  Animation's not far
off now!

There are a couple of bugs, however.  First, I had to add some C-type
conversion code to classes/unmanagedstruct.pmc.  It's almost certainly
wrong, but without it, I wouldn't have gone as far.  This may be related
to why it requires r 255, g 0, b 255 to draw a blue rectangle.

I'm not sure UnManagedStruct understands UINT8.

Second, my PIR is undoubtedly funky.  Still, the results speak for
themselves.

I've attached my patch to classes/unmanagedstruct.pmc and
src/call_list.txt as well as the library files and my demo PIR.
Enhancements and bug fixes welcome.

Be sure to run this in a directory containing "datatypes.pasm" or else
fix it to find the copy with Parrot (I tried).

-- c

  sdl.patch
1K Download

  sdl_library.patch
2K Download

  blue_rectangle.imc
1K Download

 
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.