Closed GoogleCodeExporter closed 9 years ago
Thank you for your bug report!
I fixed the bugs and trunk directory is updated to revision 420. Thank you! :)
Regarding define-c-struct-methods,
Current libraries are designed as is, since I have plan to make framework
library
which may looks like below to avoid large amount of unused accessors/mutators
stay in
memory.
(library (ypsilon sdl framework)
(export using-sdl)
(import (rnrs) (ypsilon sdl))
(define-syntax using-sdl
(syntax-rules (core event)
((_ core) (define-c-struct-methods
SDL_Rect
SDL_PixelFormat
SDL_Surface
SDL_keysym))
((_ event) (define-c-struct-methods
SDL_ActiveEvent
SDL_KeyboardEvent
SDL_MouseMotionEvent
SDL_MouseButtonEvent
SDL_JoyAxisEvent
SDL_JoyBallEvent
SDL_JoyHatEvent
SDL_JoyButtonEvent
SDL_ResizeEvent
SDL_ExposeEvent
SDL_QuitEvent
SDL_UserEvent
SDL_SysWMEvent)))))
---------------
And, client library may looks like:
(library (myapp)
(export)
(import (ypsilon sdl)
(ypsilon sdl framework))
(using-sdl core)
(using-sdl event)
:
:
)
-----------------
However, It is incomplete at this moment. :(
-- fujita
Original comment by y.fujita...@gmail.com
on 20 Apr 2009 at 1:07
Original issue reported on code.google.com by
vmage...@gmail.com
on 19 Apr 2009 at 9:10Attachments: