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.

611 lines
28 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</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. <h1 class="unit">Unit glBitmap</h1>
  13. <table class="sections wide_list">
  14. <tr>
  15. <td><a class="section" href="#PasDoc-Description">Description</a></td><td>Uses</td><td><a class="section" href="#PasDoc-Classes">Classes, Interfaces, Objects and Records</a></td><td><a class="section" href="#PasDoc-FuncsProcs">Functions and Procedures</a></td><td><a class="section" href="#PasDoc-Types">Types</a></td><td><a class="section" href="#PasDoc-Constants">Constants</a></td><td>Variables</td></tr></table>
  16. <a name="PasDoc-Description"></a><h2 class="description">Description</h2>
  17. <p>
  18. glBitmap by Steffen Xonna aka Lossy eX (2003-2008) <a href="http://www.opengl24.de/index.php?cat=header&amp;file=glbitmap">http://www.opengl24.de/index.php?cat=header&amp;file=glbitmap</a>
  19. <p>modified by Delphi OpenGL Community (<a href="http://delphigl.com/">http://delphigl.com/</a>) (2013)
  20. <p>The contents of this file are used with permission, subject to the Mozilla Public License Version 1.1 (the &quot;License&quot;); you may not use this file except in compliance with the License. You may obtain a copy of the License at <a href="http://www.mozilla.org/MPL/MPL-1.1.html">http://www.mozilla.org/MPL/MPL-1.1.html</a>
  21. <p>The glBitmap is a Delphi/FPC unit that contains several wrapper classes to manage OpenGL texture objects. Below you can find a list of the main functionality of this classes: - load texture data from file (e.g. BMP, TGA, DDS, PNG, JPEG, ...) - load texture data from several other image objects (e.g. TBitmap, TLazIntfImage, SDL Surface) - save texture data to file (e.g. BMP, TGA, DDS, PNG, JPEG, ...) - save texture data to several other image objects (e.g. TBitmap, TLazIntfImage, SDL Surface) - support for many texture formats (e.g. RGB8, BGR8, RGBA8, BGRA8, ...) - manage texture properties (e.g. Filter, Clamp, Mipmap, ...) - upload texture data to video card - download texture data from video card - manipulate texture data (e.g. add alpha, remove alpha, convert to other format, switch RGB, ...)</p>
  22. <a name="PasDoc-Uses"></a><h2 class="overview">Overview</h2>
  23. <a name="PasDoc-Classes"></a><h3 class="cio">Classes, Interfaces, Objects and Records</h3>
  24. <table class="classestable wide_list">
  25. <tr class="listheader">
  26. <th class="itemname">Name</th>
  27. <th class="itemdesc">Description</th>
  28. </tr>
  29. <tr class="list">
  30. <td class="itemname">Class&nbsp;<a class="bold" href="glBitmap.EglBitmap.html"><code>EglBitmap</code></a></td>
  31. <td class="itemdesc">&nbsp;</td>
  32. </tr>
  33. <tr class="list2">
  34. <td class="itemname">Class&nbsp;<a class="bold" href="glBitmap.EglBitmapNotSupported.html"><code>EglBitmapNotSupported</code></a></td>
  35. <td class="itemdesc">&nbsp;</td>
  36. </tr>
  37. <tr class="list">
  38. <td class="itemname">Class&nbsp;<a class="bold" href="glBitmap.EglBitmapSizeToLarge.html"><code>EglBitmapSizeToLarge</code></a></td>
  39. <td class="itemdesc">&nbsp;</td>
  40. </tr>
  41. <tr class="list2">
  42. <td class="itemname">Class&nbsp;<a class="bold" href="glBitmap.EglBitmapNonPowerOfTwo.html"><code>EglBitmapNonPowerOfTwo</code></a></td>
  43. <td class="itemdesc">&nbsp;</td>
  44. </tr>
  45. <tr class="list">
  46. <td class="itemname">Class&nbsp;<a class="bold" href="glBitmap.EglBitmapUnsupportedFormat.html"><code>EglBitmapUnsupportedFormat</code></a></td>
  47. <td class="itemdesc">&nbsp;</td>
  48. </tr>
  49. <tr class="list2">
  50. <td class="itemname">packed record&nbsp;<a class="bold" href="glBitmap.TglBitmapRec4ui.html"><code>TglBitmapRec4ui</code></a></td>
  51. <td class="itemdesc">&nbsp;</td>
  52. </tr>
  53. <tr class="list">
  54. <td class="itemname">packed record&nbsp;<a class="bold" href="glBitmap.TglBitmapRec4ub.html"><code>TglBitmapRec4ub</code></a></td>
  55. <td class="itemdesc">&nbsp;</td>
  56. </tr>
  57. <tr class="list2">
  58. <td class="itemname">packed record&nbsp;<a class="bold" href="glBitmap.TglBitmapRec4ul.html"><code>TglBitmapRec4ul</code></a></td>
  59. <td class="itemdesc">&nbsp;</td>
  60. </tr>
  61. <tr class="list">
  62. <td class="itemname">packed record&nbsp;<a class="bold" href="glBitmap.TglBitmapPixelData.html"><code>TglBitmapPixelData</code></a></td>
  63. <td class="itemdesc">&nbsp;</td>
  64. </tr>
  65. <tr class="list2">
  66. <td class="itemname">packed record&nbsp;<a class="bold" href="glBitmap.TglBitmapSize.html"><code>TglBitmapSize</code></a></td>
  67. <td class="itemdesc">&nbsp;</td>
  68. </tr>
  69. <tr class="list">
  70. <td class="itemname">Class&nbsp;<a class="bold" href="glBitmap.TglBitmapFormatDescriptor.html"><code>TglBitmapFormatDescriptor</code></a></td>
  71. <td class="itemdesc">&nbsp;</td>
  72. </tr>
  73. <tr class="list2">
  74. <td class="itemname">record&nbsp;<a class="bold" href="glBitmap.TglBitmapFunctionRec.html"><code>TglBitmapFunctionRec</code></a></td>
  75. <td class="itemdesc">&nbsp;</td>
  76. </tr>
  77. <tr class="list">
  78. <td class="itemname">Class&nbsp;<a class="bold" href="glBitmap.TglBitmapData.html"><code>TglBitmapData</code></a></td>
  79. <td class="itemdesc">&nbsp;</td>
  80. </tr>
  81. <tr class="list2">
  82. <td class="itemname">Class&nbsp;<a class="bold" href="glBitmap.TglBitmap.html"><code>TglBitmap</code></a></td>
  83. <td class="itemdesc">&nbsp;</td>
  84. </tr>
  85. <tr class="list">
  86. <td class="itemname">Class&nbsp;<a class="bold" href="glBitmap.TglBitmap1D.html"><code>TglBitmap1D</code></a></td>
  87. <td class="itemdesc">&nbsp;</td>
  88. </tr>
  89. <tr class="list2">
  90. <td class="itemname">Class&nbsp;<a class="bold" href="glBitmap.TglBitmap2D.html"><code>TglBitmap2D</code></a></td>
  91. <td class="itemdesc">&nbsp;</td>
  92. </tr>
  93. <tr class="list">
  94. <td class="itemname">Class&nbsp;<a class="bold" href="glBitmap.TglBitmapCubeMap.html"><code>TglBitmapCubeMap</code></a></td>
  95. <td class="itemdesc">&nbsp;</td>
  96. </tr>
  97. <tr class="list2">
  98. <td class="itemname">Class&nbsp;<a class="bold" href="glBitmap.TglBitmapNormalMap.html"><code>TglBitmapNormalMap</code></a></td>
  99. <td class="itemdesc">&nbsp;</td>
  100. </tr>
  101. </table>
  102. <a name="PasDoc-FuncsProcs"></a><h3 class="summary">Functions and Procedures</h3>
  103. <table class="summary wide_list">
  104. <tr class="list">
  105. <td class="itemcode"><code>procedure <b><a href="glBitmap.html#glBitmapSetDefaultDeleteTextureOnFree">glBitmapSetDefaultDeleteTextureOnFree</a></b>(const aDeleteTextureOnFree: Boolean);</code></td>
  106. </tr>
  107. <tr class="list2">
  108. <td class="itemcode"><code>procedure <b><a href="glBitmap.html#glBitmapSetDefaultFreeDataAfterGenTexture">glBitmapSetDefaultFreeDataAfterGenTexture</a></b>(const aFreeData: Boolean);</code></td>
  109. </tr>
  110. <tr class="list">
  111. <td class="itemcode"><code>procedure <b><a href="glBitmap.html#glBitmapSetDefaultMipmap">glBitmapSetDefaultMipmap</a></b>(const aValue: <a href="glBitmap.html#TglBitmapMipMap">TglBitmapMipMap</a>);</code></td>
  112. </tr>
  113. <tr class="list2">
  114. <td class="itemcode"><code>procedure <b><a href="glBitmap.html#glBitmapSetDefaultFormat">glBitmapSetDefaultFormat</a></b>(const aFormat: <a href="glBitmap.html#TglBitmapFormat">TglBitmapFormat</a>);</code></td>
  115. </tr>
  116. <tr class="list">
  117. <td class="itemcode"><code>procedure <b><a href="glBitmap.html#glBitmapSetDefaultFilter">glBitmapSetDefaultFilter</a></b>(const aMin, aMag: Integer);</code></td>
  118. </tr>
  119. <tr class="list2">
  120. <td class="itemcode"><code>procedure <b><a href="glBitmap.html#glBitmapSetDefaultWrap">glBitmapSetDefaultWrap</a></b>( const S: Cardinal = GL_CLAMP_TO_EDGE; const T: Cardinal = GL_CLAMP_TO_EDGE; const R: Cardinal = GL_CLAMP_TO_EDGE);</code></td>
  121. </tr>
  122. <tr class="list">
  123. <td class="itemcode"><code>procedure <b><a href="glBitmap.html#glBitmapSetDefaultSwizzle">glBitmapSetDefaultSwizzle</a></b>(const r: GLenum = GL_RED; g: GLenum = GL_GREEN; b: GLenum = GL_BLUE; a: GLenum = GL_ALPHA);</code></td>
  124. </tr>
  125. <tr class="list2">
  126. <td class="itemcode"><code>function <b><a href="glBitmap.html#glBitmapGetDefaultDeleteTextureOnFree">glBitmapGetDefaultDeleteTextureOnFree</a></b>: Boolean;</code></td>
  127. </tr>
  128. <tr class="list">
  129. <td class="itemcode"><code>function <b><a href="glBitmap.html#glBitmapGetDefaultFreeDataAfterGenTexture">glBitmapGetDefaultFreeDataAfterGenTexture</a></b>: Boolean;</code></td>
  130. </tr>
  131. <tr class="list2">
  132. <td class="itemcode"><code>function <b><a href="glBitmap.html#glBitmapGetDefaultMipmap">glBitmapGetDefaultMipmap</a></b>: <a href="glBitmap.html#TglBitmapMipMap">TglBitmapMipMap</a>;</code></td>
  133. </tr>
  134. <tr class="list">
  135. <td class="itemcode"><code>function <b><a href="glBitmap.html#glBitmapGetDefaultFormat">glBitmapGetDefaultFormat</a></b>: <a href="glBitmap.html#TglBitmapFormat">TglBitmapFormat</a>;</code></td>
  136. </tr>
  137. <tr class="list2">
  138. <td class="itemcode"><code>procedure <b><a href="glBitmap.html#glBitmapGetDefaultFilter">glBitmapGetDefaultFilter</a></b>(var aMin, aMag: Cardinal);</code></td>
  139. </tr>
  140. <tr class="list">
  141. <td class="itemcode"><code>procedure <b><a href="glBitmap.html#glBitmapGetDefaultTextureWrap">glBitmapGetDefaultTextureWrap</a></b>(var S, T, R: Cardinal);</code></td>
  142. </tr>
  143. <tr class="list2">
  144. <td class="itemcode"><code>procedure <b><a href="glBitmap.html#glBitmapGetDefaultSwizzle">glBitmapGetDefaultSwizzle</a></b>(var r, g, b, a: GLenum);</code></td>
  145. </tr>
  146. <tr class="list">
  147. <td class="itemcode"><code>function <b><a href="glBitmap.html#glBitmapSize">glBitmapSize</a></b>(X: Integer = -1; Y: Integer = -1): <a href="glBitmap.TglBitmapSize.html">TglBitmapSize</a>;</code></td>
  148. </tr>
  149. <tr class="list2">
  150. <td class="itemcode"><code>function <b><a href="glBitmap.html#glBitmapPosition">glBitmapPosition</a></b>(X: Integer = -1; Y: Integer = -1): <a href="glBitmap.html#TglBitmapPixelPosition">TglBitmapPixelPosition</a>;</code></td>
  151. </tr>
  152. <tr class="list">
  153. <td class="itemcode"><code>function <b><a href="glBitmap.html#glBitmapRec4ub">glBitmapRec4ub</a></b>(const r, g, b, a: Byte): <a href="glBitmap.TglBitmapRec4ub.html">TglBitmapRec4ub</a>;</code></td>
  154. </tr>
  155. <tr class="list2">
  156. <td class="itemcode"><code>function <b><a href="glBitmap.html#glBitmapRec4ui">glBitmapRec4ui</a></b>(const r, g, b, a: Cardinal): <a href="glBitmap.TglBitmapRec4ui.html">TglBitmapRec4ui</a>;</code></td>
  157. </tr>
  158. <tr class="list">
  159. <td class="itemcode"><code>function <b><a href="glBitmap.html#glBitmapRec4ul">glBitmapRec4ul</a></b>(const r, g, b, a: QWord): <a href="glBitmap.TglBitmapRec4ul.html">TglBitmapRec4ul</a>;</code></td>
  160. </tr>
  161. <tr class="list2">
  162. <td class="itemcode"><code>function <b><a href="glBitmap.html#glBitmapRec4ubCompare">glBitmapRec4ubCompare</a></b>(const r1, r2: <a href="glBitmap.TglBitmapRec4ub.html">TglBitmapRec4ub</a>): Boolean;</code></td>
  163. </tr>
  164. <tr class="list">
  165. <td class="itemcode"><code>function <b><a href="glBitmap.html#glBitmapRec4uiCompare">glBitmapRec4uiCompare</a></b>(const r1, r2: <a href="glBitmap.TglBitmapRec4ui.html">TglBitmapRec4ui</a>): Boolean;</code></td>
  166. </tr>
  167. <tr class="list2">
  168. <td class="itemcode"><code>function <b><a href="glBitmap.html#glBitmapCreateTestData">glBitmapCreateTestData</a></b>(const aFormat: <a href="glBitmap.html#TglBitmapFormat">TglBitmapFormat</a>): <a href="glBitmap.TglBitmapData.html">TglBitmapData</a>;</code></td>
  169. </tr>
  170. </table>
  171. <a name="PasDoc-Types"></a><h3 class="summary">Types</h3>
  172. <table class="summary wide_list">
  173. <tr class="list">
  174. <td class="itemcode"><code><b><a href="glBitmap.html#TglBitmapFormat">TglBitmapFormat</a></b> = (...);</code></td>
  175. </tr>
  176. <tr class="list2">
  177. <td class="itemcode"><code><b><a href="glBitmap.html#TglBitmapFileType">TglBitmapFileType</a></b> = (...);</code></td>
  178. </tr>
  179. <tr class="list">
  180. <td class="itemcode"><code><b><a href="glBitmap.html#TglBitmapFileTypes">TglBitmapFileTypes</a></b> = set of <a href="glBitmap.html#TglBitmapFileType">TglBitmapFileType</a>;</code></td>
  181. </tr>
  182. <tr class="list2">
  183. <td class="itemcode"><code><b><a href="glBitmap.html#TglBitmapMipMap">TglBitmapMipMap</a></b> = (...);</code></td>
  184. </tr>
  185. <tr class="list">
  186. <td class="itemcode"><code><b><a href="glBitmap.html#TglBitmapNormalMapFunc">TglBitmapNormalMapFunc</a></b> = (...);</code></td>
  187. </tr>
  188. <tr class="list2">
  189. <td class="itemcode"><code><b><a href="glBitmap.html#PglBitmapPixelData">PglBitmapPixelData</a></b> = &circ;<a href="glBitmap.TglBitmapPixelData.html">TglBitmapPixelData</a>;</code></td>
  190. </tr>
  191. <tr class="list">
  192. <td class="itemcode"><code><b><a href="glBitmap.html#TglBitmapSizeFields">TglBitmapSizeFields</a></b> = set of (ffX, ffY);</code></td>
  193. </tr>
  194. <tr class="list2">
  195. <td class="itemcode"><code><b><a href="glBitmap.html#TglBitmapPixelPosition">TglBitmapPixelPosition</a></b> = <a href="glBitmap.TglBitmapSize.html">TglBitmapSize</a>;</code></td>
  196. </tr>
  197. <tr class="list">
  198. <td class="itemcode"><code><b><a href="glBitmap.html#TglBitmapFunction">TglBitmapFunction</a></b> = procedure(var FuncRec: <a href="glBitmap.TglBitmapFunctionRec.html">TglBitmapFunctionRec</a>);</code></td>
  199. </tr>
  200. </table>
  201. <a name="PasDoc-Constants"></a><h3 class="summary">Constants</h3>
  202. <table class="summary wide_list">
  203. <tr class="list">
  204. <td class="itemcode"><code><b><a href="glBitmap.html#NULL_SIZE">NULL_SIZE</a></b>: <a href="glBitmap.TglBitmapSize.html">TglBitmapSize</a> = (Fields: []; X: 0; Y: 0);</code></td>
  205. </tr>
  206. </table>
  207. <h2 class="description">Description</h2>
  208. <h3 class="detail">Functions and Procedures</h3>
  209. <table class="detail wide_list">
  210. <tr class="list">
  211. <td class="itemcode"><a name="glBitmapSetDefaultDeleteTextureOnFree"></a><code>procedure <b>glBitmapSetDefaultDeleteTextureOnFree</b>(const aDeleteTextureOnFree: Boolean);</code></td>
  212. </tr>
  213. <tr><td colspan="1">
  214. &nbsp;</td></tr>
  215. </table>
  216. <table class="detail wide_list">
  217. <tr class="list">
  218. <td class="itemcode"><a name="glBitmapSetDefaultFreeDataAfterGenTexture"></a><code>procedure <b>glBitmapSetDefaultFreeDataAfterGenTexture</b>(const aFreeData: Boolean);</code></td>
  219. </tr>
  220. <tr><td colspan="1">
  221. &nbsp;</td></tr>
  222. </table>
  223. <table class="detail wide_list">
  224. <tr class="list">
  225. <td class="itemcode"><a name="glBitmapSetDefaultMipmap"></a><code>procedure <b>glBitmapSetDefaultMipmap</b>(const aValue: <a href="glBitmap.html#TglBitmapMipMap">TglBitmapMipMap</a>);</code></td>
  226. </tr>
  227. <tr><td colspan="1">
  228. &nbsp;</td></tr>
  229. </table>
  230. <table class="detail wide_list">
  231. <tr class="list">
  232. <td class="itemcode"><a name="glBitmapSetDefaultFormat"></a><code>procedure <b>glBitmapSetDefaultFormat</b>(const aFormat: <a href="glBitmap.html#TglBitmapFormat">TglBitmapFormat</a>);</code></td>
  233. </tr>
  234. <tr><td colspan="1">
  235. &nbsp;</td></tr>
  236. </table>
  237. <table class="detail wide_list">
  238. <tr class="list">
  239. <td class="itemcode"><a name="glBitmapSetDefaultFilter"></a><code>procedure <b>glBitmapSetDefaultFilter</b>(const aMin, aMag: Integer);</code></td>
  240. </tr>
  241. <tr><td colspan="1">
  242. &nbsp;</td></tr>
  243. </table>
  244. <table class="detail wide_list">
  245. <tr class="list">
  246. <td class="itemcode"><a name="glBitmapSetDefaultWrap"></a><code>procedure <b>glBitmapSetDefaultWrap</b>( const S: Cardinal = GL_CLAMP_TO_EDGE; const T: Cardinal = GL_CLAMP_TO_EDGE; const R: Cardinal = GL_CLAMP_TO_EDGE);</code></td>
  247. </tr>
  248. <tr><td colspan="1">
  249. &nbsp;</td></tr>
  250. </table>
  251. <table class="detail wide_list">
  252. <tr class="list">
  253. <td class="itemcode"><a name="glBitmapSetDefaultSwizzle"></a><code>procedure <b>glBitmapSetDefaultSwizzle</b>(const r: GLenum = GL_RED; g: GLenum = GL_GREEN; b: GLenum = GL_BLUE; a: GLenum = GL_ALPHA);</code></td>
  254. </tr>
  255. <tr><td colspan="1">
  256. &nbsp;</td></tr>
  257. </table>
  258. <table class="detail wide_list">
  259. <tr class="list">
  260. <td class="itemcode"><a name="glBitmapGetDefaultDeleteTextureOnFree"></a><code>function <b>glBitmapGetDefaultDeleteTextureOnFree</b>: Boolean;</code></td>
  261. </tr>
  262. <tr><td colspan="1">
  263. &nbsp;</td></tr>
  264. </table>
  265. <table class="detail wide_list">
  266. <tr class="list">
  267. <td class="itemcode"><a name="glBitmapGetDefaultFreeDataAfterGenTexture"></a><code>function <b>glBitmapGetDefaultFreeDataAfterGenTexture</b>: Boolean;</code></td>
  268. </tr>
  269. <tr><td colspan="1">
  270. &nbsp;</td></tr>
  271. </table>
  272. <table class="detail wide_list">
  273. <tr class="list">
  274. <td class="itemcode"><a name="glBitmapGetDefaultMipmap"></a><code>function <b>glBitmapGetDefaultMipmap</b>: <a href="glBitmap.html#TglBitmapMipMap">TglBitmapMipMap</a>;</code></td>
  275. </tr>
  276. <tr><td colspan="1">
  277. &nbsp;</td></tr>
  278. </table>
  279. <table class="detail wide_list">
  280. <tr class="list">
  281. <td class="itemcode"><a name="glBitmapGetDefaultFormat"></a><code>function <b>glBitmapGetDefaultFormat</b>: <a href="glBitmap.html#TglBitmapFormat">TglBitmapFormat</a>;</code></td>
  282. </tr>
  283. <tr><td colspan="1">
  284. &nbsp;</td></tr>
  285. </table>
  286. <table class="detail wide_list">
  287. <tr class="list">
  288. <td class="itemcode"><a name="glBitmapGetDefaultFilter"></a><code>procedure <b>glBitmapGetDefaultFilter</b>(var aMin, aMag: Cardinal);</code></td>
  289. </tr>
  290. <tr><td colspan="1">
  291. &nbsp;</td></tr>
  292. </table>
  293. <table class="detail wide_list">
  294. <tr class="list">
  295. <td class="itemcode"><a name="glBitmapGetDefaultTextureWrap"></a><code>procedure <b>glBitmapGetDefaultTextureWrap</b>(var S, T, R: Cardinal);</code></td>
  296. </tr>
  297. <tr><td colspan="1">
  298. &nbsp;</td></tr>
  299. </table>
  300. <table class="detail wide_list">
  301. <tr class="list">
  302. <td class="itemcode"><a name="glBitmapGetDefaultSwizzle"></a><code>procedure <b>glBitmapGetDefaultSwizzle</b>(var r, g, b, a: GLenum);</code></td>
  303. </tr>
  304. <tr><td colspan="1">
  305. &nbsp;</td></tr>
  306. </table>
  307. <table class="detail wide_list">
  308. <tr class="list">
  309. <td class="itemcode"><a name="glBitmapSize"></a><code>function <b>glBitmapSize</b>(X: Integer = -1; Y: Integer = -1): <a href="glBitmap.TglBitmapSize.html">TglBitmapSize</a>;</code></td>
  310. </tr>
  311. <tr><td colspan="1">
  312. &nbsp;</td></tr>
  313. </table>
  314. <table class="detail wide_list">
  315. <tr class="list">
  316. <td class="itemcode"><a name="glBitmapPosition"></a><code>function <b>glBitmapPosition</b>(X: Integer = -1; Y: Integer = -1): <a href="glBitmap.html#TglBitmapPixelPosition">TglBitmapPixelPosition</a>;</code></td>
  317. </tr>
  318. <tr><td colspan="1">
  319. &nbsp;</td></tr>
  320. </table>
  321. <table class="detail wide_list">
  322. <tr class="list">
  323. <td class="itemcode"><a name="glBitmapRec4ub"></a><code>function <b>glBitmapRec4ub</b>(const r, g, b, a: Byte): <a href="glBitmap.TglBitmapRec4ub.html">TglBitmapRec4ub</a>;</code></td>
  324. </tr>
  325. <tr><td colspan="1">
  326. &nbsp;</td></tr>
  327. </table>
  328. <table class="detail wide_list">
  329. <tr class="list">
  330. <td class="itemcode"><a name="glBitmapRec4ui"></a><code>function <b>glBitmapRec4ui</b>(const r, g, b, a: Cardinal): <a href="glBitmap.TglBitmapRec4ui.html">TglBitmapRec4ui</a>;</code></td>
  331. </tr>
  332. <tr><td colspan="1">
  333. &nbsp;</td></tr>
  334. </table>
  335. <table class="detail wide_list">
  336. <tr class="list">
  337. <td class="itemcode"><a name="glBitmapRec4ul"></a><code>function <b>glBitmapRec4ul</b>(const r, g, b, a: QWord): <a href="glBitmap.TglBitmapRec4ul.html">TglBitmapRec4ul</a>;</code></td>
  338. </tr>
  339. <tr><td colspan="1">
  340. &nbsp;</td></tr>
  341. </table>
  342. <table class="detail wide_list">
  343. <tr class="list">
  344. <td class="itemcode"><a name="glBitmapRec4ubCompare"></a><code>function <b>glBitmapRec4ubCompare</b>(const r1, r2: <a href="glBitmap.TglBitmapRec4ub.html">TglBitmapRec4ub</a>): Boolean;</code></td>
  345. </tr>
  346. <tr><td colspan="1">
  347. &nbsp;</td></tr>
  348. </table>
  349. <table class="detail wide_list">
  350. <tr class="list">
  351. <td class="itemcode"><a name="glBitmapRec4uiCompare"></a><code>function <b>glBitmapRec4uiCompare</b>(const r1, r2: <a href="glBitmap.TglBitmapRec4ui.html">TglBitmapRec4ui</a>): Boolean;</code></td>
  352. </tr>
  353. <tr><td colspan="1">
  354. &nbsp;</td></tr>
  355. </table>
  356. <table class="detail wide_list">
  357. <tr class="list">
  358. <td class="itemcode"><a name="glBitmapCreateTestData"></a><code>function <b>glBitmapCreateTestData</b>(const aFormat: <a href="glBitmap.html#TglBitmapFormat">TglBitmapFormat</a>): <a href="glBitmap.TglBitmapData.html">TglBitmapData</a>;</code></td>
  359. </tr>
  360. <tr><td colspan="1">
  361. &nbsp;</td></tr>
  362. </table>
  363. <h3 class="detail">Types</h3>
  364. <table class="detail wide_list">
  365. <tr class="list">
  366. <td class="itemcode"><a name="TglBitmapFormat"></a><code><b>TglBitmapFormat</b> = (...);</code></td>
  367. </tr>
  368. <tr><td colspan="1">
  369. <p>
  370. type that describes the format of the data stored in a texture. the name of formats is composed of the following constituents: - multiple channels: - channel (e.g. R, G, B, A or Alpha, Luminance or X (reserved)) - width of the chanel in bit (4, 8, 16, ...) - data type (e.g. ub, us, ui) - number of elements of data types</p>
  371. <h6 class="description_section">Values</h6>
  372. <ul>
  373. <li>
  374. tfEmpty = 0: &nbsp;</li>
  375. <li>
  376. tfAlpha4ub1: 1 x unsigned byte</li>
  377. <li>
  378. tfAlpha8ub1: 1 x unsigned byte</li>
  379. <li>
  380. tfAlpha16us1: 1 x unsigned short</li>
  381. <li>
  382. tfLuminance4ub1: 1 x unsigned byte</li>
  383. <li>
  384. tfLuminance8ub1: 1 x unsigned byte</li>
  385. <li>
  386. tfLuminance16us1: 1 x unsigned short</li>
  387. <li>
  388. tfLuminance4Alpha4ub2: 1 x unsigned byte (lum), 1 x unsigned byte (alpha)</li>
  389. <li>
  390. tfLuminance6Alpha2ub2: 1 x unsigned byte (lum), 1 x unsigned byte (alpha)</li>
  391. <li>
  392. tfLuminance8Alpha8ub2: 1 x unsigned byte (lum), 1 x unsigned byte (alpha)</li>
  393. <li>
  394. tfLuminance12Alpha4us2: 1 x unsigned short (lum), 1 x unsigned short (alpha)</li>
  395. <li>
  396. tfLuminance16Alpha16us2: 1 x unsigned short (lum), 1 x unsigned short (alpha)</li>
  397. <li>
  398. tfR3G3B2ub1: 1 x unsigned byte (3bit red, 3bit green, 2bit blue)</li>
  399. <li>
  400. tfRGBX4us1: 1 x unsigned short (4bit red, 4bit green, 4bit blue, 4bit reserverd)</li>
  401. <li>
  402. tfXRGB4us1: 1 x unsigned short (4bit reserved, 4bit red, 4bit green, 4bit blue)</li>
  403. <li>
  404. tfR5G6B5us1: 1 x unsigned short (5bit red, 6bit green, 5bit blue)</li>
  405. <li>
  406. tfRGB5X1us1: 1 x unsigned short (5bit red, 5bit green, 5bit blue, 1bit reserved)</li>
  407. <li>
  408. tfX1RGB5us1: 1 x unsigned short (1bit reserved, 5bit red, 5bit green, 5bit blue)</li>
  409. <li>
  410. tfRGB8ub3: 1 x unsigned byte (red), 1 x unsigned byte (green), 1 x unsigned byte (blue)</li>
  411. <li>
  412. tfRGBX8ui1: 1 x unsigned int (8bit red, 8bit green, 8bit blue, 8bit reserved)</li>
  413. <li>
  414. tfXRGB8ui1: 1 x unsigned int (8bit reserved, 8bit red, 8bit green, 8bit blue)</li>
  415. <li>
  416. tfRGB10X2ui1: 1 x unsigned int (10bit red, 10bit green, 10bit blue, 2bit reserved)</li>
  417. <li>
  418. tfX2RGB10ui1: 1 x unsigned int (2bit reserved, 10bit red, 10bit green, 10bit blue)</li>
  419. <li>
  420. tfRGB16us3: 1 x unsigned short (red), 1 x unsigned short (green), 1 x unsigned short (blue)</li>
  421. <li>
  422. tfRGBA4us1: 1 x unsigned short (4bit red, 4bit green, 4bit blue, 4bit alpha)</li>
  423. <li>
  424. tfARGB4us1: 1 x unsigned short (4bit alpha, 4bit red, 4bit green, 4bit blue)</li>
  425. <li>
  426. tfRGB5A1us1: 1 x unsigned short (5bit red, 5bit green, 5bit blue, 1bit alpha)</li>
  427. <li>
  428. tfA1RGB5us1: 1 x unsigned short (1bit alpha, 5bit red, 5bit green, 5bit blue)</li>
  429. <li>
  430. tfRGBA8ui1: 1 x unsigned int (8bit red, 8bit green, 8bit blue, 8 bit alpha)</li>
  431. <li>
  432. tfARGB8ui1: 1 x unsigned int (8 bit alpha, 8bit red, 8bit green, 8bit blue)</li>
  433. <li>
  434. tfRGBA8ub4: 1 x unsigned byte (red), 1 x unsigned byte (green), 1 x unsigned byte (blue), 1 x unsigned byte (alpha)</li>
  435. <li>
  436. tfRGB10A2ui1: 1 x unsigned int (10bit red, 10bit green, 10bit blue, 2bit alpha)</li>
  437. <li>
  438. tfA2RGB10ui1: 1 x unsigned int (2bit alpha, 10bit red, 10bit green, 10bit blue)</li>
  439. <li>
  440. tfRGBA16us4: 1 x unsigned short (red), 1 x unsigned short (green), 1 x unsigned short (blue), 1 x unsigned short (alpha)</li>
  441. <li>
  442. tfBGRX4us1: 1 x unsigned short (4bit blue, 4bit green, 4bit red, 4bit reserved)</li>
  443. <li>
  444. tfXBGR4us1: 1 x unsigned short (4bit reserved, 4bit blue, 4bit green, 4bit red)</li>
  445. <li>
  446. tfB5G6R5us1: 1 x unsigned short (5bit blue, 6bit green, 5bit red)</li>
  447. <li>
  448. tfBGR5X1us1: 1 x unsigned short (5bit blue, 5bit green, 5bit red, 1bit reserved)</li>
  449. <li>
  450. tfX1BGR5us1: 1 x unsigned short (1bit reserved, 5bit blue, 5bit green, 5bit red)</li>
  451. <li>
  452. tfBGR8ub3: 1 x unsigned byte (blue), 1 x unsigned byte (green), 1 x unsigned byte (red)</li>
  453. <li>
  454. tfBGRX8ui1: 1 x unsigned int (8bit blue, 8bit green, 8bit red, 8bit reserved)</li>
  455. <li>
  456. tfXBGR8ui1: 1 x unsigned int (8bit reserved, 8bit blue, 8bit green, 8bit red)</li>
  457. <li>
  458. tfBGR10X2ui1: 1 x unsigned int (10bit blue, 10bit green, 10bit red, 2bit reserved)</li>
  459. <li>
  460. tfX2BGR10ui1: 1 x unsigned int (2bit reserved, 10bit blue, 10bit green, 10bit red)</li>
  461. <li>
  462. tfBGR16us3: 1 x unsigned short (blue), 1 x unsigned short (green), 1 x unsigned short (red)</li>
  463. <li>
  464. tfBGRA4us1: 1 x unsigned short (4bit blue, 4bit green, 4bit red, 4bit alpha)</li>
  465. <li>
  466. tfABGR4us1: 1 x unsigned short (4bit alpha, 4bit blue, 4bit green, 4bit red)</li>
  467. <li>
  468. tfBGR5A1us1: 1 x unsigned short (5bit blue, 5bit green, 5bit red, 1bit alpha)</li>
  469. <li>
  470. tfA1BGR5us1: 1 x unsigned short (1bit alpha, 5bit blue, 5bit green, 5bit red)</li>
  471. <li>
  472. tfBGRA8ui1: 1 x unsigned int (8bit blue, 8bit green, 8bit red, 8bit alpha)</li>
  473. <li>
  474. tfABGR8ui1: 1 x unsigned int (8bit alpha, 8bit blue, 8bit green, 8bit red)</li>
  475. <li>
  476. tfBGRA8ub4: 1 x unsigned byte (blue), 1 x unsigned byte (green), 1 x unsigned byte (red), 1 x unsigned byte (alpha)</li>
  477. <li>
  478. tfBGR10A2ui1: 1 x unsigned int (10bit blue, 10bit green, 10bit red, 2bit alpha)</li>
  479. <li>
  480. tfA2BGR10ui1: 1 x unsigned int (2bit alpha, 10bit blue, 10bit green, 10bit red)</li>
  481. <li>
  482. tfBGRA16us4: 1 x unsigned short (blue), 1 x unsigned short (green), 1 x unsigned short (red), 1 x unsigned short (alpha)</li>
  483. <li>
  484. tfDepth16us1: 1 x unsigned short (depth)</li>
  485. <li>
  486. tfDepth24ui1: 1 x unsigned int (depth)</li>
  487. <li>
  488. tfDepth32ui1: 1 x unsigned int (depth)</li>
  489. <li>
  490. tfS3tcDtx1RGBA: &nbsp;</li>
  491. <li>
  492. tfS3tcDtx3RGBA: &nbsp;</li>
  493. <li>
  494. tfS3tcDtx5RGBA: &nbsp;</li>
  495. </ul>
  496. </td></tr>
  497. </table>
  498. <table class="detail wide_list">
  499. <tr class="list">
  500. <td class="itemcode"><a name="TglBitmapFileType"></a><code><b>TglBitmapFileType</b> = (...);</code></td>
  501. </tr>
  502. <tr><td colspan="1">
  503. <p>
  504. type to define suitable file formats</p>
  505. <h6 class="description_section">Values</h6>
  506. <ul>
  507. <li>
  508. ftPNG: Portable Network Graphic file (PNG)</li>
  509. <li>
  510. ftJPEG: JPEG file</li>
  511. <li>
  512. ftDDS: Direct Draw Surface file (DDS)</li>
  513. <li>
  514. ftTGA: Targa Image File (TGA)</li>
  515. <li>
  516. ftBMP: Windows Bitmap File (BMP)</li>
  517. <li>
  518. ftRAW: glBitmap RAW file format</li>
  519. </ul>
  520. </td></tr>
  521. </table>
  522. <table class="detail wide_list">
  523. <tr class="list">
  524. <td class="itemcode"><a name="TglBitmapFileTypes"></a><code><b>TglBitmapFileTypes</b> = set of <a href="glBitmap.html#TglBitmapFileType">TglBitmapFileType</a>;</code></td>
  525. </tr>
  526. <tr><td colspan="1">
  527. &nbsp;</td></tr>
  528. </table>
  529. <table class="detail wide_list">
  530. <tr class="list">
  531. <td class="itemcode"><a name="TglBitmapMipMap"></a><code><b>TglBitmapMipMap</b> = (...);</code></td>
  532. </tr>
  533. <tr><td colspan="1">
  534. <p>
  535. possible mipmap types</p>
  536. <h6 class="description_section">Values</h6>
  537. <ul>
  538. <li>
  539. mmNone: no mipmaps</li>
  540. <li>
  541. mmMipmap: normal mipmaps</li>
  542. <li>
  543. mmMipmapGlu: mipmaps generated with glu functions</li>
  544. </ul>
  545. </td></tr>
  546. </table>
  547. <table class="detail wide_list">
  548. <tr class="list">
  549. <td class="itemcode"><a name="TglBitmapNormalMapFunc"></a><code><b>TglBitmapNormalMapFunc</b> = (...);</code></td>
  550. </tr>
  551. <tr><td colspan="1">
  552. <p>
  553. possible normal map functions</p>
  554. <h6 class="description_section">Values</h6>
  555. <ul>
  556. <li>
  557. nm4Samples: &nbsp;</li>
  558. <li>
  559. nmSobel: &nbsp;</li>
  560. <li>
  561. nm3x3: &nbsp;</li>
  562. <li>
  563. nm5x5: &nbsp;</li>
  564. </ul>
  565. </td></tr>
  566. </table>
  567. <table class="detail wide_list">
  568. <tr class="list">
  569. <td class="itemcode"><a name="PglBitmapPixelData"></a><code><b>PglBitmapPixelData</b> = &circ;<a href="glBitmap.TglBitmapPixelData.html">TglBitmapPixelData</a>;</code></td>
  570. </tr>
  571. <tr><td colspan="1">
  572. &nbsp;</td></tr>
  573. </table>
  574. <table class="detail wide_list">
  575. <tr class="list">
  576. <td class="itemcode"><a name="TglBitmapSizeFields"></a><code><b>TglBitmapSizeFields</b> = set of (ffX, ffY);</code></td>
  577. </tr>
  578. <tr><td colspan="1">
  579. &nbsp;</td></tr>
  580. </table>
  581. <table class="detail wide_list">
  582. <tr class="list">
  583. <td class="itemcode"><a name="TglBitmapPixelPosition"></a><code><b>TglBitmapPixelPosition</b> = <a href="glBitmap.TglBitmapSize.html">TglBitmapSize</a>;</code></td>
  584. </tr>
  585. <tr><td colspan="1">
  586. &nbsp;</td></tr>
  587. </table>
  588. <table class="detail wide_list">
  589. <tr class="list">
  590. <td class="itemcode"><a name="TglBitmapFunction"></a><code><b>TglBitmapFunction</b> = procedure(var FuncRec: <a href="glBitmap.TglBitmapFunctionRec.html">TglBitmapFunctionRec</a>);</code></td>
  591. </tr>
  592. <tr><td colspan="1">
  593. <p>
  594. callback to use for converting texture data</p>
  595. </td></tr>
  596. </table>
  597. <h3 class="detail">Constants</h3>
  598. <table class="detail wide_list">
  599. <tr class="list">
  600. <td class="itemcode"><a name="NULL_SIZE"></a><code><b>NULL_SIZE</b>: <a href="glBitmap.TglBitmapSize.html">TglBitmapSize</a> = (Fields: []; X: 0; Y: 0);</code></td>
  601. </tr>
  602. <tr><td colspan="1">
  603. &nbsp;</td></tr>
  604. </table>
  605. <hr noshade size="1"><span class="appinfo"><em>Generated by <a href="http://pasdoc.sourceforge.net/">PasDoc 0.13.0</a> on 2014-12-24 04:27:09</em>
  606. </span>
  607. </td></tr></table></body></html>