chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] SDL egg: SDL_GL_SwapBuffers() not implemented?


From: Alaric Snell-Pym
Subject: Re: [Chicken-users] SDL egg: SDL_GL_SwapBuffers() not implemented?
Date: Tue, 3 Feb 2009 13:57:22 +0000


On 3 Feb 2009, at 1:40 pm, felix winkelmann wrote:

Note that you can get access to this function quickly using

#>
#include <SDL/SDL.h>
<#

(define sdl:gl-swap-buffers
 (foreign-lambda void "SDL_GL_SwapBuffers"))

Don't forget that this will only work in *compiled* code, though. If
you're experimenting in the interpreter, put the above in its own file
(swapbuffer.scm, perhaps) and do:

csc -s swapbuffer.scm

Then in your code, write:

(load "swapbuffer")

...and it should sort it out.

ABS

--
Alaric Snell-Pym
Work: http://www.snell-systems.co.uk/
Play: http://www.snell-pym.org.uk/alaric/
Blog: http://www.snell-pym.org.uk/?author=4






reply via email to

[Prev in Thread] Current Thread [Next in Thread]