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.

603 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">Class&nbsp;<a class="bold" href="glBitmap.TglBitmapFormatDescriptor.html"><code>TglBitmapFormatDescriptor</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.TglBitmapPixelData.html"><code>TglBitmapPixelData</code></a></td>
  67. <td class="itemdesc">&nbsp;</td>
  68. </tr>
  69. <tr class="list">
  70. <td class="itemname">packed record&nbsp;<a class="bold" href="glBitmap.TglBitmapSize.html"><code>TglBitmapSize</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.TglBitmap.html"><code>TglBitmap</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.TglBitmap1D.html"><code>TglBitmap1D</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.TglBitmap2D.html"><code>TglBitmap2D</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.TglBitmapCubeMap.html"><code>TglBitmapCubeMap</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.TglBitmapNormalMap.html"><code>TglBitmapNormalMap</code></a></td>
  95. <td class="itemdesc">&nbsp;</td>
  96. </tr>
  97. </table>
  98. <a name="PasDoc-FuncsProcs"></a><h3 class="summary">Functions and Procedures</h3>
  99. <table class="summary wide_list">
  100. <tr class="list">
  101. <td class="itemcode"><code>procedure <b><a href="glBitmap.html#glBitmapSetDefaultDeleteTextureOnFree">glBitmapSetDefaultDeleteTextureOnFree</a></b>(const aDeleteTextureOnFree: Boolean);</code></td>
  102. </tr>
  103. <tr class="list2">
  104. <td class="itemcode"><code>procedure <b><a href="glBitmap.html#glBitmapSetDefaultFreeDataAfterGenTexture">glBitmapSetDefaultFreeDataAfterGenTexture</a></b>(const aFreeData: Boolean);</code></td>
  105. </tr>
  106. <tr class="list">
  107. <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>
  108. </tr>
  109. <tr class="list2">
  110. <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>
  111. </tr>
  112. <tr class="list">
  113. <td class="itemcode"><code>procedure <b><a href="glBitmap.html#glBitmapSetDefaultFilter">glBitmapSetDefaultFilter</a></b>(const aMin, aMag: Integer);</code></td>
  114. </tr>
  115. <tr class="list2">
  116. <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>
  117. </tr>
  118. <tr class="list">
  119. <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>
  120. </tr>
  121. <tr class="list2">
  122. <td class="itemcode"><code>function <b><a href="glBitmap.html#glBitmapGetDefaultDeleteTextureOnFree">glBitmapGetDefaultDeleteTextureOnFree</a></b>: Boolean;</code></td>
  123. </tr>
  124. <tr class="list">
  125. <td class="itemcode"><code>function <b><a href="glBitmap.html#glBitmapGetDefaultFreeDataAfterGenTexture">glBitmapGetDefaultFreeDataAfterGenTexture</a></b>: Boolean;</code></td>
  126. </tr>
  127. <tr class="list2">
  128. <td class="itemcode"><code>function <b><a href="glBitmap.html#glBitmapGetDefaultMipmap">glBitmapGetDefaultMipmap</a></b>: <a href="glBitmap.html#TglBitmapMipMap">TglBitmapMipMap</a>;</code></td>
  129. </tr>
  130. <tr class="list">
  131. <td class="itemcode"><code>function <b><a href="glBitmap.html#glBitmapGetDefaultFormat">glBitmapGetDefaultFormat</a></b>: <a href="glBitmap.html#TglBitmapFormat">TglBitmapFormat</a>;</code></td>
  132. </tr>
  133. <tr class="list2">
  134. <td class="itemcode"><code>procedure <b><a href="glBitmap.html#glBitmapGetDefaultFilter">glBitmapGetDefaultFilter</a></b>(var aMin, aMag: Cardinal);</code></td>
  135. </tr>
  136. <tr class="list">
  137. <td class="itemcode"><code>procedure <b><a href="glBitmap.html#glBitmapGetDefaultTextureWrap">glBitmapGetDefaultTextureWrap</a></b>(var S, T, R: Cardinal);</code></td>
  138. </tr>
  139. <tr class="list2">
  140. <td class="itemcode"><code>procedure <b><a href="glBitmap.html#glBitmapGetDefaultSwizzle">glBitmapGetDefaultSwizzle</a></b>(var r, g, b, a: GLenum);</code></td>
  141. </tr>
  142. <tr class="list">
  143. <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>
  144. </tr>
  145. <tr class="list2">
  146. <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>
  147. </tr>
  148. <tr class="list">
  149. <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>
  150. </tr>
  151. <tr class="list2">
  152. <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>
  153. </tr>
  154. <tr class="list">
  155. <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>
  156. </tr>
  157. <tr class="list2">
  158. <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>
  159. </tr>
  160. <tr class="list">
  161. <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>
  162. </tr>
  163. <tr class="list2">
  164. <td class="itemcode"><code>function <b><a href="glBitmap.html#glBitmapCreateTestTexture">glBitmapCreateTestTexture</a></b>(const aFormat: <a href="glBitmap.html#TglBitmapFormat">TglBitmapFormat</a>): <a href="glBitmap.TglBitmap2D.html">TglBitmap2D</a>;</code></td>
  165. </tr>
  166. </table>
  167. <a name="PasDoc-Types"></a><h3 class="summary">Types</h3>
  168. <table class="summary wide_list">
  169. <tr class="list">
  170. <td class="itemcode"><code><b><a href="glBitmap.html#TglBitmapFormat">TglBitmapFormat</a></b> = (...);</code></td>
  171. </tr>
  172. <tr class="list2">
  173. <td class="itemcode"><code><b><a href="glBitmap.html#TglBitmapFileType">TglBitmapFileType</a></b> = (...);</code></td>
  174. </tr>
  175. <tr class="list">
  176. <td class="itemcode"><code><b><a href="glBitmap.html#TglBitmapFileTypes">TglBitmapFileTypes</a></b> = set of <a href="glBitmap.html#TglBitmapFileType">TglBitmapFileType</a>;</code></td>
  177. </tr>
  178. <tr class="list2">
  179. <td class="itemcode"><code><b><a href="glBitmap.html#TglBitmapMipMap">TglBitmapMipMap</a></b> = (...);</code></td>
  180. </tr>
  181. <tr class="list">
  182. <td class="itemcode"><code><b><a href="glBitmap.html#TglBitmapNormalMapFunc">TglBitmapNormalMapFunc</a></b> = (...);</code></td>
  183. </tr>
  184. <tr class="list2">
  185. <td class="itemcode"><code><b><a href="glBitmap.html#PglBitmapPixelData">PglBitmapPixelData</a></b> = &circ;<a href="glBitmap.TglBitmapPixelData.html">TglBitmapPixelData</a>;</code></td>
  186. </tr>
  187. <tr class="list">
  188. <td class="itemcode"><code><b><a href="glBitmap.html#TglBitmapSizeFields">TglBitmapSizeFields</a></b> = set of (ffX, ffY);</code></td>
  189. </tr>
  190. <tr class="list2">
  191. <td class="itemcode"><code><b><a href="glBitmap.html#TglBitmapPixelPosition">TglBitmapPixelPosition</a></b> = <a href="glBitmap.TglBitmapSize.html">TglBitmapSize</a>;</code></td>
  192. </tr>
  193. <tr class="list">
  194. <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>
  195. </tr>
  196. </table>
  197. <a name="PasDoc-Constants"></a><h3 class="summary">Constants</h3>
  198. <table class="summary wide_list">
  199. <tr class="list">
  200. <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>
  201. </tr>
  202. </table>
  203. <h2 class="description">Description</h2>
  204. <h3 class="detail">Functions and Procedures</h3>
  205. <table class="detail wide_list">
  206. <tr class="list">
  207. <td class="itemcode"><a name="glBitmapSetDefaultDeleteTextureOnFree"></a><code>procedure <b>glBitmapSetDefaultDeleteTextureOnFree</b>(const aDeleteTextureOnFree: Boolean);</code></td>
  208. </tr>
  209. <tr><td colspan="1">
  210. &nbsp;</td></tr>
  211. </table>
  212. <table class="detail wide_list">
  213. <tr class="list">
  214. <td class="itemcode"><a name="glBitmapSetDefaultFreeDataAfterGenTexture"></a><code>procedure <b>glBitmapSetDefaultFreeDataAfterGenTexture</b>(const aFreeData: Boolean);</code></td>
  215. </tr>
  216. <tr><td colspan="1">
  217. &nbsp;</td></tr>
  218. </table>
  219. <table class="detail wide_list">
  220. <tr class="list">
  221. <td class="itemcode"><a name="glBitmapSetDefaultMipmap"></a><code>procedure <b>glBitmapSetDefaultMipmap</b>(const aValue: <a href="glBitmap.html#TglBitmapMipMap">TglBitmapMipMap</a>);</code></td>
  222. </tr>
  223. <tr><td colspan="1">
  224. &nbsp;</td></tr>
  225. </table>
  226. <table class="detail wide_list">
  227. <tr class="list">
  228. <td class="itemcode"><a name="glBitmapSetDefaultFormat"></a><code>procedure <b>glBitmapSetDefaultFormat</b>(const aFormat: <a href="glBitmap.html#TglBitmapFormat">TglBitmapFormat</a>);</code></td>
  229. </tr>
  230. <tr><td colspan="1">
  231. &nbsp;</td></tr>
  232. </table>
  233. <table class="detail wide_list">
  234. <tr class="list">
  235. <td class="itemcode"><a name="glBitmapSetDefaultFilter"></a><code>procedure <b>glBitmapSetDefaultFilter</b>(const aMin, aMag: Integer);</code></td>
  236. </tr>
  237. <tr><td colspan="1">
  238. &nbsp;</td></tr>
  239. </table>
  240. <table class="detail wide_list">
  241. <tr class="list">
  242. <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>
  243. </tr>
  244. <tr><td colspan="1">
  245. &nbsp;</td></tr>
  246. </table>
  247. <table class="detail wide_list">
  248. <tr class="list">
  249. <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>
  250. </tr>
  251. <tr><td colspan="1">
  252. &nbsp;</td></tr>
  253. </table>
  254. <table class="detail wide_list">
  255. <tr class="list">
  256. <td class="itemcode"><a name="glBitmapGetDefaultDeleteTextureOnFree"></a><code>function <b>glBitmapGetDefaultDeleteTextureOnFree</b>: Boolean;</code></td>
  257. </tr>
  258. <tr><td colspan="1">
  259. &nbsp;</td></tr>
  260. </table>
  261. <table class="detail wide_list">
  262. <tr class="list">
  263. <td class="itemcode"><a name="glBitmapGetDefaultFreeDataAfterGenTexture"></a><code>function <b>glBitmapGetDefaultFreeDataAfterGenTexture</b>: Boolean;</code></td>
  264. </tr>
  265. <tr><td colspan="1">
  266. &nbsp;</td></tr>
  267. </table>
  268. <table class="detail wide_list">
  269. <tr class="list">
  270. <td class="itemcode"><a name="glBitmapGetDefaultMipmap"></a><code>function <b>glBitmapGetDefaultMipmap</b>: <a href="glBitmap.html#TglBitmapMipMap">TglBitmapMipMap</a>;</code></td>
  271. </tr>
  272. <tr><td colspan="1">
  273. &nbsp;</td></tr>
  274. </table>
  275. <table class="detail wide_list">
  276. <tr class="list">
  277. <td class="itemcode"><a name="glBitmapGetDefaultFormat"></a><code>function <b>glBitmapGetDefaultFormat</b>: <a href="glBitmap.html#TglBitmapFormat">TglBitmapFormat</a>;</code></td>
  278. </tr>
  279. <tr><td colspan="1">
  280. &nbsp;</td></tr>
  281. </table>
  282. <table class="detail wide_list">
  283. <tr class="list">
  284. <td class="itemcode"><a name="glBitmapGetDefaultFilter"></a><code>procedure <b>glBitmapGetDefaultFilter</b>(var aMin, aMag: Cardinal);</code></td>
  285. </tr>
  286. <tr><td colspan="1">
  287. &nbsp;</td></tr>
  288. </table>
  289. <table class="detail wide_list">
  290. <tr class="list">
  291. <td class="itemcode"><a name="glBitmapGetDefaultTextureWrap"></a><code>procedure <b>glBitmapGetDefaultTextureWrap</b>(var S, T, R: Cardinal);</code></td>
  292. </tr>
  293. <tr><td colspan="1">
  294. &nbsp;</td></tr>
  295. </table>
  296. <table class="detail wide_list">
  297. <tr class="list">
  298. <td class="itemcode"><a name="glBitmapGetDefaultSwizzle"></a><code>procedure <b>glBitmapGetDefaultSwizzle</b>(var r, g, b, a: GLenum);</code></td>
  299. </tr>
  300. <tr><td colspan="1">
  301. &nbsp;</td></tr>
  302. </table>
  303. <table class="detail wide_list">
  304. <tr class="list">
  305. <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>
  306. </tr>
  307. <tr><td colspan="1">
  308. &nbsp;</td></tr>
  309. </table>
  310. <table class="detail wide_list">
  311. <tr class="list">
  312. <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>
  313. </tr>
  314. <tr><td colspan="1">
  315. &nbsp;</td></tr>
  316. </table>
  317. <table class="detail wide_list">
  318. <tr class="list">
  319. <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>
  320. </tr>
  321. <tr><td colspan="1">
  322. &nbsp;</td></tr>
  323. </table>
  324. <table class="detail wide_list">
  325. <tr class="list">
  326. <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>
  327. </tr>
  328. <tr><td colspan="1">
  329. &nbsp;</td></tr>
  330. </table>
  331. <table class="detail wide_list">
  332. <tr class="list">
  333. <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>
  334. </tr>
  335. <tr><td colspan="1">
  336. &nbsp;</td></tr>
  337. </table>
  338. <table class="detail wide_list">
  339. <tr class="list">
  340. <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>
  341. </tr>
  342. <tr><td colspan="1">
  343. &nbsp;</td></tr>
  344. </table>
  345. <table class="detail wide_list">
  346. <tr class="list">
  347. <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>
  348. </tr>
  349. <tr><td colspan="1">
  350. &nbsp;</td></tr>
  351. </table>
  352. <table class="detail wide_list">
  353. <tr class="list">
  354. <td class="itemcode"><a name="glBitmapCreateTestTexture"></a><code>function <b>glBitmapCreateTestTexture</b>(const aFormat: <a href="glBitmap.html#TglBitmapFormat">TglBitmapFormat</a>): <a href="glBitmap.TglBitmap2D.html">TglBitmap2D</a>;</code></td>
  355. </tr>
  356. <tr><td colspan="1">
  357. &nbsp;</td></tr>
  358. </table>
  359. <h3 class="detail">Types</h3>
  360. <table class="detail wide_list">
  361. <tr class="list">
  362. <td class="itemcode"><a name="TglBitmapFormat"></a><code><b>TglBitmapFormat</b> = (...);</code></td>
  363. </tr>
  364. <tr><td colspan="1">
  365. <p>
  366. 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>
  367. <h6 class="description_section">Values</h6>
  368. <ul>
  369. <li>
  370. tfEmpty = 0: &nbsp;</li>
  371. <li>
  372. tfAlpha4ub1: 1 x unsigned byte</li>
  373. <li>
  374. tfAlpha8ub1: 1 x unsigned byte</li>
  375. <li>
  376. tfAlpha16us1: 1 x unsigned short</li>
  377. <li>
  378. tfLuminance4ub1: 1 x unsigned byte</li>
  379. <li>
  380. tfLuminance8ub1: 1 x unsigned byte</li>
  381. <li>
  382. tfLuminance16us1: 1 x unsigned short</li>
  383. <li>
  384. tfLuminance4Alpha4ub2: 1 x unsigned byte (lum), 1 x unsigned byte (alpha)</li>
  385. <li>
  386. tfLuminance6Alpha2ub2: 1 x unsigned byte (lum), 1 x unsigned byte (alpha)</li>
  387. <li>
  388. tfLuminance8Alpha8ub2: 1 x unsigned byte (lum), 1 x unsigned byte (alpha)</li>
  389. <li>
  390. tfLuminance12Alpha4us2: 1 x unsigned short (lum), 1 x unsigned short (alpha)</li>
  391. <li>
  392. tfLuminance16Alpha16us2: 1 x unsigned short (lum), 1 x unsigned short (alpha)</li>
  393. <li>
  394. tfR3G3B2ub1: 1 x unsigned byte (3bit red, 3bit green, 2bit blue)</li>
  395. <li>
  396. tfRGBX4us1: 1 x unsigned short (4bit red, 4bit green, 4bit blue, 4bit reserverd)</li>
  397. <li>
  398. tfXRGB4us1: 1 x unsigned short (4bit reserved, 4bit red, 4bit green, 4bit blue)</li>
  399. <li>
  400. tfR5G6B5us1: 1 x unsigned short (5bit red, 6bit green, 5bit blue)</li>
  401. <li>
  402. tfRGB5X1us1: 1 x unsigned short (5bit red, 5bit green, 5bit blue, 1bit reserved)</li>
  403. <li>
  404. tfX1RGB5us1: 1 x unsigned short (1bit reserved, 5bit red, 5bit green, 5bit blue)</li>
  405. <li>
  406. tfRGB8ub3: 1 x unsigned byte (red), 1 x unsigned byte (green), 1 x unsigned byte (blue)</li>
  407. <li>
  408. tfRGBX8ui1: 1 x unsigned int (8bit red, 8bit green, 8bit blue, 8bit reserved)</li>
  409. <li>
  410. tfXRGB8ui1: 1 x unsigned int (8bit reserved, 8bit red, 8bit green, 8bit blue)</li>
  411. <li>
  412. tfRGB10X2ui1: 1 x unsigned int (10bit red, 10bit green, 10bit blue, 2bit reserved)</li>
  413. <li>
  414. tfX2RGB10ui1: 1 x unsigned int (2bit reserved, 10bit red, 10bit green, 10bit blue)</li>
  415. <li>
  416. tfRGB16us3: 1 x unsigned short (red), 1 x unsigned short (green), 1 x unsigned short (blue)</li>
  417. <li>
  418. tfRGBA4us1: 1 x unsigned short (4bit red, 4bit green, 4bit blue, 4bit alpha)</li>
  419. <li>
  420. tfARGB4us1: 1 x unsigned short (4bit alpha, 4bit red, 4bit green, 4bit blue)</li>
  421. <li>
  422. tfRGB5A1us1: 1 x unsigned short (5bit red, 5bit green, 5bit blue, 1bit alpha)</li>
  423. <li>
  424. tfA1RGB5us1: 1 x unsigned short (1bit alpha, 5bit red, 5bit green, 5bit blue)</li>
  425. <li>
  426. tfRGBA8ui1: 1 x unsigned int (8bit red, 8bit green, 8bit blue, 8 bit alpha)</li>
  427. <li>
  428. tfARGB8ui1: 1 x unsigned int (8 bit alpha, 8bit red, 8bit green, 8bit blue)</li>
  429. <li>
  430. tfRGBA8ub4: 1 x unsigned byte (red), 1 x unsigned byte (green), 1 x unsigned byte (blue), 1 x unsigned byte (alpha)</li>
  431. <li>
  432. tfRGB10A2ui1: 1 x unsigned int (10bit red, 10bit green, 10bit blue, 2bit alpha)</li>
  433. <li>
  434. tfA2RGB10ui1: 1 x unsigned int (2bit alpha, 10bit red, 10bit green, 10bit blue)</li>
  435. <li>
  436. tfRGBA16us4: 1 x unsigned short (red), 1 x unsigned short (green), 1 x unsigned short (blue), 1 x unsigned short (alpha)</li>
  437. <li>
  438. tfBGRX4us1: 1 x unsigned short (4bit blue, 4bit green, 4bit red, 4bit reserved)</li>
  439. <li>
  440. tfXBGR4us1: 1 x unsigned short (4bit reserved, 4bit blue, 4bit green, 4bit red)</li>
  441. <li>
  442. tfB5G6R5us1: 1 x unsigned short (5bit blue, 6bit green, 5bit red)</li>
  443. <li>
  444. tfBGR5X1us1: 1 x unsigned short (5bit blue, 5bit green, 5bit red, 1bit reserved)</li>
  445. <li>
  446. tfX1BGR5us1: 1 x unsigned short (1bit reserved, 5bit blue, 5bit green, 5bit red)</li>
  447. <li>
  448. tfBGR8ub3: 1 x unsigned byte (blue), 1 x unsigned byte (green), 1 x unsigned byte (red)</li>
  449. <li>
  450. tfBGRX8ui1: 1 x unsigned int (8bit blue, 8bit green, 8bit red, 8bit reserved)</li>
  451. <li>
  452. tfXBGR8ui1: 1 x unsigned int (8bit reserved, 8bit blue, 8bit green, 8bit red)</li>
  453. <li>
  454. tfBGR10X2ui1: 1 x unsigned int (10bit blue, 10bit green, 10bit red, 2bit reserved)</li>
  455. <li>
  456. tfX2BGR10ui1: 1 x unsigned int (2bit reserved, 10bit blue, 10bit green, 10bit red)</li>
  457. <li>
  458. tfBGR16us3: 1 x unsigned short (blue), 1 x unsigned short (green), 1 x unsigned short (red)</li>
  459. <li>
  460. tfBGRA4us1: 1 x unsigned short (4bit blue, 4bit green, 4bit red, 4bit alpha)</li>
  461. <li>
  462. tfABGR4us1: 1 x unsigned short (4bit alpha, 4bit blue, 4bit green, 4bit red)</li>
  463. <li>
  464. tfBGR5A1us1: 1 x unsigned short (5bit blue, 5bit green, 5bit red, 1bit alpha)</li>
  465. <li>
  466. tfA1BGR5us1: 1 x unsigned short (1bit alpha, 5bit blue, 5bit green, 5bit red)</li>
  467. <li>
  468. tfBGRA8ui1: 1 x unsigned int (8bit blue, 8bit green, 8bit red, 8bit alpha)</li>
  469. <li>
  470. tfABGR8ui1: 1 x unsigned int (8bit alpha, 8bit blue, 8bit green, 8bit red)</li>
  471. <li>
  472. tfBGRA8ub4: 1 x unsigned byte (blue), 1 x unsigned byte (green), 1 x unsigned byte (red), 1 x unsigned byte (alpha)</li>
  473. <li>
  474. tfBGR10A2ui1: 1 x unsigned int (10bit blue, 10bit green, 10bit red, 2bit alpha)</li>
  475. <li>
  476. tfA2BGR10ui1: 1 x unsigned int (2bit alpha, 10bit blue, 10bit green, 10bit red)</li>
  477. <li>
  478. tfBGRA16us4: 1 x unsigned short (blue), 1 x unsigned short (green), 1 x unsigned short (red), 1 x unsigned short (alpha)</li>
  479. <li>
  480. tfDepth16us1: 1 x unsigned short (depth)</li>
  481. <li>
  482. tfDepth24ui1: 1 x unsigned int (depth)</li>
  483. <li>
  484. tfDepth32ui1: 1 x unsigned int (depth)</li>
  485. <li>
  486. tfS3tcDtx1RGBA: &nbsp;</li>
  487. <li>
  488. tfS3tcDtx3RGBA: &nbsp;</li>
  489. <li>
  490. tfS3tcDtx5RGBA: &nbsp;</li>
  491. </ul>
  492. </td></tr>
  493. </table>
  494. <table class="detail wide_list">
  495. <tr class="list">
  496. <td class="itemcode"><a name="TglBitmapFileType"></a><code><b>TglBitmapFileType</b> = (...);</code></td>
  497. </tr>
  498. <tr><td colspan="1">
  499. <p>
  500. Portable Network Graphic file (PNG)</p>
  501. <h6 class="description_section">Values</h6>
  502. <ul>
  503. <li>
  504. ftDDS: Direct Draw Surface file (DDS)</li>
  505. <li>
  506. ftTGA: Targa Image File (TGA)</li>
  507. <li>
  508. ftBMP: Windows Bitmap File (BMP)</li>
  509. <li>
  510. ftRAW: glBitmap RAW file format</li>
  511. </ul>
  512. </td></tr>
  513. </table>
  514. <table class="detail wide_list">
  515. <tr class="list">
  516. <td class="itemcode"><a name="TglBitmapFileTypes"></a><code><b>TglBitmapFileTypes</b> = set of <a href="glBitmap.html#TglBitmapFileType">TglBitmapFileType</a>;</code></td>
  517. </tr>
  518. <tr><td colspan="1">
  519. &nbsp;</td></tr>
  520. </table>
  521. <table class="detail wide_list">
  522. <tr class="list">
  523. <td class="itemcode"><a name="TglBitmapMipMap"></a><code><b>TglBitmapMipMap</b> = (...);</code></td>
  524. </tr>
  525. <tr><td colspan="1">
  526. <p>
  527. possible mipmap types</p>
  528. <h6 class="description_section">Values</h6>
  529. <ul>
  530. <li>
  531. mmNone: no mipmaps</li>
  532. <li>
  533. mmMipmap: normal mipmaps</li>
  534. <li>
  535. mmMipmapGlu: mipmaps generated with glu functions</li>
  536. </ul>
  537. </td></tr>
  538. </table>
  539. <table class="detail wide_list">
  540. <tr class="list">
  541. <td class="itemcode"><a name="TglBitmapNormalMapFunc"></a><code><b>TglBitmapNormalMapFunc</b> = (...);</code></td>
  542. </tr>
  543. <tr><td colspan="1">
  544. <p>
  545. possible normal map functions</p>
  546. <h6 class="description_section">Values</h6>
  547. <ul>
  548. <li>
  549. nm4Samples: &nbsp;</li>
  550. <li>
  551. nmSobel: &nbsp;</li>
  552. <li>
  553. nm3x3: &nbsp;</li>
  554. <li>
  555. nm5x5: &nbsp;</li>
  556. </ul>
  557. </td></tr>
  558. </table>
  559. <table class="detail wide_list">
  560. <tr class="list">
  561. <td class="itemcode"><a name="PglBitmapPixelData"></a><code><b>PglBitmapPixelData</b> = &circ;<a href="glBitmap.TglBitmapPixelData.html">TglBitmapPixelData</a>;</code></td>
  562. </tr>
  563. <tr><td colspan="1">
  564. &nbsp;</td></tr>
  565. </table>
  566. <table class="detail wide_list">
  567. <tr class="list">
  568. <td class="itemcode"><a name="TglBitmapSizeFields"></a><code><b>TglBitmapSizeFields</b> = set of (ffX, ffY);</code></td>
  569. </tr>
  570. <tr><td colspan="1">
  571. &nbsp;</td></tr>
  572. </table>
  573. <table class="detail wide_list">
  574. <tr class="list">
  575. <td class="itemcode"><a name="TglBitmapPixelPosition"></a><code><b>TglBitmapPixelPosition</b> = <a href="glBitmap.TglBitmapSize.html">TglBitmapSize</a>;</code></td>
  576. </tr>
  577. <tr><td colspan="1">
  578. &nbsp;</td></tr>
  579. </table>
  580. <table class="detail wide_list">
  581. <tr class="list">
  582. <td class="itemcode"><a name="TglBitmapFunction"></a><code><b>TglBitmapFunction</b> = procedure(var FuncRec: <a href="glBitmap.TglBitmapFunctionRec.html">TglBitmapFunctionRec</a>);</code></td>
  583. </tr>
  584. <tr><td colspan="1">
  585. <p>
  586. callback to use for converting texture data</p>
  587. </td></tr>
  588. </table>
  589. <h3 class="detail">Constants</h3>
  590. <table class="detail wide_list">
  591. <tr class="list">
  592. <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>
  593. </tr>
  594. <tr><td colspan="1">
  595. &nbsp;</td></tr>
  596. </table>
  597. <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>
  598. </span>
  599. </td></tr></table></body></html>