RotateTexture()

Blitz3D Forums/Blitz3D Programming/RotateTexture()

Boiled Sweets(Posted 2004) [#1]
When I use this is appears to rotate from a corner not the centre of the texture.

Is there a way to force it to turn the texture with the axis in the middle.

For example I have a 2 tris quad with 2 textures on it. The bottom one is static the I want the top one to rotate. When I use RotateTexture is appears to be rotating the top texture from a corner not the centre.

Any thoughts?


Stickman(Posted 2004) [#2]
MidHandle image or AutoMidHandle true/false
Give these a try,might help,might not.


Rob(Posted 2004) [#3]
Search for transform texture function in code archives. I wrote it so I could scale and rotate a texture from the centre.


Boiled Sweets(Posted 2004) [#4]
Rob,

thanks! These forums continue to amaze me...