[BUG][FIX]B3DMorph>>setTexture
Karl Ramberg
karl.ramberg at chello.se
Sun Jul 16 12:14:51 UTC 2000
I found this bug:
When the texture on the morph is set to a texture with depth other
than 32 bits I get a primitive fail error on my mac.( The Squeak3D
plugin is the old one from 2.7 or older( is there a newer for the mac ?))
When I run without the Squeak3D plugin I can set textures to any depth, but
is is oh-so-sloooooow.
A workaround that covert the texture to depth 32 is included in this mail:-)
Karl
-------------- next part --------------
'From Squeak2.9alpha of 26 June 2000 [latest update: #2447] on 16 July 2000 at 2:06:26 pm'!
!B3DMorph methodsFor: 'menu' stamp: 'kfr 7/16/2000 14:03'!
setTexture
| tex |
tex _ ((B3DTexture fromDisplay:(Rectangle originFromUser: 128 at 128)) asFormOfDepth:32) asTexture.
tex wrap: true.
tex interpolate: false.
tex envMode: 0.
texture _ tex.
self changed! !
More information about the Squeak-dev
mailing list
|