texture - texture handle |
Returns the height of a texture. |
; dxTextureWidth and dxTextureHeight Example. ; --------------------------------------- dxGraphics3D 640,480 ; This bit of code creates 4 textures ; of different sizes and shapes. texture1=dxCreateTexture(256,256,59) texture2=dxCreateTexture(256,128,59) texture3=dxCreateTexture(128,256,59) texture4=dxCreateTexture(200,200,59) ; The following lines dxPrint the selected value ; of the texture, and reports the actual texture ; resolution. dxPrint "Texture 1 was created at 256x256" dxPrint "On your system the dimensions are "+dxTextureWidth(texture1)+"x"+dxTextureHeight(texture1) dxPrint dxPrint "Texture 2 was created at 256x128" dxPrint "On your system the dimensions are "+dxTextureWidth(texture2)+"x"+dxTextureHeight(texture2) dxPrint dxPrint "Texture 3 was created at 128x256" dxPrint "On your system the dimensions are "+dxTextureWidth(texture3)+"x"+dxTextureHeight(texture3) dxPrint dxPrint "Texture 4 was created at 200x200" dxPrint "On your system the dimensions are "+dxTextureWidth(texture4)+"x"+dxTextureHeight(texture4) dxWaitKey End |