You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2062 lines
100 KiB

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
  2. <html>
  3. <head>
  4. <title>glBitmap: Class TglBitmap</title>
  5. <meta name="generator" content="PasDoc 0.13.0">
  6. <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
  7. <link rel="StyleSheet" type="text/css" href="pasdoc.css">
  8. </head>
  9. <body>
  10. <table class="container"><tr><td class="navigation">
  11. <p><a href="AllUnits.html" class="navigation">Units</a></p><p><a href="ClassHierarchy.html" class="navigation">Class Hierarchy</a></p><p><a href="AllClasses.html" class="navigation">Classes, Interfaces, Objects and Records</a></p><p><a href="AllTypes.html" class="navigation">Types</a></p><p><a href="AllVariables.html" class="navigation">Variables</a></p><p><a href="AllConstants.html" class="navigation">Constants</a></p><p><a href="AllFunctions.html" class="navigation">Functions and Procedures</a></p><p><a href="AllIdentifiers.html" class="navigation">Identifiers</a></p></td><td class="content">
  12. <a name="TglBitmap"></a><h1 class="cio">Class TglBitmap</h1>
  13. <table class="sections wide_list">
  14. <tr>
  15. <td><a class="section" href="#PasDoc-Description">Description</a></td><td><a class="section" href="#PasDoc-Hierarchy">Hierarchy</a></td><td><a class="section" href="#PasDoc-Fields">Fields</a></td><td><a class="section" href="#PasDoc-Methods">Methods</a></td><td><a class="section" href="#PasDoc-Properties">Properties</a></td></tr></table>
  16. <a name="PasDoc-Description"></a><h2 class="unit">Unit</h2>
  17. <p class="unitlink">
  18. <a href="glBitmap.html">glBitmap</a></p>
  19. <h2 class="declaration">Declaration</h2>
  20. <p class="declaration">
  21. <code>type TglBitmap = class(TObject)</code></p>
  22. <h2 class="description">Description</h2>
  23. <p>
  24. base class for all glBitmap classes. used to manage OpenGL texture objects and to load, save and manipulate texture data</p>
  25. <a name="PasDoc-Hierarchy"></a><h2 class="hierarchy">Hierarchy</h2>
  26. <ul class="hierarchy"><li class="ancestor">TObject</li>
  27. <li class="thisitem">TglBitmap</li></ul><h2 class="overview">Overview</h2>
  28. <a name="PasDoc-Fields"></a><h3 class="summary">Fields</h3>
  29. <table class="summary wide_list">
  30. <tr class="list">
  31. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  32. <td class="itemcode"><code><b><a href="glBitmap.TglBitmap.html#fID">fID</a></b>: GLuint;</code></td>
  33. </tr>
  34. <tr class="list2">
  35. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  36. <td class="itemcode"><code><b><a href="glBitmap.TglBitmap.html#fTarget">fTarget</a></b>: GLuint;</code></td>
  37. </tr>
  38. <tr class="list">
  39. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  40. <td class="itemcode"><code><b><a href="glBitmap.TglBitmap.html#fAnisotropic">fAnisotropic</a></b>: Integer;</code></td>
  41. </tr>
  42. <tr class="list2">
  43. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  44. <td class="itemcode"><code><b><a href="glBitmap.TglBitmap.html#fDeleteTextureOnFree">fDeleteTextureOnFree</a></b>: Boolean;</code></td>
  45. </tr>
  46. <tr class="list">
  47. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  48. <td class="itemcode"><code><b><a href="glBitmap.TglBitmap.html#fFreeDataOnDestroy">fFreeDataOnDestroy</a></b>: Boolean;</code></td>
  49. </tr>
  50. <tr class="list2">
  51. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  52. <td class="itemcode"><code><b><a href="glBitmap.TglBitmap.html#fFreeDataAfterGenTexture">fFreeDataAfterGenTexture</a></b>: Boolean;</code></td>
  53. </tr>
  54. <tr class="list">
  55. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  56. <td class="itemcode"><code><b><a href="glBitmap.TglBitmap.html#fData">fData</a></b>: PByte;</code></td>
  57. </tr>
  58. <tr class="list2">
  59. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  60. <td class="itemcode"><code><b><a href="glBitmap.TglBitmap.html#fBorderColor">fBorderColor</a></b>: array[0..3] of Single;</code></td>
  61. </tr>
  62. <tr class="list">
  63. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  64. <td class="itemcode"><code><b><a href="glBitmap.TglBitmap.html#fDimension">fDimension</a></b>: <a href="glBitmap.TglBitmapSize.html">TglBitmapSize</a>;</code></td>
  65. </tr>
  66. <tr class="list2">
  67. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  68. <td class="itemcode"><code><b><a href="glBitmap.TglBitmap.html#fMipMap">fMipMap</a></b>: <a href="glBitmap.html#TglBitmapMipMap">TglBitmapMipMap</a>;</code></td>
  69. </tr>
  70. <tr class="list">
  71. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  72. <td class="itemcode"><code><b><a href="glBitmap.TglBitmap.html#fFormat">fFormat</a></b>: <a href="glBitmap.html#TglBitmapFormat">TglBitmapFormat</a>;</code></td>
  73. </tr>
  74. <tr class="list2">
  75. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  76. <td class="itemcode"><code><b><a href="glBitmap.TglBitmap.html#fPixelSize">fPixelSize</a></b>: Integer;</code></td>
  77. </tr>
  78. <tr class="list">
  79. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  80. <td class="itemcode"><code><b><a href="glBitmap.TglBitmap.html#fRowSize">fRowSize</a></b>: Integer;</code></td>
  81. </tr>
  82. <tr class="list2">
  83. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  84. <td class="itemcode"><code><b><a href="glBitmap.TglBitmap.html#fFilterMin">fFilterMin</a></b>: GLenum;</code></td>
  85. </tr>
  86. <tr class="list">
  87. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  88. <td class="itemcode"><code><b><a href="glBitmap.TglBitmap.html#fFilterMag">fFilterMag</a></b>: GLenum;</code></td>
  89. </tr>
  90. <tr class="list2">
  91. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  92. <td class="itemcode"><code><b><a href="glBitmap.TglBitmap.html#fWrapS">fWrapS</a></b>: GLenum;</code></td>
  93. </tr>
  94. <tr class="list">
  95. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  96. <td class="itemcode"><code><b><a href="glBitmap.TglBitmap.html#fWrapT">fWrapT</a></b>: GLenum;</code></td>
  97. </tr>
  98. <tr class="list2">
  99. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  100. <td class="itemcode"><code><b><a href="glBitmap.TglBitmap.html#fWrapR">fWrapR</a></b>: GLenum;</code></td>
  101. </tr>
  102. <tr class="list">
  103. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  104. <td class="itemcode"><code><b><a href="glBitmap.TglBitmap.html#fSwizzle">fSwizzle</a></b>: array[0..3] of GLenum;</code></td>
  105. </tr>
  106. <tr class="list2">
  107. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  108. <td class="itemcode"><code><b><a href="glBitmap.TglBitmap.html#fFilename">fFilename</a></b>: String;</code></td>
  109. </tr>
  110. <tr class="list">
  111. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  112. <td class="itemcode"><code><b><a href="glBitmap.TglBitmap.html#fCustomName">fCustomName</a></b>: String;</code></td>
  113. </tr>
  114. <tr class="list2">
  115. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  116. <td class="itemcode"><code><b><a href="glBitmap.TglBitmap.html#fCustomNameW">fCustomNameW</a></b>: WideString;</code></td>
  117. </tr>
  118. <tr class="list">
  119. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  120. <td class="itemcode"><code><b><a href="glBitmap.TglBitmap.html#fCustomData">fCustomData</a></b>: Pointer;</code></td>
  121. </tr>
  122. </table>
  123. <a name="PasDoc-Methods"></a><h3 class="summary">Methods</h3>
  124. <table class="summary wide_list">
  125. <tr class="list">
  126. <td class="visibility"><a href="legend.html"><img src="private.gif" alt="Private" title="Private"></a></td>
  127. <td class="itemcode"><code>function <b><a href="glBitmap.TglBitmap.html#GetFormatDesc">GetFormatDesc</a></b>: <a href="glBitmap.TglBitmapFormatDescriptor.html">TglBitmapFormatDescriptor</a>;</code></td>
  128. </tr>
  129. <tr class="list2">
  130. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  131. <td class="itemcode"><code>function <b><a href="glBitmap.TglBitmap.html#GetWidth">GetWidth</a></b>: Integer; virtual;</code></td>
  132. </tr>
  133. <tr class="list">
  134. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  135. <td class="itemcode"><code>function <b><a href="glBitmap.TglBitmap.html#GetHeight">GetHeight</a></b>: Integer; virtual;</code></td>
  136. </tr>
  137. <tr class="list2">
  138. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  139. <td class="itemcode"><code>function <b><a href="glBitmap.TglBitmap.html#GetFileWidth">GetFileWidth</a></b>: Integer; virtual;</code></td>
  140. </tr>
  141. <tr class="list">
  142. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  143. <td class="itemcode"><code>function <b><a href="glBitmap.TglBitmap.html#GetFileHeight">GetFileHeight</a></b>: Integer; virtual;</code></td>
  144. </tr>
  145. <tr class="list2">
  146. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  147. <td class="itemcode"><code>procedure <b><a href="glBitmap.TglBitmap.html#SetCustomData">SetCustomData</a></b>(const aValue: Pointer);</code></td>
  148. </tr>
  149. <tr class="list">
  150. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  151. <td class="itemcode"><code>procedure <b><a href="glBitmap.TglBitmap.html#SetCustomName">SetCustomName</a></b>(const aValue: String);</code></td>
  152. </tr>
  153. <tr class="list2">
  154. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  155. <td class="itemcode"><code>procedure <b><a href="glBitmap.TglBitmap.html#SetCustomNameW">SetCustomNameW</a></b>(const aValue: WideString);</code></td>
  156. </tr>
  157. <tr class="list">
  158. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  159. <td class="itemcode"><code>procedure <b><a href="glBitmap.TglBitmap.html#SetFreeDataOnDestroy">SetFreeDataOnDestroy</a></b>(const aValue: Boolean);</code></td>
  160. </tr>
  161. <tr class="list2">
  162. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  163. <td class="itemcode"><code>procedure <b><a href="glBitmap.TglBitmap.html#SetDeleteTextureOnFree">SetDeleteTextureOnFree</a></b>(const aValue: Boolean);</code></td>
  164. </tr>
  165. <tr class="list">
  166. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  167. <td class="itemcode"><code>procedure <b><a href="glBitmap.TglBitmap.html#SetFormat">SetFormat</a></b>(const aValue: <a href="glBitmap.html#TglBitmapFormat">TglBitmapFormat</a>);</code></td>
  168. </tr>
  169. <tr class="list2">
  170. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  171. <td class="itemcode"><code>procedure <b><a href="glBitmap.TglBitmap.html#SetFreeDataAfterGenTexture">SetFreeDataAfterGenTexture</a></b>(const aValue: Boolean);</code></td>
  172. </tr>
  173. <tr class="list">
  174. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  175. <td class="itemcode"><code>procedure <b><a href="glBitmap.TglBitmap.html#SetID">SetID</a></b>(const aValue: Cardinal);</code></td>
  176. </tr>
  177. <tr class="list2">
  178. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  179. <td class="itemcode"><code>procedure <b><a href="glBitmap.TglBitmap.html#SetMipMap">SetMipMap</a></b>(const aValue: <a href="glBitmap.html#TglBitmapMipMap">TglBitmapMipMap</a>);</code></td>
  180. </tr>
  181. <tr class="list">
  182. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  183. <td class="itemcode"><code>procedure <b><a href="glBitmap.TglBitmap.html#SetTarget">SetTarget</a></b>(const aValue: Cardinal);</code></td>
  184. </tr>
  185. <tr class="list2">
  186. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  187. <td class="itemcode"><code>procedure <b><a href="glBitmap.TglBitmap.html#SetAnisotropic">SetAnisotropic</a></b>(const aValue: Integer);</code></td>
  188. </tr>
  189. <tr class="list">
  190. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  191. <td class="itemcode"><code>procedure <b><a href="glBitmap.TglBitmap.html#CreateID">CreateID</a></b>;</code></td>
  192. </tr>
  193. <tr class="list2">
  194. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  195. <td class="itemcode"><code>procedure <b><a href="glBitmap.TglBitmap.html#SetupParameters">SetupParameters</a></b>();</code></td>
  196. </tr>
  197. <tr class="list">
  198. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  199. <td class="itemcode"><code>procedure <b><a href="glBitmap.TglBitmap.html#SetDataPointer">SetDataPointer</a></b>(var aData: PByte; const aFormat: <a href="glBitmap.html#TglBitmapFormat">TglBitmapFormat</a>; const aWidth: Integer = -1; const aHeight: Integer = -1); virtual;</code></td>
  200. </tr>
  201. <tr class="list2">
  202. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  203. <td class="itemcode"><code>procedure <b><a href="glBitmap.TglBitmap.html#GenTexture">GenTexture</a></b>(const aTestTextureSize: Boolean = true); virtual; abstract;</code></td>
  204. </tr>
  205. <tr class="list">
  206. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  207. <td class="itemcode"><code>function <b><a href="glBitmap.TglBitmap.html#FlipHorz">FlipHorz</a></b>: Boolean; virtual;</code></td>
  208. </tr>
  209. <tr class="list2">
  210. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  211. <td class="itemcode"><code>function <b><a href="glBitmap.TglBitmap.html#FlipVert">FlipVert</a></b>: Boolean; virtual;</code></td>
  212. </tr>
  213. <tr class="list">
  214. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  215. <td class="itemcode"><code>procedure <b><a href="glBitmap.TglBitmap.html#AfterConstruction">AfterConstruction</a></b>; override;</code></td>
  216. </tr>
  217. <tr class="list2">
  218. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  219. <td class="itemcode"><code>procedure <b><a href="glBitmap.TglBitmap.html#BeforeDestruction">BeforeDestruction</a></b>; override;</code></td>
  220. </tr>
  221. <tr class="list">
  222. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  223. <td class="itemcode"><code>procedure <b><a href="glBitmap.TglBitmap.html#PrepareResType">PrepareResType</a></b>(var aResource: String; var aResType: PChar);</code></td>
  224. </tr>
  225. <tr class="list2">
  226. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  227. <td class="itemcode"><code>procedure <b><a href="glBitmap.TglBitmap.html#LoadFromFile">LoadFromFile</a></b>(const aFilename: String);</code></td>
  228. </tr>
  229. <tr class="list">
  230. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  231. <td class="itemcode"><code>procedure <b><a href="glBitmap.TglBitmap.html#LoadFromStream">LoadFromStream</a></b>(const aStream: TStream); virtual;</code></td>
  232. </tr>
  233. <tr class="list2">
  234. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  235. <td class="itemcode"><code>procedure <b><a href="glBitmap.TglBitmap.html#LoadFromFunc">LoadFromFunc</a></b>(const aSize: <a href="glBitmap.TglBitmapSize.html">TglBitmapSize</a>; const aFunc: <a href="glBitmap.html#TglBitmapFunction">TglBitmapFunction</a>; const aFormat: <a href="glBitmap.html#TglBitmapFormat">TglBitmapFormat</a>; const aArgs: Pointer = nil);</code></td>
  236. </tr>
  237. <tr class="list">
  238. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  239. <td class="itemcode"><code>procedure <b><a href="glBitmap.TglBitmap.html#LoadFromResource">LoadFromResource</a></b>(const aInstance: Cardinal; aResource: String; aResType: PChar = nil);</code></td>
  240. </tr>
  241. <tr class="list2">
  242. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  243. <td class="itemcode"><code>procedure <b><a href="glBitmap.TglBitmap.html#LoadFromResourceID">LoadFromResourceID</a></b>(const aInstance: Cardinal; const aResourceID: Integer; const aResType: PChar);</code></td>
  244. </tr>
  245. <tr class="list">
  246. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  247. <td class="itemcode"><code>procedure <b><a href="glBitmap.TglBitmap.html#SaveToFile">SaveToFile</a></b>(const aFilename: String; const aFileType: <a href="glBitmap.html#TglBitmapFileType">TglBitmapFileType</a>);</code></td>
  248. </tr>
  249. <tr class="list2">
  250. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  251. <td class="itemcode"><code>procedure <b><a href="glBitmap.TglBitmap.html#SaveToStream">SaveToStream</a></b>(const aStream: TStream; const aFileType: <a href="glBitmap.html#TglBitmapFileType">TglBitmapFileType</a>); virtual;</code></td>
  252. </tr>
  253. <tr class="list">
  254. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  255. <td class="itemcode"><code>function <b><a href="glBitmap.TglBitmap.html#Convert">Convert</a></b>(const aFunc: <a href="glBitmap.html#TglBitmapFunction">TglBitmapFunction</a>; const aCreateTemp: Boolean; const aArgs: Pointer = nil): Boolean; overload;</code></td>
  256. </tr>
  257. <tr class="list2">
  258. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  259. <td class="itemcode"><code>function <b><a href="glBitmap.TglBitmap.html#Convert">Convert</a></b>(const aSource: <a href="glBitmap.TglBitmap.html">TglBitmap</a>; const aFunc: <a href="glBitmap.html#TglBitmapFunction">TglBitmapFunction</a>; aCreateTemp: Boolean; const aFormat: <a href="glBitmap.html#TglBitmapFormat">TglBitmapFormat</a>; const aArgs: Pointer = nil): Boolean; overload;</code></td>
  260. </tr>
  261. <tr class="list">
  262. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  263. <td class="itemcode"><code>function <b><a href="glBitmap.TglBitmap.html#ConvertTo">ConvertTo</a></b>(const aFormat: <a href="glBitmap.html#TglBitmapFormat">TglBitmapFormat</a>): Boolean; virtual;</code></td>
  264. </tr>
  265. <tr class="list2">
  266. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  267. <td class="itemcode"><code>function <b><a href="glBitmap.TglBitmap.html#AddAlphaFromResource">AddAlphaFromResource</a></b>(const aInstance: Cardinal; aResource: String; aResType: PChar = nil; const aFunc: <a href="glBitmap.html#TglBitmapFunction">TglBitmapFunction</a> = nil; const aArgs: Pointer = nil): Boolean;</code></td>
  268. </tr>
  269. <tr class="list">
  270. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  271. <td class="itemcode"><code>function <b><a href="glBitmap.TglBitmap.html#AddAlphaFromResourceID">AddAlphaFromResourceID</a></b>(const aInstance: Cardinal; const aResourceID: Integer; const aResType: PChar; const aFunc: <a href="glBitmap.html#TglBitmapFunction">TglBitmapFunction</a> = nil; const aArgs: Pointer = nil): Boolean;</code></td>
  272. </tr>
  273. <tr class="list2">
  274. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  275. <td class="itemcode"><code>function <b><a href="glBitmap.TglBitmap.html#AddAlphaFromFunc">AddAlphaFromFunc</a></b>(const aFunc: <a href="glBitmap.html#TglBitmapFunction">TglBitmapFunction</a>; const aArgs: Pointer = nil): Boolean; virtual;</code></td>
  276. </tr>
  277. <tr class="list">
  278. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  279. <td class="itemcode"><code>function <b><a href="glBitmap.TglBitmap.html#AddAlphaFromFile">AddAlphaFromFile</a></b>(const aFileName: String; const aFunc: <a href="glBitmap.html#TglBitmapFunction">TglBitmapFunction</a> = nil; const aArgs: Pointer = nil): Boolean;</code></td>
  280. </tr>
  281. <tr class="list2">
  282. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  283. <td class="itemcode"><code>function <b><a href="glBitmap.TglBitmap.html#AddAlphaFromStream">AddAlphaFromStream</a></b>(const aStream: TStream; const aFunc: <a href="glBitmap.html#TglBitmapFunction">TglBitmapFunction</a> = nil; const aArgs: Pointer = nil): Boolean;</code></td>
  284. </tr>
  285. <tr class="list">
  286. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  287. <td class="itemcode"><code>function <b><a href="glBitmap.TglBitmap.html#AddAlphaFromGlBitmap">AddAlphaFromGlBitmap</a></b>(const aBitmap: <a href="glBitmap.TglBitmap.html">TglBitmap</a>; aFunc: <a href="glBitmap.html#TglBitmapFunction">TglBitmapFunction</a> = nil; const aArgs: Pointer = nil): Boolean;</code></td>
  288. </tr>
  289. <tr class="list2">
  290. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  291. <td class="itemcode"><code>function <b><a href="glBitmap.TglBitmap.html#AddAlphaFromColorKey">AddAlphaFromColorKey</a></b>(const aRed, aGreen, aBlue: Byte; const aDeviation: Byte = 0): Boolean;</code></td>
  292. </tr>
  293. <tr class="list">
  294. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  295. <td class="itemcode"><code>function <b><a href="glBitmap.TglBitmap.html#AddAlphaFromColorKeyRange">AddAlphaFromColorKeyRange</a></b>(const aRed, aGreen, aBlue: Cardinal; const aDeviation: Cardinal = 0): Boolean;</code></td>
  296. </tr>
  297. <tr class="list2">
  298. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  299. <td class="itemcode"><code>function <b><a href="glBitmap.TglBitmap.html#AddAlphaFromColorKeyFloat">AddAlphaFromColorKeyFloat</a></b>(const aRed, aGreen, aBlue: Single; const aDeviation: Single = 0): Boolean;</code></td>
  300. </tr>
  301. <tr class="list">
  302. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  303. <td class="itemcode"><code>function <b><a href="glBitmap.TglBitmap.html#AddAlphaFromValue">AddAlphaFromValue</a></b>(const aAlpha: Byte): Boolean;</code></td>
  304. </tr>
  305. <tr class="list2">
  306. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  307. <td class="itemcode"><code>function <b><a href="glBitmap.TglBitmap.html#AddAlphaFromValueRange">AddAlphaFromValueRange</a></b>(const aAlpha: Cardinal): Boolean;</code></td>
  308. </tr>
  309. <tr class="list">
  310. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  311. <td class="itemcode"><code>function <b><a href="glBitmap.TglBitmap.html#AddAlphaFromValueFloat">AddAlphaFromValueFloat</a></b>(const aAlpha: Single): Boolean;</code></td>
  312. </tr>
  313. <tr class="list2">
  314. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  315. <td class="itemcode"><code>function <b><a href="glBitmap.TglBitmap.html#RemoveAlpha">RemoveAlpha</a></b>: Boolean; virtual;</code></td>
  316. </tr>
  317. <tr class="list">
  318. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  319. <td class="itemcode"><code>function <b><a href="glBitmap.TglBitmap.html#Clone">Clone</a></b>: <a href="glBitmap.TglBitmap.html">TglBitmap</a>;</code></td>
  320. </tr>
  321. <tr class="list2">
  322. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  323. <td class="itemcode"><code>procedure <b><a href="glBitmap.TglBitmap.html#Invert">Invert</a></b>(const aUseRGB: Boolean = true; const aUseAlpha: Boolean = false);</code></td>
  324. </tr>
  325. <tr class="list">
  326. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  327. <td class="itemcode"><code>procedure <b><a href="glBitmap.TglBitmap.html#FreeData">FreeData</a></b>;</code></td>
  328. </tr>
  329. <tr class="list2">
  330. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  331. <td class="itemcode"><code>procedure <b><a href="glBitmap.TglBitmap.html#FillWithColor">FillWithColor</a></b>(const aRed, aGreen, aBlue: Byte; const aAlpha: Byte = 255);</code></td>
  332. </tr>
  333. <tr class="list">
  334. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  335. <td class="itemcode"><code>procedure <b><a href="glBitmap.TglBitmap.html#FillWithColorRange">FillWithColorRange</a></b>(const aRed, aGreen, aBlue: Cardinal; const aAlpha: Cardinal = $FFFFFFFF);</code></td>
  336. </tr>
  337. <tr class="list2">
  338. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  339. <td class="itemcode"><code>procedure <b><a href="glBitmap.TglBitmap.html#FillWithColorFloat">FillWithColorFloat</a></b>(const aRed, aGreen, aBlue: Single; const aAlpha: Single = 1.0);</code></td>
  340. </tr>
  341. <tr class="list">
  342. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  343. <td class="itemcode"><code>procedure <b><a href="glBitmap.TglBitmap.html#SetFilter">SetFilter</a></b>(const aMin, aMag: GLenum);</code></td>
  344. </tr>
  345. <tr class="list2">
  346. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  347. <td class="itemcode"><code>procedure <b><a href="glBitmap.TglBitmap.html#SetWrap">SetWrap</a></b>( const S: GLenum = GL_CLAMP_TO_EDGE; const T: GLenum = GL_CLAMP_TO_EDGE; const R: GLenum = GL_CLAMP_TO_EDGE);</code></td>
  348. </tr>
  349. <tr class="list">
  350. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  351. <td class="itemcode"><code>procedure <b><a href="glBitmap.TglBitmap.html#SetSwizzle">SetSwizzle</a></b>(const r, g, b, a: GLenum);</code></td>
  352. </tr>
  353. <tr class="list2">
  354. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  355. <td class="itemcode"><code>procedure <b><a href="glBitmap.TglBitmap.html#Bind">Bind</a></b>(const aEnableTextureUnit: Boolean = true); virtual;</code></td>
  356. </tr>
  357. <tr class="list">
  358. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  359. <td class="itemcode"><code>procedure <b><a href="glBitmap.TglBitmap.html#Unbind">Unbind</a></b>(const aDisableTextureUnit: Boolean = true); virtual;</code></td>
  360. </tr>
  361. <tr class="list2">
  362. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  363. <td class="itemcode"><code>constructor <b><a href="glBitmap.TglBitmap.html#Create">Create</a></b>; overload;</code></td>
  364. </tr>
  365. <tr class="list">
  366. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  367. <td class="itemcode"><code>constructor <b><a href="glBitmap.TglBitmap.html#Create">Create</a></b>(const aFileName: String); overload;</code></td>
  368. </tr>
  369. <tr class="list2">
  370. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  371. <td class="itemcode"><code>constructor <b><a href="glBitmap.TglBitmap.html#Create">Create</a></b>(const aStream: TStream); overload;</code></td>
  372. </tr>
  373. <tr class="list">
  374. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  375. <td class="itemcode"><code>constructor <b><a href="glBitmap.TglBitmap.html#Create">Create</a></b>(const aSize: <a href="glBitmap.TglBitmapSize.html">TglBitmapSize</a>; const aFormat: <a href="glBitmap.html#TglBitmapFormat">TglBitmapFormat</a>; aData: PByte = nil); overload;</code></td>
  376. </tr>
  377. <tr class="list2">
  378. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  379. <td class="itemcode"><code>constructor <b><a href="glBitmap.TglBitmap.html#Create">Create</a></b>(const aSize: <a href="glBitmap.TglBitmapSize.html">TglBitmapSize</a>; const aFormat: <a href="glBitmap.html#TglBitmapFormat">TglBitmapFormat</a>; const aFunc: <a href="glBitmap.html#TglBitmapFunction">TglBitmapFunction</a>; const aArgs: Pointer = nil); overload;</code></td>
  380. </tr>
  381. <tr class="list">
  382. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  383. <td class="itemcode"><code>constructor <b><a href="glBitmap.TglBitmap.html#Create">Create</a></b>(const aInstance: Cardinal; const aResource: String; const aResType: PChar = nil); overload;</code></td>
  384. </tr>
  385. <tr class="list2">
  386. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  387. <td class="itemcode"><code>constructor <b><a href="glBitmap.TglBitmap.html#Create">Create</a></b>(const aInstance: Cardinal; const aResourceID: Integer; const aResType: PChar); overload;</code></td>
  388. </tr>
  389. <tr class="list">
  390. <td class="visibility"><a href="legend.html"><img src="private.gif" alt="Private" title="Private"></a></td>
  391. <td class="itemcode"><code>function <b><a href="glBitmap.TglBitmap.html#LoadRAW">LoadRAW</a></b>(const aStream: TStream): Boolean;</code></td>
  392. </tr>
  393. <tr class="list2">
  394. <td class="visibility"><a href="legend.html"><img src="private.gif" alt="Private" title="Private"></a></td>
  395. <td class="itemcode"><code>procedure <b><a href="glBitmap.TglBitmap.html#SaveRAW">SaveRAW</a></b>(const aStream: TStream);</code></td>
  396. </tr>
  397. <tr class="list">
  398. <td class="visibility"><a href="legend.html"><img src="private.gif" alt="Private" title="Private"></a></td>
  399. <td class="itemcode"><code>function <b><a href="glBitmap.TglBitmap.html#LoadBMP">LoadBMP</a></b>(const aStream: TStream): Boolean;</code></td>
  400. </tr>
  401. <tr class="list2">
  402. <td class="visibility"><a href="legend.html"><img src="private.gif" alt="Private" title="Private"></a></td>
  403. <td class="itemcode"><code>procedure <b><a href="glBitmap.TglBitmap.html#SaveBMP">SaveBMP</a></b>(const aStream: TStream);</code></td>
  404. </tr>
  405. <tr class="list">
  406. <td class="visibility"><a href="legend.html"><img src="private.gif" alt="Private" title="Private"></a></td>
  407. <td class="itemcode"><code>function <b><a href="glBitmap.TglBitmap.html#LoadTGA">LoadTGA</a></b>(const aStream: TStream): Boolean;</code></td>
  408. </tr>
  409. <tr class="list2">
  410. <td class="visibility"><a href="legend.html"><img src="private.gif" alt="Private" title="Private"></a></td>
  411. <td class="itemcode"><code>procedure <b><a href="glBitmap.TglBitmap.html#SaveTGA">SaveTGA</a></b>(const aStream: TStream);</code></td>
  412. </tr>
  413. <tr class="list">
  414. <td class="visibility"><a href="legend.html"><img src="private.gif" alt="Private" title="Private"></a></td>
  415. <td class="itemcode"><code>function <b><a href="glBitmap.TglBitmap.html#LoadDDS">LoadDDS</a></b>(const aStream: TStream): Boolean;</code></td>
  416. </tr>
  417. <tr class="list2">
  418. <td class="visibility"><a href="legend.html"><img src="private.gif" alt="Private" title="Private"></a></td>
  419. <td class="itemcode"><code>procedure <b><a href="glBitmap.TglBitmap.html#SaveDDS">SaveDDS</a></b>(const aStream: TStream);</code></td>
  420. </tr>
  421. </table>
  422. <a name="PasDoc-Properties"></a><h3 class="summary">Properties</h3>
  423. <table class="summary wide_list">
  424. <tr class="list">
  425. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  426. <td class="itemcode"><code>property <b><a href="glBitmap.TglBitmap.html#Width">Width</a></b>: Integer read <a href="glBitmap.TglBitmap.html#GetWidth">GetWidth</a>;</code></td>
  427. </tr>
  428. <tr class="list2">
  429. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  430. <td class="itemcode"><code>property <b><a href="glBitmap.TglBitmap.html#Height">Height</a></b>: Integer read <a href="glBitmap.TglBitmap.html#GetHeight">GetHeight</a>;</code></td>
  431. </tr>
  432. <tr class="list">
  433. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  434. <td class="itemcode"><code>property <b><a href="glBitmap.TglBitmap.html#FileWidth">FileWidth</a></b>: Integer read <a href="glBitmap.TglBitmap.html#GetFileWidth">GetFileWidth</a>;</code></td>
  435. </tr>
  436. <tr class="list2">
  437. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  438. <td class="itemcode"><code>property <b><a href="glBitmap.TglBitmap.html#FileHeight">FileHeight</a></b>: Integer read <a href="glBitmap.TglBitmap.html#GetFileHeight">GetFileHeight</a>;</code></td>
  439. </tr>
  440. <tr class="list">
  441. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  442. <td class="itemcode"><code>property <b><a href="glBitmap.TglBitmap.html#ID">ID</a></b>: Cardinal read <a href="glBitmap.TglBitmap.html#fID">fID</a> write <a href="glBitmap.TglBitmap.html#SetID">SetID</a>;</code></td>
  443. </tr>
  444. <tr class="list2">
  445. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  446. <td class="itemcode"><code>property <b><a href="glBitmap.TglBitmap.html#Target">Target</a></b>: Cardinal read <a href="glBitmap.TglBitmap.html#fTarget">fTarget</a> write <a href="glBitmap.TglBitmap.html#SetTarget">SetTarget</a>;</code></td>
  447. </tr>
  448. <tr class="list">
  449. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  450. <td class="itemcode"><code>property <b><a href="glBitmap.TglBitmap.html#Format">Format</a></b>: <a href="glBitmap.html#TglBitmapFormat">TglBitmapFormat</a> read <a href="glBitmap.TglBitmap.html#fFormat">fFormat</a> write <a href="glBitmap.TglBitmap.html#SetFormat">SetFormat</a>;</code></td>
  451. </tr>
  452. <tr class="list2">
  453. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  454. <td class="itemcode"><code>property <b><a href="glBitmap.TglBitmap.html#MipMap">MipMap</a></b>: <a href="glBitmap.html#TglBitmapMipMap">TglBitmapMipMap</a> read <a href="glBitmap.TglBitmap.html#fMipMap">fMipMap</a> write <a href="glBitmap.TglBitmap.html#SetMipMap">SetMipMap</a>;</code></td>
  455. </tr>
  456. <tr class="list">
  457. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  458. <td class="itemcode"><code>property <b><a href="glBitmap.TglBitmap.html#Anisotropic">Anisotropic</a></b>: Integer read <a href="glBitmap.TglBitmap.html#fAnisotropic">fAnisotropic</a> write <a href="glBitmap.TglBitmap.html#SetAnisotropic">SetAnisotropic</a>;</code></td>
  459. </tr>
  460. <tr class="list2">
  461. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  462. <td class="itemcode"><code>property <b><a href="glBitmap.TglBitmap.html#FormatDesc">FormatDesc</a></b>: <a href="glBitmap.TglBitmapFormatDescriptor.html">TglBitmapFormatDescriptor</a> read <a href="glBitmap.TglBitmap.html#GetFormatDesc">GetFormatDesc</a>;</code></td>
  463. </tr>
  464. <tr class="list">
  465. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  466. <td class="itemcode"><code>property <b><a href="glBitmap.TglBitmap.html#Filename">Filename</a></b>: String read <a href="glBitmap.TglBitmap.html#fFilename">fFilename</a>;</code></td>
  467. </tr>
  468. <tr class="list2">
  469. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  470. <td class="itemcode"><code>property <b><a href="glBitmap.TglBitmap.html#CustomName">CustomName</a></b>: String read <a href="glBitmap.TglBitmap.html#fCustomName">fCustomName</a> write <a href="glBitmap.TglBitmap.html#SetCustomName">SetCustomName</a>;</code></td>
  471. </tr>
  472. <tr class="list">
  473. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  474. <td class="itemcode"><code>property <b><a href="glBitmap.TglBitmap.html#CustomNameW">CustomNameW</a></b>: WideString read <a href="glBitmap.TglBitmap.html#fCustomNameW">fCustomNameW</a> write <a href="glBitmap.TglBitmap.html#SetCustomNameW">SetCustomNameW</a>;</code></td>
  475. </tr>
  476. <tr class="list2">
  477. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  478. <td class="itemcode"><code>property <b><a href="glBitmap.TglBitmap.html#CustomData">CustomData</a></b>: Pointer read <a href="glBitmap.TglBitmap.html#fCustomData">fCustomData</a> write <a href="glBitmap.TglBitmap.html#SetCustomData">SetCustomData</a>;</code></td>
  479. </tr>
  480. <tr class="list">
  481. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  482. <td class="itemcode"><code>property <b><a href="glBitmap.TglBitmap.html#DeleteTextureOnFree">DeleteTextureOnFree</a></b>: Boolean read <a href="glBitmap.TglBitmap.html#fDeleteTextureOnFree">fDeleteTextureOnFree</a> write <a href="glBitmap.TglBitmap.html#SetDeleteTextureOnFree">SetDeleteTextureOnFree</a>;</code></td>
  483. </tr>
  484. <tr class="list2">
  485. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  486. <td class="itemcode"><code>property <b><a href="glBitmap.TglBitmap.html#FreeDataOnDestroy">FreeDataOnDestroy</a></b>: Boolean read <a href="glBitmap.TglBitmap.html#fFreeDataOnDestroy">fFreeDataOnDestroy</a> write <a href="glBitmap.TglBitmap.html#SetFreeDataOnDestroy">SetFreeDataOnDestroy</a>;</code></td>
  487. </tr>
  488. <tr class="list">
  489. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  490. <td class="itemcode"><code>property <b><a href="glBitmap.TglBitmap.html#FreeDataAfterGenTexture">FreeDataAfterGenTexture</a></b>: Boolean read <a href="glBitmap.TglBitmap.html#fFreeDataAfterGenTexture">fFreeDataAfterGenTexture</a> write <a href="glBitmap.TglBitmap.html#SetFreeDataAfterGenTexture">SetFreeDataAfterGenTexture</a>;</code></td>
  491. </tr>
  492. <tr class="list2">
  493. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  494. <td class="itemcode"><code>property <b><a href="glBitmap.TglBitmap.html#Dimension">Dimension</a></b>: <a href="glBitmap.TglBitmapSize.html">TglBitmapSize</a> read <a href="glBitmap.TglBitmap.html#fDimension">fDimension</a>;</code></td>
  495. </tr>
  496. <tr class="list">
  497. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  498. <td class="itemcode"><code>property <b><a href="glBitmap.TglBitmap.html#Data">Data</a></b>: PByte read <a href="glBitmap.TglBitmap.html#fData">fData</a>;</code></td>
  499. </tr>
  500. </table>
  501. <h2 class="description">Description</h2>
  502. <h3 class="detail">Fields</h3>
  503. <table class="detail wide_list">
  504. <tr class="list">
  505. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  506. <td class="itemcode"><a name="fID"></a><code><b>fID</b>: GLuint;</code></td>
  507. </tr>
  508. <tr><td colspan="2">
  509. <p>
  510. name of the OpenGL texture object</p>
  511. </td></tr>
  512. </table>
  513. <table class="detail wide_list">
  514. <tr class="list">
  515. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  516. <td class="itemcode"><a name="fTarget"></a><code><b>fTarget</b>: GLuint;</code></td>
  517. </tr>
  518. <tr><td colspan="2">
  519. <p>
  520. texture target (e.g. GL_TEXTURE_2D)</p>
  521. </td></tr>
  522. </table>
  523. <table class="detail wide_list">
  524. <tr class="list">
  525. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  526. <td class="itemcode"><a name="fAnisotropic"></a><code><b>fAnisotropic</b>: Integer;</code></td>
  527. </tr>
  528. <tr><td colspan="2">
  529. <p>
  530. anisotropic level</p>
  531. </td></tr>
  532. </table>
  533. <table class="detail wide_list">
  534. <tr class="list">
  535. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  536. <td class="itemcode"><a name="fDeleteTextureOnFree"></a><code><b>fDeleteTextureOnFree</b>: Boolean;</code></td>
  537. </tr>
  538. <tr><td colspan="2">
  539. <p>
  540. delete OpenGL texture object when this object is destroyed</p>
  541. </td></tr>
  542. </table>
  543. <table class="detail wide_list">
  544. <tr class="list">
  545. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  546. <td class="itemcode"><a name="fFreeDataOnDestroy"></a><code><b>fFreeDataOnDestroy</b>: Boolean;</code></td>
  547. </tr>
  548. <tr><td colspan="2">
  549. <p>
  550. free stored data when this object is destroyed</p>
  551. </td></tr>
  552. </table>
  553. <table class="detail wide_list">
  554. <tr class="list">
  555. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  556. <td class="itemcode"><a name="fFreeDataAfterGenTexture"></a><code><b>fFreeDataAfterGenTexture</b>: Boolean;</code></td>
  557. </tr>
  558. <tr><td colspan="2">
  559. <p>
  560. free stored data after data was uploaded to video card</p>
  561. </td></tr>
  562. </table>
  563. <table class="detail wide_list">
  564. <tr class="list">
  565. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  566. <td class="itemcode"><a name="fData"></a><code><b>fData</b>: PByte;</code></td>
  567. </tr>
  568. <tr><td colspan="2">
  569. <p>
  570. data of this texture</p>
  571. </td></tr>
  572. </table>
  573. <table class="detail wide_list">
  574. <tr class="list">
  575. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  576. <td class="itemcode"><a name="fBorderColor"></a><code><b>fBorderColor</b>: array[0..3] of Single;</code></td>
  577. </tr>
  578. <tr><td colspan="2">
  579. <p>
  580. color of the texture border</p>
  581. </td></tr>
  582. </table>
  583. <table class="detail wide_list">
  584. <tr class="list">
  585. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  586. <td class="itemcode"><a name="fDimension"></a><code><b>fDimension</b>: <a href="glBitmap.TglBitmapSize.html">TglBitmapSize</a>;</code></td>
  587. </tr>
  588. <tr><td colspan="2">
  589. <p>
  590. size of this texture</p>
  591. </td></tr>
  592. </table>
  593. <table class="detail wide_list">
  594. <tr class="list">
  595. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  596. <td class="itemcode"><a name="fMipMap"></a><code><b>fMipMap</b>: <a href="glBitmap.html#TglBitmapMipMap">TglBitmapMipMap</a>;</code></td>
  597. </tr>
  598. <tr><td colspan="2">
  599. <p>
  600. mipmap type</p>
  601. </td></tr>
  602. </table>
  603. <table class="detail wide_list">
  604. <tr class="list">
  605. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  606. <td class="itemcode"><a name="fFormat"></a><code><b>fFormat</b>: <a href="glBitmap.html#TglBitmapFormat">TglBitmapFormat</a>;</code></td>
  607. </tr>
  608. <tr><td colspan="2">
  609. <p>
  610. format the texture data is stored in</p>
  611. </td></tr>
  612. </table>
  613. <table class="detail wide_list">
  614. <tr class="list">
  615. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  616. <td class="itemcode"><a name="fPixelSize"></a><code><b>fPixelSize</b>: Integer;</code></td>
  617. </tr>
  618. <tr><td colspan="2">
  619. <p>
  620. size of one pixel (in byte)</p>
  621. </td></tr>
  622. </table>
  623. <table class="detail wide_list">
  624. <tr class="list">
  625. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  626. <td class="itemcode"><a name="fRowSize"></a><code><b>fRowSize</b>: Integer;</code></td>
  627. </tr>
  628. <tr><td colspan="2">
  629. <p>
  630. size of one pixel row (in byte)</p>
  631. </td></tr>
  632. </table>
  633. <table class="detail wide_list">
  634. <tr class="list">
  635. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  636. <td class="itemcode"><a name="fFilterMin"></a><code><b>fFilterMin</b>: GLenum;</code></td>
  637. </tr>
  638. <tr><td colspan="2">
  639. <p>
  640. min filter to apply to the texture</p>
  641. </td></tr>
  642. </table>
  643. <table class="detail wide_list">
  644. <tr class="list">
  645. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  646. <td class="itemcode"><a name="fFilterMag"></a><code><b>fFilterMag</b>: GLenum;</code></td>
  647. </tr>
  648. <tr><td colspan="2">
  649. <p>
  650. mag filter to apply to the texture</p>
  651. </td></tr>
  652. </table>
  653. <table class="detail wide_list">
  654. <tr class="list">
  655. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  656. <td class="itemcode"><a name="fWrapS"></a><code><b>fWrapS</b>: GLenum;</code></td>
  657. </tr>
  658. <tr><td colspan="2">
  659. <p>
  660. texture wrapping for x axis</p>
  661. </td></tr>
  662. </table>
  663. <table class="detail wide_list">
  664. <tr class="list">
  665. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  666. <td class="itemcode"><a name="fWrapT"></a><code><b>fWrapT</b>: GLenum;</code></td>
  667. </tr>
  668. <tr><td colspan="2">
  669. <p>
  670. texture wrapping for y axis</p>
  671. </td></tr>
  672. </table>
  673. <table class="detail wide_list">
  674. <tr class="list">
  675. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  676. <td class="itemcode"><a name="fWrapR"></a><code><b>fWrapR</b>: GLenum;</code></td>
  677. </tr>
  678. <tr><td colspan="2">
  679. <p>
  680. texture wrapping for z axis</p>
  681. </td></tr>
  682. </table>
  683. <table class="detail wide_list">
  684. <tr class="list">
  685. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  686. <td class="itemcode"><a name="fSwizzle"></a><code><b>fSwizzle</b>: array[0..3] of GLenum;</code></td>
  687. </tr>
  688. <tr><td colspan="2">
  689. <p>
  690. color channel swizzle</p>
  691. </td></tr>
  692. </table>
  693. <table class="detail wide_list">
  694. <tr class="list">
  695. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  696. <td class="itemcode"><a name="fFilename"></a><code><b>fFilename</b>: String;</code></td>
  697. </tr>
  698. <tr><td colspan="2">
  699. <p>
  700. filename the texture was load from</p>
  701. </td></tr>
  702. </table>
  703. <table class="detail wide_list">
  704. <tr class="list">
  705. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  706. <td class="itemcode"><a name="fCustomName"></a><code><b>fCustomName</b>: String;</code></td>
  707. </tr>
  708. <tr><td colspan="2">
  709. <p>
  710. user defined name</p>
  711. </td></tr>
  712. </table>
  713. <table class="detail wide_list">
  714. <tr class="list">
  715. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  716. <td class="itemcode"><a name="fCustomNameW"></a><code><b>fCustomNameW</b>: WideString;</code></td>
  717. </tr>
  718. <tr><td colspan="2">
  719. <p>
  720. user defined name</p>
  721. </td></tr>
  722. </table>
  723. <table class="detail wide_list">
  724. <tr class="list">
  725. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  726. <td class="itemcode"><a name="fCustomData"></a><code><b>fCustomData</b>: Pointer;</code></td>
  727. </tr>
  728. <tr><td colspan="2">
  729. <p>
  730. user defined data</p>
  731. </td></tr>
  732. </table>
  733. <h3 class="detail">Methods</h3>
  734. <table class="detail wide_list">
  735. <tr class="list">
  736. <td class="visibility"><a href="legend.html"><img src="private.gif" alt="Private" title="Private"></a></td>
  737. <td class="itemcode"><a name="GetFormatDesc"></a><code>function <b>GetFormatDesc</b>: <a href="glBitmap.TglBitmapFormatDescriptor.html">TglBitmapFormatDescriptor</a>;</code></td>
  738. </tr>
  739. <tr><td colspan="2">
  740. &nbsp;<h6 class="description_section">Returns</h6>
  741. <p class="return">format descriptor that describes the format of the stored data</p></td></tr>
  742. </table>
  743. <table class="detail wide_list">
  744. <tr class="list">
  745. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  746. <td class="itemcode"><a name="GetWidth"></a><code>function <b>GetWidth</b>: Integer; virtual;</code></td>
  747. </tr>
  748. <tr><td colspan="2">
  749. &nbsp;<h6 class="description_section">Returns</h6>
  750. <p class="return">the actual width of the texture</p></td></tr>
  751. </table>
  752. <table class="detail wide_list">
  753. <tr class="list">
  754. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  755. <td class="itemcode"><a name="GetHeight"></a><code>function <b>GetHeight</b>: Integer; virtual;</code></td>
  756. </tr>
  757. <tr><td colspan="2">
  758. &nbsp;<h6 class="description_section">Returns</h6>
  759. <p class="return">the actual height of the texture</p></td></tr>
  760. </table>
  761. <table class="detail wide_list">
  762. <tr class="list">
  763. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  764. <td class="itemcode"><a name="GetFileWidth"></a><code>function <b>GetFileWidth</b>: Integer; virtual;</code></td>
  765. </tr>
  766. <tr><td colspan="2">
  767. &nbsp;<h6 class="description_section">Returns</h6>
  768. <p class="return">the width of the texture or 1 if the width is zero</p></td></tr>
  769. </table>
  770. <table class="detail wide_list">
  771. <tr class="list">
  772. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  773. <td class="itemcode"><a name="GetFileHeight"></a><code>function <b>GetFileHeight</b>: Integer; virtual;</code></td>
  774. </tr>
  775. <tr><td colspan="2">
  776. &nbsp;<h6 class="description_section">Returns</h6>
  777. <p class="return">the height of the texture or 1 if the height is zero</p></td></tr>
  778. </table>
  779. <table class="detail wide_list">
  780. <tr class="list">
  781. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  782. <td class="itemcode"><a name="SetCustomData"></a><code>procedure <b>SetCustomData</b>(const aValue: Pointer);</code></td>
  783. </tr>
  784. <tr><td colspan="2">
  785. <p>
  786. set a new value for fCustomData</p>
  787. </td></tr>
  788. </table>
  789. <table class="detail wide_list">
  790. <tr class="list">
  791. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  792. <td class="itemcode"><a name="SetCustomName"></a><code>procedure <b>SetCustomName</b>(const aValue: String);</code></td>
  793. </tr>
  794. <tr><td colspan="2">
  795. <p>
  796. set a new value for fCustomName</p>
  797. </td></tr>
  798. </table>
  799. <table class="detail wide_list">
  800. <tr class="list">
  801. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  802. <td class="itemcode"><a name="SetCustomNameW"></a><code>procedure <b>SetCustomNameW</b>(const aValue: WideString);</code></td>
  803. </tr>
  804. <tr><td colspan="2">
  805. <p>
  806. set a new value for fCustomNameW</p>
  807. </td></tr>
  808. </table>
  809. <table class="detail wide_list">
  810. <tr class="list">
  811. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  812. <td class="itemcode"><a name="SetFreeDataOnDestroy"></a><code>procedure <b>SetFreeDataOnDestroy</b>(const aValue: Boolean);</code></td>
  813. </tr>
  814. <tr><td colspan="2">
  815. <p>
  816. set new value for fFreeDataOnDestroy</p>
  817. </td></tr>
  818. </table>
  819. <table class="detail wide_list">
  820. <tr class="list">
  821. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  822. <td class="itemcode"><a name="SetDeleteTextureOnFree"></a><code>procedure <b>SetDeleteTextureOnFree</b>(const aValue: Boolean);</code></td>
  823. </tr>
  824. <tr><td colspan="2">
  825. <p>
  826. set new value for fDeleteTextureOnFree</p>
  827. </td></tr>
  828. </table>
  829. <table class="detail wide_list">
  830. <tr class="list">
  831. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  832. <td class="itemcode"><a name="SetFormat"></a><code>procedure <b>SetFormat</b>(const aValue: <a href="glBitmap.html#TglBitmapFormat">TglBitmapFormat</a>);</code></td>
  833. </tr>
  834. <tr><td colspan="2">
  835. <p>
  836. set new value for the data format. only possible if new format has the same pixel size. if you want to convert the texture data, see ConvertTo function</p>
  837. </td></tr>
  838. </table>
  839. <table class="detail wide_list">
  840. <tr class="list">
  841. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  842. <td class="itemcode"><a name="SetFreeDataAfterGenTexture"></a><code>procedure <b>SetFreeDataAfterGenTexture</b>(const aValue: Boolean);</code></td>
  843. </tr>
  844. <tr><td colspan="2">
  845. <p>
  846. set new value for fFreeDataAfterGenTexture</p>
  847. </td></tr>
  848. </table>
  849. <table class="detail wide_list">
  850. <tr class="list">
  851. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  852. <td class="itemcode"><a name="SetID"></a><code>procedure <b>SetID</b>(const aValue: Cardinal);</code></td>
  853. </tr>
  854. <tr><td colspan="2">
  855. <p>
  856. set name of OpenGL texture object</p>
  857. </td></tr>
  858. </table>
  859. <table class="detail wide_list">
  860. <tr class="list">
  861. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  862. <td class="itemcode"><a name="SetMipMap"></a><code>procedure <b>SetMipMap</b>(const aValue: <a href="glBitmap.html#TglBitmapMipMap">TglBitmapMipMap</a>);</code></td>
  863. </tr>
  864. <tr><td colspan="2">
  865. <p>
  866. set new value for fMipMap</p>
  867. </td></tr>
  868. </table>
  869. <table class="detail wide_list">
  870. <tr class="list">
  871. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  872. <td class="itemcode"><a name="SetTarget"></a><code>procedure <b>SetTarget</b>(const aValue: Cardinal);</code></td>
  873. </tr>
  874. <tr><td colspan="2">
  875. <p>
  876. set new value for target</p>
  877. </td></tr>
  878. </table>
  879. <table class="detail wide_list">
  880. <tr class="list">
  881. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  882. <td class="itemcode"><a name="SetAnisotropic"></a><code>procedure <b>SetAnisotropic</b>(const aValue: Integer);</code></td>
  883. </tr>
  884. <tr><td colspan="2">
  885. <p>
  886. set new value for fAnisotrophic</p>
  887. </td></tr>
  888. </table>
  889. <table class="detail wide_list">
  890. <tr class="list">
  891. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  892. <td class="itemcode"><a name="CreateID"></a><code>procedure <b>CreateID</b>;</code></td>
  893. </tr>
  894. <tr><td colspan="2">
  895. <p>
  896. create OpenGL texture object (delete exisiting object if exists)</p>
  897. </td></tr>
  898. </table>
  899. <table class="detail wide_list">
  900. <tr class="list">
  901. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  902. <td class="itemcode"><a name="SetupParameters"></a><code>procedure <b>SetupParameters</b>();</code></td>
  903. </tr>
  904. <tr><td colspan="2">
  905. <p>
  906. setup texture parameters</p>
  907. </td></tr>
  908. </table>
  909. <table class="detail wide_list">
  910. <tr class="list">
  911. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  912. <td class="itemcode"><a name="SetDataPointer"></a><code>procedure <b>SetDataPointer</b>(var aData: PByte; const aFormat: <a href="glBitmap.html#TglBitmapFormat">TglBitmapFormat</a>; const aWidth: Integer = -1; const aHeight: Integer = -1); virtual;</code></td>
  913. </tr>
  914. <tr><td colspan="2">
  915. <p>
  916. set data pointer of texture data </p>
  917. <h6 class="description_section">Parameters</h6>
  918. <dl class="parameters">
  919. <dt>aData</dt>
  920. <dd>pointer to new texture data (be carefull, aData could be freed by this function)</dd>
  921. <dt>aFormat</dt>
  922. <dd>format of the data stored at aData</dd>
  923. <dt>aWidth</dt>
  924. <dd>width of the texture data</dd>
  925. <dt>aHeight</dt>
  926. <dd>height of the texture data</dd>
  927. </dl>
  928. </td></tr>
  929. </table>
  930. <table class="detail wide_list">
  931. <tr class="list">
  932. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  933. <td class="itemcode"><a name="GenTexture"></a><code>procedure <b>GenTexture</b>(const aTestTextureSize: Boolean = true); virtual; abstract;</code></td>
  934. </tr>
  935. <tr><td colspan="2">
  936. <p>
  937. generate texture (upload texture data to video card) </p>
  938. <h6 class="description_section">Parameters</h6>
  939. <dl class="parameters">
  940. <dt>aTestTextureSize</dt>
  941. <dd>test texture size before uploading and raise exception if something is wrong</dd>
  942. </dl>
  943. </td></tr>
  944. </table>
  945. <table class="detail wide_list">
  946. <tr class="list">
  947. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  948. <td class="itemcode"><a name="FlipHorz"></a><code>function <b>FlipHorz</b>: Boolean; virtual;</code></td>
  949. </tr>
  950. <tr><td colspan="2">
  951. <p>
  952. flip texture horizontal </p>
  953. <h6 class="description_section">Returns</h6>
  954. <p class="return"><code>True</code> in success, <code>False</code> otherwise</p></td></tr>
  955. </table>
  956. <table class="detail wide_list">
  957. <tr class="list">
  958. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  959. <td class="itemcode"><a name="FlipVert"></a><code>function <b>FlipVert</b>: Boolean; virtual;</code></td>
  960. </tr>
  961. <tr><td colspan="2">
  962. <p>
  963. flip texture vertical </p>
  964. <h6 class="description_section">Returns</h6>
  965. <p class="return"><code>True</code> in success, <code>False</code> otherwise</p></td></tr>
  966. </table>
  967. <table class="detail wide_list">
  968. <tr class="list">
  969. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  970. <td class="itemcode"><a name="AfterConstruction"></a><code>procedure <b>AfterConstruction</b>; override;</code></td>
  971. </tr>
  972. <tr><td colspan="2">
  973. <p>
  974. this method is called after the constructor and sets the default values of this object</p>
  975. </td></tr>
  976. </table>
  977. <table class="detail wide_list">
  978. <tr class="list">
  979. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  980. <td class="itemcode"><a name="BeforeDestruction"></a><code>procedure <b>BeforeDestruction</b>; override;</code></td>
  981. </tr>
  982. <tr><td colspan="2">
  983. <p>
  984. this method is called before the destructor and does some cleanup</p>
  985. </td></tr>
  986. </table>
  987. <table class="detail wide_list">
  988. <tr class="list">
  989. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  990. <td class="itemcode"><a name="PrepareResType"></a><code>procedure <b>PrepareResType</b>(var aResource: String; var aResType: PChar);</code></td>
  991. </tr>
  992. <tr><td colspan="2">
  993. <p>
  994. splits a resource identifier into the resource and it's type </p>
  995. <h6 class="description_section">Parameters</h6>
  996. <dl class="parameters">
  997. <dt>aResource</dt>
  998. <dd>resource identifier to split and store name in</dd>
  999. <dt>aResType</dt>
  1000. <dd>type of the resource</dd>
  1001. </dl>
  1002. </td></tr>
  1003. </table>
  1004. <table class="detail wide_list">
  1005. <tr class="list">
  1006. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  1007. <td class="itemcode"><a name="LoadFromFile"></a><code>procedure <b>LoadFromFile</b>(const aFilename: String);</code></td>
  1008. </tr>
  1009. <tr><td colspan="2">
  1010. <p>
  1011. load a texture from a file </p>
  1012. <h6 class="description_section">Parameters</h6>
  1013. <dl class="parameters">
  1014. <dt>aFilename</dt>
  1015. <dd>file to load texuture from</dd>
  1016. </dl>
  1017. </td></tr>
  1018. </table>
  1019. <table class="detail wide_list">
  1020. <tr class="list">
  1021. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  1022. <td class="itemcode"><a name="LoadFromStream"></a><code>procedure <b>LoadFromStream</b>(const aStream: TStream); virtual;</code></td>
  1023. </tr>
  1024. <tr><td colspan="2">
  1025. <p>
  1026. load a texture from a stream </p>
  1027. <h6 class="description_section">Parameters</h6>
  1028. <dl class="parameters">
  1029. <dt>aStream</dt>
  1030. <dd>stream to load texture from</dd>
  1031. </dl>
  1032. </td></tr>
  1033. </table>
  1034. <table class="detail wide_list">
  1035. <tr class="list">
  1036. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  1037. <td class="itemcode"><a name="LoadFromFunc"></a><code>procedure <b>LoadFromFunc</b>(const aSize: <a href="glBitmap.TglBitmapSize.html">TglBitmapSize</a>; const aFunc: <a href="glBitmap.html#TglBitmapFunction">TglBitmapFunction</a>; const aFormat: <a href="glBitmap.html#TglBitmapFormat">TglBitmapFormat</a>; const aArgs: Pointer = nil);</code></td>
  1038. </tr>
  1039. <tr><td colspan="2">
  1040. <p>
  1041. use a function to generate texture data </p>
  1042. <h6 class="description_section">Parameters</h6>
  1043. <dl class="parameters">
  1044. <dt>aSize</dt>
  1045. <dd>size of the texture</dd>
  1046. <dt>aFunc</dt>
  1047. <dd>callback to use for generation</dd>
  1048. <dt>aFormat</dt>
  1049. <dd>format of the texture data</dd>
  1050. <dt>aArgs</dt>
  1051. <dd>user defined paramaters (use at will)</dd>
  1052. </dl>
  1053. </td></tr>
  1054. </table>
  1055. <table class="detail wide_list">
  1056. <tr class="list">
  1057. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  1058. <td class="itemcode"><a name="LoadFromResource"></a><code>procedure <b>LoadFromResource</b>(const aInstance: Cardinal; aResource: String; aResType: PChar = nil);</code></td>
  1059. </tr>
  1060. <tr><td colspan="2">
  1061. <p>
  1062. load a texture from a resource </p>
  1063. <h6 class="description_section">Parameters</h6>
  1064. <dl class="parameters">
  1065. <dt>aInstance</dt>
  1066. <dd>resource handle</dd>
  1067. <dt>aResource</dt>
  1068. <dd>resource indentifier</dd>
  1069. <dt>aResType</dt>
  1070. <dd>resource type (if known)</dd>
  1071. </dl>
  1072. </td></tr>
  1073. </table>
  1074. <table class="detail wide_list">
  1075. <tr class="list">
  1076. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  1077. <td class="itemcode"><a name="LoadFromResourceID"></a><code>procedure <b>LoadFromResourceID</b>(const aInstance: Cardinal; const aResourceID: Integer; const aResType: PChar);</code></td>
  1078. </tr>
  1079. <tr><td colspan="2">
  1080. <p>
  1081. load a texture from a resource id </p>
  1082. <h6 class="description_section">Parameters</h6>
  1083. <dl class="parameters">
  1084. <dt>aInstance</dt>
  1085. <dd>resource handle</dd>
  1086. <dt>aResource</dt>
  1087. <dd>resource ID</dd>
  1088. <dt>aResType</dt>
  1089. <dd>resource type</dd>
  1090. </dl>
  1091. </td></tr>
  1092. </table>
  1093. <table class="detail wide_list">
  1094. <tr class="list">
  1095. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  1096. <td class="itemcode"><a name="SaveToFile"></a><code>procedure <b>SaveToFile</b>(const aFilename: String; const aFileType: <a href="glBitmap.html#TglBitmapFileType">TglBitmapFileType</a>);</code></td>
  1097. </tr>
  1098. <tr><td colspan="2">
  1099. <p>
  1100. save texture data to a file </p>
  1101. <h6 class="description_section">Parameters</h6>
  1102. <dl class="parameters">
  1103. <dt>aFilename</dt>
  1104. <dd>filename to store texture in</dd>
  1105. <dt>aFileType</dt>
  1106. <dd>file type to store data into</dd>
  1107. </dl>
  1108. </td></tr>
  1109. </table>
  1110. <table class="detail wide_list">
  1111. <tr class="list">
  1112. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  1113. <td class="itemcode"><a name="SaveToStream"></a><code>procedure <b>SaveToStream</b>(const aStream: TStream; const aFileType: <a href="glBitmap.html#TglBitmapFileType">TglBitmapFileType</a>); virtual;</code></td>
  1114. </tr>
  1115. <tr><td colspan="2">
  1116. <p>
  1117. save texture data to a stream </p>
  1118. <h6 class="description_section">Parameters</h6>
  1119. <dl class="parameters">
  1120. <dt>aFilename</dt>
  1121. <dd>filename to store texture in</dd>
  1122. <dt>aFileType</dt>
  1123. <dd>file type to store data into</dd>
  1124. </dl>
  1125. </td></tr>
  1126. </table>
  1127. <table class="detail wide_list">
  1128. <tr class="list">
  1129. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  1130. <td class="itemcode"><a name="Convert"></a><code>function <b>Convert</b>(const aFunc: <a href="glBitmap.html#TglBitmapFunction">TglBitmapFunction</a>; const aCreateTemp: Boolean; const aArgs: Pointer = nil): Boolean; overload;</code></td>
  1131. </tr>
  1132. <tr><td colspan="2">
  1133. <p>
  1134. convert texture data using a user defined callback </p>
  1135. <h6 class="description_section">Parameters</h6>
  1136. <dl class="parameters">
  1137. <dt>aFunc</dt>
  1138. <dd>callback to use for converting</dd>
  1139. <dt>aCreateTemp</dt>
  1140. <dd>create a temporary buffer to use for converting</dd>
  1141. <dt>aArgs</dt>
  1142. <dd>user defined paramters (use at will)</dd>
  1143. </dl>
  1144. <h6 class="description_section">Returns</h6>
  1145. <p class="return"><code>True</code> if converting was successful, <code>False</code> otherwise</p></td></tr>
  1146. </table>
  1147. <table class="detail wide_list">
  1148. <tr class="list">
  1149. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  1150. <td class="itemcode"><a name="Convert"></a><code>function <b>Convert</b>(const aSource: <a href="glBitmap.TglBitmap.html">TglBitmap</a>; const aFunc: <a href="glBitmap.html#TglBitmapFunction">TglBitmapFunction</a>; aCreateTemp: Boolean; const aFormat: <a href="glBitmap.html#TglBitmapFormat">TglBitmapFormat</a>; const aArgs: Pointer = nil): Boolean; overload;</code></td>
  1151. </tr>
  1152. <tr><td colspan="2">
  1153. <p>
  1154. convert texture data using a user defined callback </p>
  1155. <h6 class="description_section">Parameters</h6>
  1156. <dl class="parameters">
  1157. <dt>aSource</dt>
  1158. <dd>glBitmap to read data from</dd>
  1159. <dt>aFunc</dt>
  1160. <dd>callback to use for converting</dd>
  1161. <dt>aCreateTemp</dt>
  1162. <dd>create a temporary buffer to use for converting</dd>
  1163. <dt>aFormat</dt>
  1164. <dd>format of the new data</dd>
  1165. <dt>aArgs</dt>
  1166. <dd>user defined paramters (use at will)</dd>
  1167. </dl>
  1168. <h6 class="description_section">Returns</h6>
  1169. <p class="return"><code>True</code> if converting was successful, <code>False</code> otherwise</p></td></tr>
  1170. </table>
  1171. <table class="detail wide_list">
  1172. <tr class="list">
  1173. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  1174. <td class="itemcode"><a name="ConvertTo"></a><code>function <b>ConvertTo</b>(const aFormat: <a href="glBitmap.html#TglBitmapFormat">TglBitmapFormat</a>): Boolean; virtual;</code></td>
  1175. </tr>
  1176. <tr><td colspan="2">
  1177. <p>
  1178. convert texture data using a specific format </p>
  1179. <h6 class="description_section">Parameters</h6>
  1180. <dl class="parameters">
  1181. <dt>aFormat</dt>
  1182. <dd>new format of texture data</dd>
  1183. </dl>
  1184. <h6 class="description_section">Returns</h6>
  1185. <p class="return"><code>True</code> if converting was successful, <code>False</code> otherwise</p></td></tr>
  1186. </table>
  1187. <table class="detail wide_list">
  1188. <tr class="list">
  1189. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  1190. <td class="itemcode"><a name="AddAlphaFromResource"></a><code>function <b>AddAlphaFromResource</b>(const aInstance: Cardinal; aResource: String; aResType: PChar = nil; const aFunc: <a href="glBitmap.html#TglBitmapFunction">TglBitmapFunction</a> = nil; const aArgs: Pointer = nil): Boolean;</code></td>
  1191. </tr>
  1192. <tr><td colspan="2">
  1193. <p>
  1194. load alpha channel data from resource </p>
  1195. <h6 class="description_section">Parameters</h6>
  1196. <dl class="parameters">
  1197. <dt>aInstance</dt>
  1198. <dd>resource handle</dd>
  1199. <dt>aResource</dt>
  1200. <dd>resource ID</dd>
  1201. <dt>aResType</dt>
  1202. <dd>resource type</dd>
  1203. <dt>aFunc</dt>
  1204. <dd>callback to use for converting</dd>
  1205. <dt>aArgs</dt>
  1206. <dd>user defined parameters (use at will)</dd>
  1207. </dl>
  1208. <h6 class="description_section">Returns</h6>
  1209. <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
  1210. </table>
  1211. <table class="detail wide_list">
  1212. <tr class="list">
  1213. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  1214. <td class="itemcode"><a name="AddAlphaFromResourceID"></a><code>function <b>AddAlphaFromResourceID</b>(const aInstance: Cardinal; const aResourceID: Integer; const aResType: PChar; const aFunc: <a href="glBitmap.html#TglBitmapFunction">TglBitmapFunction</a> = nil; const aArgs: Pointer = nil): Boolean;</code></td>
  1215. </tr>
  1216. <tr><td colspan="2">
  1217. <p>
  1218. load alpha channel data from resource ID </p>
  1219. <h6 class="description_section">Parameters</h6>
  1220. <dl class="parameters">
  1221. <dt>aInstance</dt>
  1222. <dd>resource handle</dd>
  1223. <dt>aResourceID</dt>
  1224. <dd>resource ID</dd>
  1225. <dt>aResType</dt>
  1226. <dd>resource type</dd>
  1227. <dt>aFunc</dt>
  1228. <dd>callback to use for converting</dd>
  1229. <dt>aArgs</dt>
  1230. <dd>user defined parameters (use at will)</dd>
  1231. </dl>
  1232. <h6 class="description_section">Returns</h6>
  1233. <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
  1234. </table>
  1235. <table class="detail wide_list">
  1236. <tr class="list">
  1237. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  1238. <td class="itemcode"><a name="AddAlphaFromFunc"></a><code>function <b>AddAlphaFromFunc</b>(const aFunc: <a href="glBitmap.html#TglBitmapFunction">TglBitmapFunction</a>; const aArgs: Pointer = nil): Boolean; virtual;</code></td>
  1239. </tr>
  1240. <tr><td colspan="2">
  1241. <p>
  1242. add alpha channel data from function </p>
  1243. <h6 class="description_section">Parameters</h6>
  1244. <dl class="parameters">
  1245. <dt>aFunc</dt>
  1246. <dd>callback to get data from</dd>
  1247. <dt>aArgs</dt>
  1248. <dd>user defined parameters (use at will)</dd>
  1249. </dl>
  1250. <h6 class="description_section">Returns</h6>
  1251. <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
  1252. </table>
  1253. <table class="detail wide_list">
  1254. <tr class="list">
  1255. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  1256. <td class="itemcode"><a name="AddAlphaFromFile"></a><code>function <b>AddAlphaFromFile</b>(const aFileName: String; const aFunc: <a href="glBitmap.html#TglBitmapFunction">TglBitmapFunction</a> = nil; const aArgs: Pointer = nil): Boolean;</code></td>
  1257. </tr>
  1258. <tr><td colspan="2">
  1259. <p>
  1260. add alpha channel data from file (macro for: new glBitmap, LoadFromFile, AddAlphaFromGlBitmap) </p>
  1261. <h6 class="description_section">Parameters</h6>
  1262. <dl class="parameters">
  1263. <dt>aFilename</dt>
  1264. <dd>file to load alpha channel data from</dd>
  1265. <dt>aFunc</dt>
  1266. <dd>callback to use for converting</dd>
  1267. <dt>aArgs</dt>
  1268. <dd>user defined parameters (use at will)</dd>
  1269. </dl>
  1270. <h6 class="description_section">Returns</h6>
  1271. <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
  1272. </table>
  1273. <table class="detail wide_list">
  1274. <tr class="list">
  1275. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  1276. <td class="itemcode"><a name="AddAlphaFromStream"></a><code>function <b>AddAlphaFromStream</b>(const aStream: TStream; const aFunc: <a href="glBitmap.html#TglBitmapFunction">TglBitmapFunction</a> = nil; const aArgs: Pointer = nil): Boolean;</code></td>
  1277. </tr>
  1278. <tr><td colspan="2">
  1279. <p>
  1280. add alpha channel data from stream (macro for: new glBitmap, LoadFromStream, AddAlphaFromGlBitmap) </p>
  1281. <h6 class="description_section">Parameters</h6>
  1282. <dl class="parameters">
  1283. <dt>aStream</dt>
  1284. <dd>stream to load alpha channel data from</dd>
  1285. <dt>aFunc</dt>
  1286. <dd>callback to use for converting</dd>
  1287. <dt>aArgs</dt>
  1288. <dd>user defined parameters (use at will)</dd>
  1289. </dl>
  1290. <h6 class="description_section">Returns</h6>
  1291. <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
  1292. </table>
  1293. <table class="detail wide_list">
  1294. <tr class="list">
  1295. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  1296. <td class="itemcode"><a name="AddAlphaFromGlBitmap"></a><code>function <b>AddAlphaFromGlBitmap</b>(const aBitmap: <a href="glBitmap.TglBitmap.html">TglBitmap</a>; aFunc: <a href="glBitmap.html#TglBitmapFunction">TglBitmapFunction</a> = nil; const aArgs: Pointer = nil): Boolean;</code></td>
  1297. </tr>
  1298. <tr><td colspan="2">
  1299. <p>
  1300. add alpha channel data from existing glBitmap object </p>
  1301. <h6 class="description_section">Parameters</h6>
  1302. <dl class="parameters">
  1303. <dt>aBitmap</dt>
  1304. <dd>TglBitmap to copy alpha channel data from</dd>
  1305. <dt>aFunc</dt>
  1306. <dd>callback to use for converting</dd>
  1307. <dt>aArgs</dt>
  1308. <dd>user defined parameters (use at will)</dd>
  1309. </dl>
  1310. <h6 class="description_section">Returns</h6>
  1311. <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
  1312. </table>
  1313. <table class="detail wide_list">
  1314. <tr class="list">
  1315. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  1316. <td class="itemcode"><a name="AddAlphaFromColorKey"></a><code>function <b>AddAlphaFromColorKey</b>(const aRed, aGreen, aBlue: Byte; const aDeviation: Byte = 0): Boolean;</code></td>
  1317. </tr>
  1318. <tr><td colspan="2">
  1319. <p>
  1320. add alpha to pixel if the pixels color is greter than the given color value </p>
  1321. <h6 class="description_section">Parameters</h6>
  1322. <dl class="parameters">
  1323. <dt>aRed</dt>
  1324. <dd>red threshold (0-255)</dd>
  1325. <dt>aGreen</dt>
  1326. <dd>green threshold (0-255)</dd>
  1327. <dt>aBlue</dt>
  1328. <dd>blue threshold (0-255)</dd>
  1329. <dt>aDeviatation</dt>
  1330. <dd>accepted deviatation (0-255)</dd>
  1331. </dl>
  1332. <h6 class="description_section">Returns</h6>
  1333. <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
  1334. </table>
  1335. <table class="detail wide_list">
  1336. <tr class="list">
  1337. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  1338. <td class="itemcode"><a name="AddAlphaFromColorKeyRange"></a><code>function <b>AddAlphaFromColorKeyRange</b>(const aRed, aGreen, aBlue: Cardinal; const aDeviation: Cardinal = 0): Boolean;</code></td>
  1339. </tr>
  1340. <tr><td colspan="2">
  1341. <p>
  1342. add alpha to pixel if the pixels color is greter than the given color value </p>
  1343. <h6 class="description_section">Parameters</h6>
  1344. <dl class="parameters">
  1345. <dt>aRed</dt>
  1346. <dd>red threshold (0-Range.r)</dd>
  1347. <dt>aGreen</dt>
  1348. <dd>green threshold (0-Range.g)</dd>
  1349. <dt>aBlue</dt>
  1350. <dd>blue threshold (0-Range.b)</dd>
  1351. <dt>aDeviatation</dt>
  1352. <dd>accepted deviatation (0-max(Range.rgb))</dd>
  1353. </dl>
  1354. <h6 class="description_section">Returns</h6>
  1355. <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
  1356. </table>
  1357. <table class="detail wide_list">
  1358. <tr class="list">
  1359. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  1360. <td class="itemcode"><a name="AddAlphaFromColorKeyFloat"></a><code>function <b>AddAlphaFromColorKeyFloat</b>(const aRed, aGreen, aBlue: Single; const aDeviation: Single = 0): Boolean;</code></td>
  1361. </tr>
  1362. <tr><td colspan="2">
  1363. <p>
  1364. add alpha to pixel if the pixels color is greter than the given color value </p>
  1365. <h6 class="description_section">Parameters</h6>
  1366. <dl class="parameters">
  1367. <dt>aRed</dt>
  1368. <dd>red threshold (0.0-1.0)</dd>
  1369. <dt>aGreen</dt>
  1370. <dd>green threshold (0.0-1.0)</dd>
  1371. <dt>aBlue</dt>
  1372. <dd>blue threshold (0.0-1.0)</dd>
  1373. <dt>aDeviatation</dt>
  1374. <dd>accepted deviatation (0.0-1.0)</dd>
  1375. </dl>
  1376. <h6 class="description_section">Returns</h6>
  1377. <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
  1378. </table>
  1379. <table class="detail wide_list">
  1380. <tr class="list">
  1381. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  1382. <td class="itemcode"><a name="AddAlphaFromValue"></a><code>function <b>AddAlphaFromValue</b>(const aAlpha: Byte): Boolean;</code></td>
  1383. </tr>
  1384. <tr><td colspan="2">
  1385. <p>
  1386. add a constand alpha value to all pixels </p>
  1387. <h6 class="description_section">Parameters</h6>
  1388. <dl class="parameters">
  1389. <dt>aAlpha</dt>
  1390. <dd>alpha value to add (0-255)</dd>
  1391. </dl>
  1392. <h6 class="description_section">Returns</h6>
  1393. <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
  1394. </table>
  1395. <table class="detail wide_list">
  1396. <tr class="list">
  1397. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  1398. <td class="itemcode"><a name="AddAlphaFromValueRange"></a><code>function <b>AddAlphaFromValueRange</b>(const aAlpha: Cardinal): Boolean;</code></td>
  1399. </tr>
  1400. <tr><td colspan="2">
  1401. <p>
  1402. add a constand alpha value to all pixels </p>
  1403. <h6 class="description_section">Parameters</h6>
  1404. <dl class="parameters">
  1405. <dt>aAlpha</dt>
  1406. <dd>alpha value to add (0-max(Range.rgb))</dd>
  1407. </dl>
  1408. <h6 class="description_section">Returns</h6>
  1409. <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
  1410. </table>
  1411. <table class="detail wide_list">
  1412. <tr class="list">
  1413. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  1414. <td class="itemcode"><a name="AddAlphaFromValueFloat"></a><code>function <b>AddAlphaFromValueFloat</b>(const aAlpha: Single): Boolean;</code></td>
  1415. </tr>
  1416. <tr><td colspan="2">
  1417. <p>
  1418. add a constand alpha value to all pixels </p>
  1419. <h6 class="description_section">Parameters</h6>
  1420. <dl class="parameters">
  1421. <dt>aAlpha</dt>
  1422. <dd>alpha value to add (0.0-1.0)</dd>
  1423. </dl>
  1424. <h6 class="description_section">Returns</h6>
  1425. <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
  1426. </table>
  1427. <table class="detail wide_list">
  1428. <tr class="list">
  1429. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  1430. <td class="itemcode"><a name="RemoveAlpha"></a><code>function <b>RemoveAlpha</b>: Boolean; virtual;</code></td>
  1431. </tr>
  1432. <tr><td colspan="2">
  1433. <p>
  1434. remove alpha channel </p>
  1435. <h6 class="description_section">Returns</h6>
  1436. <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
  1437. </table>
  1438. <table class="detail wide_list">
  1439. <tr class="list">
  1440. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  1441. <td class="itemcode"><a name="Clone"></a><code>function <b>Clone</b>: <a href="glBitmap.TglBitmap.html">TglBitmap</a>;</code></td>
  1442. </tr>
  1443. <tr><td colspan="2">
  1444. <p>
  1445. create a clone of the current object </p>
  1446. <h6 class="description_section">Returns</h6>
  1447. <p class="return">clone of this object</p></td></tr>
  1448. </table>
  1449. <table class="detail wide_list">
  1450. <tr class="list">
  1451. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  1452. <td class="itemcode"><a name="Invert"></a><code>procedure <b>Invert</b>(const aUseRGB: Boolean = true; const aUseAlpha: Boolean = false);</code></td>
  1453. </tr>
  1454. <tr><td colspan="2">
  1455. <p>
  1456. invert color data (xor) </p>
  1457. <h6 class="description_section">Parameters</h6>
  1458. <dl class="parameters">
  1459. <dt>aUseRGB</dt>
  1460. <dd>xor each color channel</dd>
  1461. <dt>aUseAlpha</dt>
  1462. <dd>xor alpha channel</dd>
  1463. </dl>
  1464. </td></tr>
  1465. </table>
  1466. <table class="detail wide_list">
  1467. <tr class="list">
  1468. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  1469. <td class="itemcode"><a name="FreeData"></a><code>procedure <b>FreeData</b>;</code></td>
  1470. </tr>
  1471. <tr><td colspan="2">
  1472. <p>
  1473. free texture stored data</p>
  1474. </td></tr>
  1475. </table>
  1476. <table class="detail wide_list">
  1477. <tr class="list">
  1478. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  1479. <td class="itemcode"><a name="FillWithColor"></a><code>procedure <b>FillWithColor</b>(const aRed, aGreen, aBlue: Byte; const aAlpha: Byte = 255);</code></td>
  1480. </tr>
  1481. <tr><td colspan="2">
  1482. <p>
  1483. fill complete texture with one color </p>
  1484. <h6 class="description_section">Parameters</h6>
  1485. <dl class="parameters">
  1486. <dt>aRed</dt>
  1487. <dd>red color for border (0-255)</dd>
  1488. <dt>aGreen</dt>
  1489. <dd>green color for border (0-255)</dd>
  1490. <dt>aBlue</dt>
  1491. <dd>blue color for border (0-255)</dd>
  1492. <dt>aAlpha</dt>
  1493. <dd>alpha color for border (0-255)</dd>
  1494. </dl>
  1495. </td></tr>
  1496. </table>
  1497. <table class="detail wide_list">
  1498. <tr class="list">
  1499. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  1500. <td class="itemcode"><a name="FillWithColorRange"></a><code>procedure <b>FillWithColorRange</b>(const aRed, aGreen, aBlue: Cardinal; const aAlpha: Cardinal = $FFFFFFFF);</code></td>
  1501. </tr>
  1502. <tr><td colspan="2">
  1503. <p>
  1504. fill complete texture with one color </p>
  1505. <h6 class="description_section">Parameters</h6>
  1506. <dl class="parameters">
  1507. <dt>aRed</dt>
  1508. <dd>red color for border (0-Range.r)</dd>
  1509. <dt>aGreen</dt>
  1510. <dd>green color for border (0-Range.g)</dd>
  1511. <dt>aBlue</dt>
  1512. <dd>blue color for border (0-Range.b)</dd>
  1513. <dt>aAlpha</dt>
  1514. <dd>alpha color for border (0-Range.a)</dd>
  1515. </dl>
  1516. </td></tr>
  1517. </table>
  1518. <table class="detail wide_list">
  1519. <tr class="list">
  1520. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  1521. <td class="itemcode"><a name="FillWithColorFloat"></a><code>procedure <b>FillWithColorFloat</b>(const aRed, aGreen, aBlue: Single; const aAlpha: Single = 1.0);</code></td>
  1522. </tr>
  1523. <tr><td colspan="2">
  1524. <p>
  1525. fill complete texture with one color </p>
  1526. <h6 class="description_section">Parameters</h6>
  1527. <dl class="parameters">
  1528. <dt>aRed</dt>
  1529. <dd>red color for border (0.0-1.0)</dd>
  1530. <dt>aGreen</dt>
  1531. <dd>green color for border (0.0-1.0)</dd>
  1532. <dt>aBlue</dt>
  1533. <dd>blue color for border (0.0-1.0)</dd>
  1534. <dt>aAlpha</dt>
  1535. <dd>alpha color for border (0.0-1.0)</dd>
  1536. </dl>
  1537. </td></tr>
  1538. </table>
  1539. <table class="detail wide_list">
  1540. <tr class="list">
  1541. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  1542. <td class="itemcode"><a name="SetFilter"></a><code>procedure <b>SetFilter</b>(const aMin, aMag: GLenum);</code></td>
  1543. </tr>
  1544. <tr><td colspan="2">
  1545. <p>
  1546. set new texture filer </p>
  1547. <h6 class="description_section">Parameters</h6>
  1548. <dl class="parameters">
  1549. <dt>aMin</dt>
  1550. <dd>min filter</dd>
  1551. <dt>aMag</dt>
  1552. <dd>mag filter</dd>
  1553. </dl>
  1554. </td></tr>
  1555. </table>
  1556. <table class="detail wide_list">
  1557. <tr class="list">
  1558. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  1559. <td class="itemcode"><a name="SetWrap"></a><code>procedure <b>SetWrap</b>( const S: GLenum = GL_CLAMP_TO_EDGE; const T: GLenum = GL_CLAMP_TO_EDGE; const R: GLenum = GL_CLAMP_TO_EDGE);</code></td>
  1560. </tr>
  1561. <tr><td colspan="2">
  1562. <p>
  1563. set new texture wrapping </p>
  1564. <h6 class="description_section">Parameters</h6>
  1565. <dl class="parameters">
  1566. <dt>S</dt>
  1567. <dd>texture wrapping for x axis</dd>
  1568. <dt>T</dt>
  1569. <dd>texture wrapping for y axis</dd>
  1570. <dt>R</dt>
  1571. <dd>texture wrapping for z axis</dd>
  1572. </dl>
  1573. </td></tr>
  1574. </table>
  1575. <table class="detail wide_list">
  1576. <tr class="list">
  1577. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  1578. <td class="itemcode"><a name="SetSwizzle"></a><code>procedure <b>SetSwizzle</b>(const r, g, b, a: GLenum);</code></td>
  1579. </tr>
  1580. <tr><td colspan="2">
  1581. <p>
  1582. set new swizzle </p>
  1583. <h6 class="description_section">Parameters</h6>
  1584. <dl class="parameters">
  1585. <dt>r</dt>
  1586. <dd>swizzle for red channel</dd>
  1587. <dt>g</dt>
  1588. <dd>swizzle for green channel</dd>
  1589. <dt>b</dt>
  1590. <dd>swizzle for blue channel</dd>
  1591. <dt>a</dt>
  1592. <dd>swizzle for alpha channel</dd>
  1593. </dl>
  1594. </td></tr>
  1595. </table>
  1596. <table class="detail wide_list">
  1597. <tr class="list">
  1598. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  1599. <td class="itemcode"><a name="Bind"></a><code>procedure <b>Bind</b>(const aEnableTextureUnit: Boolean = true); virtual;</code></td>
  1600. </tr>
  1601. <tr><td colspan="2">
  1602. <p>
  1603. bind texture </p>
  1604. <h6 class="description_section">Parameters</h6>
  1605. <dl class="parameters">
  1606. <dt>aEnableTextureUnit</dt>
  1607. <dd>enable texture unit for this texture (e.g. glEnable(GL_TEXTURE_2D))</dd>
  1608. </dl>
  1609. </td></tr>
  1610. </table>
  1611. <table class="detail wide_list">
  1612. <tr class="list">
  1613. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  1614. <td class="itemcode"><a name="Unbind"></a><code>procedure <b>Unbind</b>(const aDisableTextureUnit: Boolean = true); virtual;</code></td>
  1615. </tr>
  1616. <tr><td colspan="2">
  1617. <p>
  1618. bind texture </p>
  1619. <h6 class="description_section">Parameters</h6>
  1620. <dl class="parameters">
  1621. <dt>aDisableTextureUnit</dt>
  1622. <dd>disable texture unit for this texture (e.g. glEnable(GL_TEXTURE_2D))</dd>
  1623. </dl>
  1624. </td></tr>
  1625. </table>
  1626. <table class="detail wide_list">
  1627. <tr class="list">
  1628. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  1629. <td class="itemcode"><a name="Create"></a><code>constructor <b>Create</b>; overload;</code></td>
  1630. </tr>
  1631. <tr><td colspan="2">
  1632. <p>
  1633. constructor - created an empty texture</p>
  1634. </td></tr>
  1635. </table>
  1636. <table class="detail wide_list">
  1637. <tr class="list">
  1638. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  1639. <td class="itemcode"><a name="Create"></a><code>constructor <b>Create</b>(const aFileName: String); overload;</code></td>
  1640. </tr>
  1641. <tr><td colspan="2">
  1642. <p>
  1643. constructor - creates a texture and load it from a file </p>
  1644. <h6 class="description_section">Parameters</h6>
  1645. <dl class="parameters">
  1646. <dt>aFilename</dt>
  1647. <dd>file to load texture from</dd>
  1648. </dl>
  1649. </td></tr>
  1650. </table>
  1651. <table class="detail wide_list">
  1652. <tr class="list">
  1653. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  1654. <td class="itemcode"><a name="Create"></a><code>constructor <b>Create</b>(const aStream: TStream); overload;</code></td>
  1655. </tr>
  1656. <tr><td colspan="2">
  1657. <p>
  1658. constructor - creates a texture and load it from a stream </p>
  1659. <h6 class="description_section">Parameters</h6>
  1660. <dl class="parameters">
  1661. <dt>aStream</dt>
  1662. <dd>stream to load texture from</dd>
  1663. </dl>
  1664. </td></tr>
  1665. </table>
  1666. <table class="detail wide_list">
  1667. <tr class="list">
  1668. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  1669. <td class="itemcode"><a name="Create"></a><code>constructor <b>Create</b>(const aSize: <a href="glBitmap.TglBitmapSize.html">TglBitmapSize</a>; const aFormat: <a href="glBitmap.html#TglBitmapFormat">TglBitmapFormat</a>; aData: PByte = nil); overload;</code></td>
  1670. </tr>
  1671. <tr><td colspan="2">
  1672. <p>
  1673. constructor - creates a texture with the given size, format and data you can control this by setting DeleteTextureOnFree, FreeDataOnDestroy and FreeDataAfterGenTexture</p>
  1674. <h6 class="description_section">Parameters</h6>
  1675. <dl class="parameters">
  1676. <dt>aSize</dt>
  1677. <dd>size of the texture</dd>
  1678. <dt>aFormat</dt>
  1679. <dd>format of the given data</dd>
  1680. <dt>aData</dt>
  1681. <dd>texture data - be carefull: the data will now be managed by the glBitmap object,</dd>
  1682. </dl>
  1683. </td></tr>
  1684. </table>
  1685. <table class="detail wide_list">
  1686. <tr class="list">
  1687. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  1688. <td class="itemcode"><a name="Create"></a><code>constructor <b>Create</b>(const aSize: <a href="glBitmap.TglBitmapSize.html">TglBitmapSize</a>; const aFormat: <a href="glBitmap.html#TglBitmapFormat">TglBitmapFormat</a>; const aFunc: <a href="glBitmap.html#TglBitmapFunction">TglBitmapFunction</a>; const aArgs: Pointer = nil); overload;</code></td>
  1689. </tr>
  1690. <tr><td colspan="2">
  1691. <p>
  1692. constructor - creates a texture with the given size and format and uses the given callback to create the data </p>
  1693. <h6 class="description_section">Parameters</h6>
  1694. <dl class="parameters">
  1695. <dt>aSize</dt>
  1696. <dd>size of the texture</dd>
  1697. <dt>aFormat</dt>
  1698. <dd>format of the given data</dd>
  1699. <dt>aFunc</dt>
  1700. <dd>callback to use for generating the data</dd>
  1701. <dt>aArgs</dt>
  1702. <dd>user defined parameters (use at will)</dd>
  1703. </dl>
  1704. </td></tr>
  1705. </table>
  1706. <table class="detail wide_list">
  1707. <tr class="list">
  1708. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  1709. <td class="itemcode"><a name="Create"></a><code>constructor <b>Create</b>(const aInstance: Cardinal; const aResource: String; const aResType: PChar = nil); overload;</code></td>
  1710. </tr>
  1711. <tr><td colspan="2">
  1712. <p>
  1713. constructor - creates a texture and loads it from a resource </p>
  1714. <h6 class="description_section">Parameters</h6>
  1715. <dl class="parameters">
  1716. <dt>aInstance</dt>
  1717. <dd>resource handle</dd>
  1718. <dt>aResource</dt>
  1719. <dd>resource indentifier</dd>
  1720. <dt>aResType</dt>
  1721. <dd>resource type (if known)</dd>
  1722. </dl>
  1723. </td></tr>
  1724. </table>
  1725. <table class="detail wide_list">
  1726. <tr class="list">
  1727. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  1728. <td class="itemcode"><a name="Create"></a><code>constructor <b>Create</b>(const aInstance: Cardinal; const aResourceID: Integer; const aResType: PChar); overload;</code></td>
  1729. </tr>
  1730. <tr><td colspan="2">
  1731. <p>
  1732. constructor - creates a texture and loads it from a resource </p>
  1733. <h6 class="description_section">Parameters</h6>
  1734. <dl class="parameters">
  1735. <dt>aInstance</dt>
  1736. <dd>resource handle</dd>
  1737. <dt>aResourceID</dt>
  1738. <dd>resource ID</dd>
  1739. <dt>aResType</dt>
  1740. <dd>resource type (if known)</dd>
  1741. </dl>
  1742. </td></tr>
  1743. </table>
  1744. <table class="detail wide_list">
  1745. <tr class="list">
  1746. <td class="visibility"><a href="legend.html"><img src="private.gif" alt="Private" title="Private"></a></td>
  1747. <td class="itemcode"><a name="LoadRAW"></a><code>function <b>LoadRAW</b>(const aStream: TStream): Boolean;</code></td>
  1748. </tr>
  1749. <tr><td colspan="2">
  1750. <p>
  1751. try to load a RAW image from a stream </p>
  1752. <h6 class="description_section">Parameters</h6>
  1753. <dl class="parameters">
  1754. <dt>aStream</dt>
  1755. <dd>stream to load RAW image from</dd>
  1756. </dl>
  1757. <h6 class="description_section">Returns</h6>
  1758. <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
  1759. </table>
  1760. <table class="detail wide_list">
  1761. <tr class="list">
  1762. <td class="visibility"><a href="legend.html"><img src="private.gif" alt="Private" title="Private"></a></td>
  1763. <td class="itemcode"><a name="SaveRAW"></a><code>procedure <b>SaveRAW</b>(const aStream: TStream);</code></td>
  1764. </tr>
  1765. <tr><td colspan="2">
  1766. <p>
  1767. save texture data as RAW image to stream </p>
  1768. <h6 class="description_section">Parameters</h6>
  1769. <dl class="parameters">
  1770. <dt>aStream</dt>
  1771. <dd>stream to save data to</dd>
  1772. </dl>
  1773. </td></tr>
  1774. </table>
  1775. <table class="detail wide_list">
  1776. <tr class="list">
  1777. <td class="visibility"><a href="legend.html"><img src="private.gif" alt="Private" title="Private"></a></td>
  1778. <td class="itemcode"><a name="LoadBMP"></a><code>function <b>LoadBMP</b>(const aStream: TStream): Boolean;</code></td>
  1779. </tr>
  1780. <tr><td colspan="2">
  1781. <p>
  1782. try to load a BMP from a stream </p>
  1783. <h6 class="description_section">Parameters</h6>
  1784. <dl class="parameters">
  1785. <dt>aStream</dt>
  1786. <dd>stream to load BMP from</dd>
  1787. </dl>
  1788. <h6 class="description_section">Returns</h6>
  1789. <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
  1790. </table>
  1791. <table class="detail wide_list">
  1792. <tr class="list">
  1793. <td class="visibility"><a href="legend.html"><img src="private.gif" alt="Private" title="Private"></a></td>
  1794. <td class="itemcode"><a name="SaveBMP"></a><code>procedure <b>SaveBMP</b>(const aStream: TStream);</code></td>
  1795. </tr>
  1796. <tr><td colspan="2">
  1797. <p>
  1798. save texture data as BMP to stream </p>
  1799. <h6 class="description_section">Parameters</h6>
  1800. <dl class="parameters">
  1801. <dt>aStream</dt>
  1802. <dd>stream to save data to</dd>
  1803. </dl>
  1804. </td></tr>
  1805. </table>
  1806. <table class="detail wide_list">
  1807. <tr class="list">
  1808. <td class="visibility"><a href="legend.html"><img src="private.gif" alt="Private" title="Private"></a></td>
  1809. <td class="itemcode"><a name="LoadTGA"></a><code>function <b>LoadTGA</b>(const aStream: TStream): Boolean;</code></td>
  1810. </tr>
  1811. <tr><td colspan="2">
  1812. <p>
  1813. try to load a TGA from a stream </p>
  1814. <h6 class="description_section">Parameters</h6>
  1815. <dl class="parameters">
  1816. <dt>aStream</dt>
  1817. <dd>stream to load TGA from</dd>
  1818. </dl>
  1819. <h6 class="description_section">Returns</h6>
  1820. <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
  1821. </table>
  1822. <table class="detail wide_list">
  1823. <tr class="list">
  1824. <td class="visibility"><a href="legend.html"><img src="private.gif" alt="Private" title="Private"></a></td>
  1825. <td class="itemcode"><a name="SaveTGA"></a><code>procedure <b>SaveTGA</b>(const aStream: TStream);</code></td>
  1826. </tr>
  1827. <tr><td colspan="2">
  1828. <p>
  1829. save texture data as TGA to stream </p>
  1830. <h6 class="description_section">Parameters</h6>
  1831. <dl class="parameters">
  1832. <dt>aStream</dt>
  1833. <dd>stream to save data to</dd>
  1834. </dl>
  1835. </td></tr>
  1836. </table>
  1837. <table class="detail wide_list">
  1838. <tr class="list">
  1839. <td class="visibility"><a href="legend.html"><img src="private.gif" alt="Private" title="Private"></a></td>
  1840. <td class="itemcode"><a name="LoadDDS"></a><code>function <b>LoadDDS</b>(const aStream: TStream): Boolean;</code></td>
  1841. </tr>
  1842. <tr><td colspan="2">
  1843. <p>
  1844. try to load a DDS from a stream </p>
  1845. <h6 class="description_section">Parameters</h6>
  1846. <dl class="parameters">
  1847. <dt>aStream</dt>
  1848. <dd>stream to load DDS from</dd>
  1849. </dl>
  1850. <h6 class="description_section">Returns</h6>
  1851. <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
  1852. </table>
  1853. <table class="detail wide_list">
  1854. <tr class="list">
  1855. <td class="visibility"><a href="legend.html"><img src="private.gif" alt="Private" title="Private"></a></td>
  1856. <td class="itemcode"><a name="SaveDDS"></a><code>procedure <b>SaveDDS</b>(const aStream: TStream);</code></td>
  1857. </tr>
  1858. <tr><td colspan="2">
  1859. <p>
  1860. save texture data as DDS to stream </p>
  1861. <h6 class="description_section">Parameters</h6>
  1862. <dl class="parameters">
  1863. <dt>aStream</dt>
  1864. <dd>stream to save data to</dd>
  1865. </dl>
  1866. </td></tr>
  1867. </table>
  1868. <h3 class="detail">Properties</h3>
  1869. <table class="detail wide_list">
  1870. <tr class="list">
  1871. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  1872. <td class="itemcode"><a name="Width"></a><code>property <b>Width</b>: Integer read <a href="glBitmap.TglBitmap.html#GetWidth">GetWidth</a>;</code></td>
  1873. </tr>
  1874. <tr><td colspan="2">
  1875. <p>
  1876. the actual width of the texture</p>
  1877. </td></tr>
  1878. </table>
  1879. <table class="detail wide_list">
  1880. <tr class="list">
  1881. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  1882. <td class="itemcode"><a name="Height"></a><code>property <b>Height</b>: Integer read <a href="glBitmap.TglBitmap.html#GetHeight">GetHeight</a>;</code></td>
  1883. </tr>
  1884. <tr><td colspan="2">
  1885. <p>
  1886. the actual height of the texture</p>
  1887. </td></tr>
  1888. </table>
  1889. <table class="detail wide_list">
  1890. <tr class="list">
  1891. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  1892. <td class="itemcode"><a name="FileWidth"></a><code>property <b>FileWidth</b>: Integer read <a href="glBitmap.TglBitmap.html#GetFileWidth">GetFileWidth</a>;</code></td>
  1893. </tr>
  1894. <tr><td colspan="2">
  1895. <p>
  1896. the width of the texture or 1 if the width is zero</p>
  1897. </td></tr>
  1898. </table>
  1899. <table class="detail wide_list">
  1900. <tr class="list">
  1901. <td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
  1902. <td class="itemcode"><a name="FileHeight"></a><code>property <b>FileHeight</b>: Integer read <a href="glBitmap.TglBitmap.html#GetFileHeight">GetFileHeight</a>;</code></td>
  1903. </tr>
  1904. <tr><td colspan="2">
  1905. <p>
  1906. the height of the texture or 1 if the height is zero</p>
  1907. </td></tr>
  1908. </table>
  1909. <table class="detail wide_list">
  1910. <tr class="list">
  1911. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  1912. <td class="itemcode"><a name="ID"></a><code>property <b>ID</b>: Cardinal read <a href="glBitmap.TglBitmap.html#fID">fID</a> write <a href="glBitmap.TglBitmap.html#SetID">SetID</a>;</code></td>
  1913. </tr>
  1914. <tr><td colspan="2">
  1915. <p>
  1916. name of the OpenGL texture object</p>
  1917. </td></tr>
  1918. </table>
  1919. <table class="detail wide_list">
  1920. <tr class="list">
  1921. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  1922. <td class="itemcode"><a name="Target"></a><code>property <b>Target</b>: Cardinal read <a href="glBitmap.TglBitmap.html#fTarget">fTarget</a> write <a href="glBitmap.TglBitmap.html#SetTarget">SetTarget</a>;</code></td>
  1923. </tr>
  1924. <tr><td colspan="2">
  1925. <p>
  1926. texture target (e.g. GL_TEXTURE_2D)</p>
  1927. </td></tr>
  1928. </table>
  1929. <table class="detail wide_list">
  1930. <tr class="list">
  1931. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  1932. <td class="itemcode"><a name="Format"></a><code>property <b>Format</b>: <a href="glBitmap.html#TglBitmapFormat">TglBitmapFormat</a> read <a href="glBitmap.TglBitmap.html#fFormat">fFormat</a> write <a href="glBitmap.TglBitmap.html#SetFormat">SetFormat</a>;</code></td>
  1933. </tr>
  1934. <tr><td colspan="2">
  1935. <p>
  1936. format the texture data is stored in</p>
  1937. </td></tr>
  1938. </table>
  1939. <table class="detail wide_list">
  1940. <tr class="list">
  1941. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  1942. <td class="itemcode"><a name="MipMap"></a><code>property <b>MipMap</b>: <a href="glBitmap.html#TglBitmapMipMap">TglBitmapMipMap</a> read <a href="glBitmap.TglBitmap.html#fMipMap">fMipMap</a> write <a href="glBitmap.TglBitmap.html#SetMipMap">SetMipMap</a>;</code></td>
  1943. </tr>
  1944. <tr><td colspan="2">
  1945. <p>
  1946. mipmap type</p>
  1947. </td></tr>
  1948. </table>
  1949. <table class="detail wide_list">
  1950. <tr class="list">
  1951. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  1952. <td class="itemcode"><a name="Anisotropic"></a><code>property <b>Anisotropic</b>: Integer read <a href="glBitmap.TglBitmap.html#fAnisotropic">fAnisotropic</a> write <a href="glBitmap.TglBitmap.html#SetAnisotropic">SetAnisotropic</a>;</code></td>
  1953. </tr>
  1954. <tr><td colspan="2">
  1955. <p>
  1956. anisotropic level</p>
  1957. </td></tr>
  1958. </table>
  1959. <table class="detail wide_list">
  1960. <tr class="list">
  1961. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  1962. <td class="itemcode"><a name="FormatDesc"></a><code>property <b>FormatDesc</b>: <a href="glBitmap.TglBitmapFormatDescriptor.html">TglBitmapFormatDescriptor</a> read <a href="glBitmap.TglBitmap.html#GetFormatDesc">GetFormatDesc</a>;</code></td>
  1963. </tr>
  1964. <tr><td colspan="2">
  1965. <p>
  1966. format descriptor that describes the format of the stored data</p>
  1967. </td></tr>
  1968. </table>
  1969. <table class="detail wide_list">
  1970. <tr class="list">
  1971. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  1972. <td class="itemcode"><a name="Filename"></a><code>property <b>Filename</b>: String read <a href="glBitmap.TglBitmap.html#fFilename">fFilename</a>;</code></td>
  1973. </tr>
  1974. <tr><td colspan="2">
  1975. <p>
  1976. filename the texture was load from</p>
  1977. </td></tr>
  1978. </table>
  1979. <table class="detail wide_list">
  1980. <tr class="list">
  1981. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  1982. <td class="itemcode"><a name="CustomName"></a><code>property <b>CustomName</b>: String read <a href="glBitmap.TglBitmap.html#fCustomName">fCustomName</a> write <a href="glBitmap.TglBitmap.html#SetCustomName">SetCustomName</a>;</code></td>
  1983. </tr>
  1984. <tr><td colspan="2">
  1985. <p>
  1986. user defined name (use at will)</p>
  1987. </td></tr>
  1988. </table>
  1989. <table class="detail wide_list">
  1990. <tr class="list">
  1991. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  1992. <td class="itemcode"><a name="CustomNameW"></a><code>property <b>CustomNameW</b>: WideString read <a href="glBitmap.TglBitmap.html#fCustomNameW">fCustomNameW</a> write <a href="glBitmap.TglBitmap.html#SetCustomNameW">SetCustomNameW</a>;</code></td>
  1993. </tr>
  1994. <tr><td colspan="2">
  1995. <p>
  1996. user defined name (as WideString; use at will)</p>
  1997. </td></tr>
  1998. </table>
  1999. <table class="detail wide_list">
  2000. <tr class="list">
  2001. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  2002. <td class="itemcode"><a name="CustomData"></a><code>property <b>CustomData</b>: Pointer read <a href="glBitmap.TglBitmap.html#fCustomData">fCustomData</a> write <a href="glBitmap.TglBitmap.html#SetCustomData">SetCustomData</a>;</code></td>
  2003. </tr>
  2004. <tr><td colspan="2">
  2005. <p>
  2006. user defined data (use at will)</p>
  2007. </td></tr>
  2008. </table>
  2009. <table class="detail wide_list">
  2010. <tr class="list">
  2011. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  2012. <td class="itemcode"><a name="DeleteTextureOnFree"></a><code>property <b>DeleteTextureOnFree</b>: Boolean read <a href="glBitmap.TglBitmap.html#fDeleteTextureOnFree">fDeleteTextureOnFree</a> write <a href="glBitmap.TglBitmap.html#SetDeleteTextureOnFree">SetDeleteTextureOnFree</a>;</code></td>
  2013. </tr>
  2014. <tr><td colspan="2">
  2015. <p>
  2016. delete texture object when this object is destroyed</p>
  2017. </td></tr>
  2018. </table>
  2019. <table class="detail wide_list">
  2020. <tr class="list">
  2021. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  2022. <td class="itemcode"><a name="FreeDataOnDestroy"></a><code>property <b>FreeDataOnDestroy</b>: Boolean read <a href="glBitmap.TglBitmap.html#fFreeDataOnDestroy">fFreeDataOnDestroy</a> write <a href="glBitmap.TglBitmap.html#SetFreeDataOnDestroy">SetFreeDataOnDestroy</a>;</code></td>
  2023. </tr>
  2024. <tr><td colspan="2">
  2025. <p>
  2026. free stored data when this object is destroyed</p>
  2027. </td></tr>
  2028. </table>
  2029. <table class="detail wide_list">
  2030. <tr class="list">
  2031. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  2032. <td class="itemcode"><a name="FreeDataAfterGenTexture"></a><code>property <b>FreeDataAfterGenTexture</b>: Boolean read <a href="glBitmap.TglBitmap.html#fFreeDataAfterGenTexture">fFreeDataAfterGenTexture</a> write <a href="glBitmap.TglBitmap.html#SetFreeDataAfterGenTexture">SetFreeDataAfterGenTexture</a>;</code></td>
  2033. </tr>
  2034. <tr><td colspan="2">
  2035. <p>
  2036. free stored data after it is uplaoded to video card</p>
  2037. </td></tr>
  2038. </table>
  2039. <table class="detail wide_list">
  2040. <tr class="list">
  2041. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  2042. <td class="itemcode"><a name="Dimension"></a><code>property <b>Dimension</b>: <a href="glBitmap.TglBitmapSize.html">TglBitmapSize</a> read <a href="glBitmap.TglBitmap.html#fDimension">fDimension</a>;</code></td>
  2043. </tr>
  2044. <tr><td colspan="2">
  2045. <p>
  2046. size of the texture</p>
  2047. </td></tr>
  2048. </table>
  2049. <table class="detail wide_list">
  2050. <tr class="list">
  2051. <td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
  2052. <td class="itemcode"><a name="Data"></a><code>property <b>Data</b>: PByte read <a href="glBitmap.TglBitmap.html#fData">fData</a>;</code></td>
  2053. </tr>
  2054. <tr><td colspan="2">
  2055. <p>
  2056. texture data (or <code>Nil</code> if unset)</p>
  2057. </td></tr>
  2058. </table>
  2059. <hr noshade size="1"><span class="appinfo"><em>Generated by <a href="http://pasdoc.sourceforge.net/">PasDoc 0.13.0</a> on 2014-12-21 15:05:48</em>
  2060. </span>
  2061. </td></tr></table></body></html>