| texture - указатель текстуры |
| Возвращает высоту текстуры. |
|
; Пример TextureWidth и TextureHeight.
; --------------------------------------- Graphics3D 640,480 ; Оздаем 4 разных текстуры ; разных размеров. texture1=CreateTexture(256,256,59) texture2=CreateTexture(256,128,59) texture3=CreateTexture(128,256,59) texture4=CreateTexture(200,200,59) ; Выводим действительные размеры текстур ; и полученные функциями TextureWidth и TextureHeight. Print "Texture 1 was created at 256x256" Print "On your system the dimensions are "+TextureWidth(texture1)+"x"+TextureHeight(texture1) Print "Texture 2 was created at 256x128" Print "On your system the dimensions are "+TextureWidth(texture2)+"x"+TextureHeight(texture2) Print "Texture 3 was created at 128x256" Print "On your system the dimensions are "+TextureWidth(texture3)+"x"+TextureHeight(texture3) Print "Texture 4 was created at 200x200" Print "On your system the dimensions are "+TextureWidth(texture4)+"x"+TextureHeight(texture4) WaitKey End |