[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Chicken foreign type to SWIG type
From: |
felix winkelmann |
Subject: |
Re: [Chicken-users] Chicken foreign type to SWIG type |
Date: |
Wed, 15 Dec 2004 07:24:16 +0100 |
On Tue, 14 Dec 2004 21:41:15 +0000, Joel Reymont <address@hidden> wrote:
> Folks,
>
> Is there a simple way of converting between Chicken's foreign type and a
> SWIG type? I have a library (guichan) that I wrapped with SWIG. This
> library uses SDL. I tried using the SDL egg with it but it does not work.
>
>[...]
>
> but SWIG would expect something like _p_SDL_Surface.
>
> Any suggestions apart from creating another SDL wrapper for Chicken?
>
Hm, I don't know how SWIG represents it's data. Perhaps John can give us
a suggestion here? Getting the SDL_Surface pointer out of the SDL
surface record is easy, we just have to know how to wrap it.
cheers,
felix