Artifact b2f08fa5b6b063528c00f716006e19457f7945df:
- File canvas-draw/racket/gl.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: 318) [annotate] [blame] [check-ins using]
#lang racket/base (require ffi/unsafe "base.rkt") (define libcd-gl (case (system-type 'os) [(windows) (ffi-lib "cdgl")] [else (ffi-lib "libcdgl")])) ;; {{{ Context types (define context:gl ((get-ffi-obj "cdContextGL" libcd-gl (_fun -> [context : _context])))) (provide context:gl) ;; }}}