+ `(let ,look-images
+ (lambda ()
+ (glPushMatrix)
+ ,@look-lines
+ (glPopMatrix)))))
+
+(define-macro (define-mob mob-head . look)
+ (let ((name (car mob-head)) (attr (cdr mob-head)))
+ `(define ,name
+ (lambda-mob ,attr ,@look))))
+
+(define-macro (lambda-mob attr . look)
+ `(let ((mob #f))
+ (set! mob
+ (let ((attr ',attr) (actions '()) (renders '()))
+ (lambda (option . params)
+ (case option
+ ((get-attr)
+ attr)
+ ((set-attr)
+ (if (not (null? params)) (set! attr (car params))))))))
+ (cond ((not (null? ',look))
+ (display ',look)
+ (newline)))
+ mob))