TextureHeight.htm 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <html>
  2. <head>
  3. <title>Blitz3D Docs</title>
  4. <link rel=stylesheet href=../css/commands.css type=text/css>
  5. </head>
  6. <body>
  7. <h1>TextureHeight ( texture )</h1>
  8. <h1>Parameters</h1>
  9. <table>
  10. <tr>
  11. <td>
  12. texture - texture handle
  13. </td>
  14. </tr>
  15. </table>
  16. <h1>Description</h1>
  17. <table>
  18. <tr>
  19. <td>
  20. Returns the height of a texture.
  21. </td>
  22. </tr>
  23. </table>
  24. <h1><a href=../3d_examples/TextureHeight.bb>Example</a></h1>
  25. <table>
  26. <tr>
  27. <td>
  28. ; TextureWidth and TextureHeight Example. <br />
  29. ; --------------------------------------- <br />
  30. <br />
  31. Graphics3D 640,480 <br />
  32. <br />
  33. ; This bit of code creates 4 textures <br />
  34. ; of different sizes and shapes. <br />
  35. <br />
  36. texture1=CreateTexture(256,256,59) <br />
  37. texture2=CreateTexture(256,128,59) <br />
  38. texture3=CreateTexture(128,256,59) <br />
  39. texture4=CreateTexture(200,200,59) <br />
  40. <br />
  41. ; The following lines print the selected value <br />
  42. ; of the texture, and reports the actual texture <br />
  43. ; resolution. <br />
  44. <br />
  45. <br />
  46. Print "Texture 1 was created at 256x256" <br />
  47. Print "On your system the dimensions are "+TextureWidth(texture1)+"x"+TextureHeight(texture1) <br />
  48. Print <br />
  49. Print "Texture 2 was created at 256x128" <br />
  50. Print "On your system the dimensions are "+TextureWidth(texture2)+"x"+TextureHeight(texture2) <br />
  51. Print <br />
  52. Print "Texture 3 was created at 128x256" <br />
  53. Print "On your system the dimensions are "+TextureWidth(texture3)+"x"+TextureHeight(texture3) <br />
  54. Print <br />
  55. Print "Texture 4 was created at 200x200" <br />
  56. Print "On your system the dimensions are "+TextureWidth(texture4)+"x"+TextureHeight(texture4) <br />
  57. <br />
  58. WaitKey <br />
  59. <br />
  60. End
  61. </td>
  62. </tr>
  63. </table>
  64. <br>
  65. <a target=_top href=../index.htm>Index</a><br>
  66. <br>
  67. Click <a href=http://www.blitzbasic.co.nz/b3ddocs/command.php?name=TextureHeight&ref=comments target=_blank>here</a> to view the latest version of this page online</body>
  68. </html>