[Fluxus] drawing instances
evan.raskob [lists]
lists at lowfrequency.org
Thu Jan 22 04:54:14 PST 2009
another question (getting some quality fluxus time in today!):
I can define an object instance with a scale, transform, and texture
attached to it, but when I try to draw it, the instance is drawn un-
textured, although scale and shape are both set properly. I think
this is a bug?
test code:
; use your own png here
(define tex0 (load-texture "temple.png"))
(define a (with-state
(texture tex0)
(scale 2)
(build-sphere 30 30)))
(define (render)
(with-state
(translate (vector 0 2 0))
(draw-instance a)
(translate (vector 0 2 0))
(draw-instance a)))
(every-frame (render))
More information about the Fluxus
mailing list