Artifact b01bbbfe5d1e59f2eefa0494a2a03590046ddada:
- File canvas-draw/racket/server.rkt — part of check-in [ed10f826ff] at 2011-01-30 17:39:09 on branch trunk — Re-ran configure in ffcall and imported canvas-draw source (user: matt, size: 512) [annotate] [blame] [check-ins using]
#lang racket/base (require ffi/unsafe "base.rkt") (define libcd-native (case (system-type 'os) [(unix macosx) (ffi-lib "libcdx11")] [(windows) (ffi-lib "cd")] [else (ffi-lib "libcd")])) ;; {{{ Context types (define context:image ((get-ffi-obj "cdContextImage" libcd-native (_fun -> [context : _context])))) (define context:double-buffer ((get-ffi-obj "cdContextDBuffer" libcd-native (_fun -> [context : _context])))) (provide context:image context:double-buffer) ;; }}}