chicken-users
[Top][All Lists]
Advanced

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

[Chicken-users] FFI and references


From: Joel Reymont
Subject: [Chicken-users] FFI and references
Date: Mon, 3 Jan 2005 12:26:12 +0000

I don't think I'm completely grasping this so any help would be appreciated!

I wrapped a C++ class color. I have a bunch of functions that take a
reference to color. I'm trying this but I don't think it's right:

(define-foreign-type color (ref "color"))

(define :get-pixel (foreign-lambda color "getPixel"
                                   SDL_Surface
                                   integer
                                   integer))

Is this right?

    Thanks, Joel

-- 
OpenPoker: The Linux of poker software
http://wagerlabs.com/forums
* Tenerife * Canary Islands * Spain





reply via email to

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