SDL

Pupeno pupeno at pupeno.com
Mon Oct 11 01:45:13 PDT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello Slaters,
I've started implementing SDL as primitives and here it is the result of 
today's work.
A patch, for the existing files and a tar.bz2 for the new files (to be untared 
on the root of Slate).
In short what I've done:
1) Learn a lot (I've spent more time learning how to do it and bugging Brian 
than really doing it).
2) Initialize and quit SDL.
3) Set a video mode.

It's all kinda hacked up, but a start.
To test it, after aplying the patch and untaring the tar and remaking the 
virtual machine and the image, you can run, in slate.
SDL initialize.
SDL setVideoWidth: 600 Height: 480 BPP: 8.
And a window, on X11, of size 600x480 will appear.
To remove it, SDL quit.
I've tried to implement founctions to draw a pixel and to get the value of a 
pixel, but it didn't work. getPixel is half done, putPixel is finished but it 
didn't work. I've had a lot of trouble figuring out how to pass data from C 
to Slate and from Slate to C. (there are ints, Uint32, Uint8, pointers, etc, 
etc).
Thanks.
- -- 
Pupeno: pupeno at pupeno.com - http://www.pupeno.com
PS: Also, a usefull .cvsignore.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBakgdfW48a9PWGkURAkypAJ43QDDrN76uRKPcTdJ2tCadgi4S9gCgh1ej
V+sYxaCyJ5Ewg7yoNQ/lTGs=
=HFGA
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sdlinitial.patch
Type: text/x-diff
Size: 3502 bytes
Desc: not available
Url : /archives/slate/attachments/20041011/92fa276c/sdlinitial.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sdlinitial.tar.bz2
Type: application/x-tbz
Size: 1801 bytes
Desc: not available
Url : /archives/slate/attachments/20041011/92fa276c/sdlinitial.tar.bin


More information about the Slate mailing list