1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
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">
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">
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>
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>
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">
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
123 <a name="PasDoc-Methods"></a><h3 class="summary">Methods</h3>
124 <table class="summary wide_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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
422 <a name="PasDoc-Properties"></a><h3 class="summary">Properties</h3>
423 <table class="summary wide_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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
501 <h2 class="description">Description</h2>
502 <h3 class="detail">Fields</h3>
503 <table class="detail wide_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>
510 name of the OpenGL texture object</p>
513 <table class="detail wide_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>
520 texture target (e.g. GL_TEXTURE_2D)</p>
523 <table class="detail wide_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>
530 anisotropic level</p>
533 <table class="detail wide_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>
540 delete OpenGL texture object when this object is destroyed</p>
543 <table class="detail wide_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>
550 free stored data when this object is destroyed</p>
553 <table class="detail wide_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>
560 free stored data after data was uploaded to video card</p>
563 <table class="detail wide_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>
570 data of this texture</p>
573 <table class="detail wide_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>
580 color of the texture border</p>
583 <table class="detail wide_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>
590 size of this texture</p>
593 <table class="detail wide_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>
603 <table class="detail wide_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>
610 format the texture data is stored in</p>
613 <table class="detail wide_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>
620 size of one pixel (in byte)</p>
623 <table class="detail wide_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>
630 size of one pixel row (in byte)</p>
633 <table class="detail wide_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>
640 min filter to apply to the texture</p>
643 <table class="detail wide_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>
650 mag filter to apply to the texture</p>
653 <table class="detail wide_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>
660 texture wrapping for x axis</p>
663 <table class="detail wide_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>
670 texture wrapping for y axis</p>
673 <table class="detail wide_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>
680 texture wrapping for z axis</p>
683 <table class="detail wide_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>
690 color channel swizzle</p>
693 <table class="detail wide_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>
700 filename the texture was load from</p>
703 <table class="detail wide_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>
710 user defined name</p>
713 <table class="detail wide_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>
720 user defined name</p>
723 <table class="detail wide_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>
730 user defined data</p>
733 <h3 class="detail">Methods</h3>
734 <table class="detail wide_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>
740 <h6 class="description_section">Returns</h6>
741 <p class="return">format descriptor that describes the format of the stored data</p></td></tr>
743 <table class="detail wide_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>
749 <h6 class="description_section">Returns</h6>
750 <p class="return">the actual width of the texture</p></td></tr>
752 <table class="detail wide_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>
758 <h6 class="description_section">Returns</h6>
759 <p class="return">the actual height of the texture</p></td></tr>
761 <table class="detail wide_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>
767 <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>
770 <table class="detail wide_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>
776 <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>
779 <table class="detail wide_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>
786 set a new value for fCustomData</p>
789 <table class="detail wide_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>
796 set a new value for fCustomName</p>
799 <table class="detail wide_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>
806 set a new value for fCustomNameW</p>
809 <table class="detail wide_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>
816 set new value for fFreeDataOnDestroy</p>
819 <table class="detail wide_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>
826 set new value for fDeleteTextureOnFree</p>
829 <table class="detail wide_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>
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>
839 <table class="detail wide_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>
846 set new value for fFreeDataAfterGenTexture</p>
849 <table class="detail wide_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>
856 set name of OpenGL texture object</p>
859 <table class="detail wide_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>
866 set new value for fMipMap</p>
869 <table class="detail wide_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>
876 set new value for target</p>
879 <table class="detail wide_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>
886 set new value for fAnisotrophic</p>
889 <table class="detail wide_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>
896 create OpenGL texture object (delete exisiting object if exists)</p>
899 <table class="detail wide_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>
906 setup texture parameters</p>
909 <table class="detail wide_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>
916 set data pointer of texture data </p>
917 <h6 class="description_section">Parameters</h6>
918 <dl class="parameters">
920 <dd>pointer to new texture data (be carefull, aData could be freed by this function)</dd>
922 <dd>format of the data stored at aData</dd>
924 <dd>width of the texture data</dd>
926 <dd>height of the texture data</dd>
930 <table class="detail wide_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>
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>
945 <table class="detail wide_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>
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>
956 <table class="detail wide_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>
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>
967 <table class="detail wide_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>
974 this method is called after the constructor and sets the default values of this object</p>
977 <table class="detail wide_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>
984 this method is called before the destructor and does some cleanup</p>
987 <table class="detail wide_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>
994 splits a resource identifier into the resource and it's type </p>
995 <h6 class="description_section">Parameters</h6>
996 <dl class="parameters">
998 <dd>resource identifier to split and store name in</dd>
1000 <dd>type of the resource</dd>
1004 <table class="detail wide_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>
1009 <tr><td colspan="2">
1011 load a texture from a file </p>
1012 <h6 class="description_section">Parameters</h6>
1013 <dl class="parameters">
1015 <dd>file to load texuture from</dd>
1019 <table class="detail wide_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>
1024 <tr><td colspan="2">
1026 load a texture from a stream </p>
1027 <h6 class="description_section">Parameters</h6>
1028 <dl class="parameters">
1030 <dd>stream to load texture from</dd>
1034 <table class="detail wide_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>
1039 <tr><td colspan="2">
1041 use a function to generate texture data </p>
1042 <h6 class="description_section">Parameters</h6>
1043 <dl class="parameters">
1045 <dd>size of the texture</dd>
1047 <dd>callback to use for generation</dd>
1049 <dd>format of the texture data</dd>
1051 <dd>user defined paramaters (use at will)</dd>
1055 <table class="detail wide_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>
1060 <tr><td colspan="2">
1062 load a texture from a resource </p>
1063 <h6 class="description_section">Parameters</h6>
1064 <dl class="parameters">
1066 <dd>resource handle</dd>
1068 <dd>resource indentifier</dd>
1070 <dd>resource type (if known)</dd>
1074 <table class="detail wide_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>
1079 <tr><td colspan="2">
1081 load a texture from a resource id </p>
1082 <h6 class="description_section">Parameters</h6>
1083 <dl class="parameters">
1085 <dd>resource handle</dd>
1087 <dd>resource ID</dd>
1089 <dd>resource type</dd>
1093 <table class="detail wide_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>
1098 <tr><td colspan="2">
1100 save texture data to a file </p>
1101 <h6 class="description_section">Parameters</h6>
1102 <dl class="parameters">
1104 <dd>filename to store texture in</dd>
1106 <dd>file type to store data into</dd>
1110 <table class="detail wide_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>
1115 <tr><td colspan="2">
1117 save texture data to a stream </p>
1118 <h6 class="description_section">Parameters</h6>
1119 <dl class="parameters">
1121 <dd>filename to store texture in</dd>
1123 <dd>file type to store data into</dd>
1127 <table class="detail wide_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>
1132 <tr><td colspan="2">
1134 convert texture data using a user defined callback </p>
1135 <h6 class="description_section">Parameters</h6>
1136 <dl class="parameters">
1138 <dd>callback to use for converting</dd>
1139 <dt>aCreateTemp</dt>
1140 <dd>create a temporary buffer to use for converting</dd>
1142 <dd>user defined paramters (use at will)</dd>
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>
1147 <table class="detail wide_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>
1152 <tr><td colspan="2">
1154 convert texture data using a user defined callback </p>
1155 <h6 class="description_section">Parameters</h6>
1156 <dl class="parameters">
1158 <dd>glBitmap to read data from</dd>
1160 <dd>callback to use for converting</dd>
1161 <dt>aCreateTemp</dt>
1162 <dd>create a temporary buffer to use for converting</dd>
1164 <dd>format of the new data</dd>
1166 <dd>user defined paramters (use at will)</dd>
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>
1171 <table class="detail wide_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>
1176 <tr><td colspan="2">
1178 convert texture data using a specific format </p>
1179 <h6 class="description_section">Parameters</h6>
1180 <dl class="parameters">
1182 <dd>new format of texture data</dd>
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>
1187 <table class="detail wide_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>
1192 <tr><td colspan="2">
1194 load alpha channel data from resource </p>
1195 <h6 class="description_section">Parameters</h6>
1196 <dl class="parameters">
1198 <dd>resource handle</dd>
1200 <dd>resource ID</dd>
1202 <dd>resource type</dd>
1204 <dd>callback to use for converting</dd>
1206 <dd>user defined parameters (use at will)</dd>
1208 <h6 class="description_section">Returns</h6>
1209 <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
1211 <table class="detail wide_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>
1216 <tr><td colspan="2">
1218 load alpha channel data from resource ID </p>
1219 <h6 class="description_section">Parameters</h6>
1220 <dl class="parameters">
1222 <dd>resource handle</dd>
1223 <dt>aResourceID</dt>
1224 <dd>resource ID</dd>
1226 <dd>resource type</dd>
1228 <dd>callback to use for converting</dd>
1230 <dd>user defined parameters (use at will)</dd>
1232 <h6 class="description_section">Returns</h6>
1233 <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
1235 <table class="detail wide_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>
1240 <tr><td colspan="2">
1242 add alpha channel data from function </p>
1243 <h6 class="description_section">Parameters</h6>
1244 <dl class="parameters">
1246 <dd>callback to get data from</dd>
1248 <dd>user defined parameters (use at will)</dd>
1250 <h6 class="description_section">Returns</h6>
1251 <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
1253 <table class="detail wide_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>
1258 <tr><td colspan="2">
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">
1264 <dd>file to load alpha channel data from</dd>
1266 <dd>callback to use for converting</dd>
1268 <dd>user defined parameters (use at will)</dd>
1270 <h6 class="description_section">Returns</h6>
1271 <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
1273 <table class="detail wide_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>
1278 <tr><td colspan="2">
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">
1284 <dd>stream to load alpha channel data from</dd>
1286 <dd>callback to use for converting</dd>
1288 <dd>user defined parameters (use at will)</dd>
1290 <h6 class="description_section">Returns</h6>
1291 <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
1293 <table class="detail wide_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>
1298 <tr><td colspan="2">
1300 add alpha channel data from existing glBitmap object </p>
1301 <h6 class="description_section">Parameters</h6>
1302 <dl class="parameters">
1304 <dd>TglBitmap to copy alpha channel data from</dd>
1306 <dd>callback to use for converting</dd>
1308 <dd>user defined parameters (use at will)</dd>
1310 <h6 class="description_section">Returns</h6>
1311 <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
1313 <table class="detail wide_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>
1318 <tr><td colspan="2">
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">
1324 <dd>red threshold (0-255)</dd>
1326 <dd>green threshold (0-255)</dd>
1328 <dd>blue threshold (0-255)</dd>
1329 <dt>aDeviatation</dt>
1330 <dd>accepted deviatation (0-255)</dd>
1332 <h6 class="description_section">Returns</h6>
1333 <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
1335 <table class="detail wide_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>
1340 <tr><td colspan="2">
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">
1346 <dd>red threshold (0-Range.r)</dd>
1348 <dd>green threshold (0-Range.g)</dd>
1350 <dd>blue threshold (0-Range.b)</dd>
1351 <dt>aDeviatation</dt>
1352 <dd>accepted deviatation (0-max(Range.rgb))</dd>
1354 <h6 class="description_section">Returns</h6>
1355 <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
1357 <table class="detail wide_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>
1362 <tr><td colspan="2">
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">
1368 <dd>red threshold (0.0-1.0)</dd>
1370 <dd>green threshold (0.0-1.0)</dd>
1372 <dd>blue threshold (0.0-1.0)</dd>
1373 <dt>aDeviatation</dt>
1374 <dd>accepted deviatation (0.0-1.0)</dd>
1376 <h6 class="description_section">Returns</h6>
1377 <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
1379 <table class="detail wide_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>
1384 <tr><td colspan="2">
1386 add a constand alpha value to all pixels </p>
1387 <h6 class="description_section">Parameters</h6>
1388 <dl class="parameters">
1390 <dd>alpha value to add (0-255)</dd>
1392 <h6 class="description_section">Returns</h6>
1393 <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
1395 <table class="detail wide_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>
1400 <tr><td colspan="2">
1402 add a constand alpha value to all pixels </p>
1403 <h6 class="description_section">Parameters</h6>
1404 <dl class="parameters">
1406 <dd>alpha value to add (0-max(Range.rgb))</dd>
1408 <h6 class="description_section">Returns</h6>
1409 <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
1411 <table class="detail wide_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>
1416 <tr><td colspan="2">
1418 add a constand alpha value to all pixels </p>
1419 <h6 class="description_section">Parameters</h6>
1420 <dl class="parameters">
1422 <dd>alpha value to add (0.0-1.0)</dd>
1424 <h6 class="description_section">Returns</h6>
1425 <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
1427 <table class="detail wide_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>
1432 <tr><td colspan="2">
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>
1438 <table class="detail wide_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>
1443 <tr><td colspan="2">
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>
1449 <table class="detail wide_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>
1454 <tr><td colspan="2">
1456 invert color data (xor) </p>
1457 <h6 class="description_section">Parameters</h6>
1458 <dl class="parameters">
1460 <dd>xor each color channel</dd>
1462 <dd>xor alpha channel</dd>
1466 <table class="detail wide_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>
1471 <tr><td colspan="2">
1473 free texture stored data</p>
1476 <table class="detail wide_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>
1481 <tr><td colspan="2">
1483 fill complete texture with one color </p>
1484 <h6 class="description_section">Parameters</h6>
1485 <dl class="parameters">
1487 <dd>red color for border (0-255)</dd>
1489 <dd>green color for border (0-255)</dd>
1491 <dd>blue color for border (0-255)</dd>
1493 <dd>alpha color for border (0-255)</dd>
1497 <table class="detail wide_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>
1502 <tr><td colspan="2">
1504 fill complete texture with one color </p>
1505 <h6 class="description_section">Parameters</h6>
1506 <dl class="parameters">
1508 <dd>red color for border (0-Range.r)</dd>
1510 <dd>green color for border (0-Range.g)</dd>
1512 <dd>blue color for border (0-Range.b)</dd>
1514 <dd>alpha color for border (0-Range.a)</dd>
1518 <table class="detail wide_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>
1523 <tr><td colspan="2">
1525 fill complete texture with one color </p>
1526 <h6 class="description_section">Parameters</h6>
1527 <dl class="parameters">
1529 <dd>red color for border (0.0-1.0)</dd>
1531 <dd>green color for border (0.0-1.0)</dd>
1533 <dd>blue color for border (0.0-1.0)</dd>
1535 <dd>alpha color for border (0.0-1.0)</dd>
1539 <table class="detail wide_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>
1544 <tr><td colspan="2">
1546 set new texture filer </p>
1547 <h6 class="description_section">Parameters</h6>
1548 <dl class="parameters">
1556 <table class="detail wide_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>
1561 <tr><td colspan="2">
1563 set new texture wrapping </p>
1564 <h6 class="description_section">Parameters</h6>
1565 <dl class="parameters">
1567 <dd>texture wrapping for x axis</dd>
1569 <dd>texture wrapping for y axis</dd>
1571 <dd>texture wrapping for z axis</dd>
1575 <table class="detail wide_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>
1580 <tr><td colspan="2">
1582 set new swizzle </p>
1583 <h6 class="description_section">Parameters</h6>
1584 <dl class="parameters">
1586 <dd>swizzle for red channel</dd>
1588 <dd>swizzle for green channel</dd>
1590 <dd>swizzle for blue channel</dd>
1592 <dd>swizzle for alpha channel</dd>
1596 <table class="detail wide_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>
1601 <tr><td colspan="2">
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>
1611 <table class="detail wide_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>
1616 <tr><td colspan="2">
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>
1626 <table class="detail wide_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>
1631 <tr><td colspan="2">
1633 constructor - created an empty texture</p>
1636 <table class="detail wide_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>
1641 <tr><td colspan="2">
1643 constructor - creates a texture and load it from a file </p>
1644 <h6 class="description_section">Parameters</h6>
1645 <dl class="parameters">
1647 <dd>file to load texture from</dd>
1651 <table class="detail wide_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>
1656 <tr><td colspan="2">
1658 constructor - creates a texture and load it from a stream </p>
1659 <h6 class="description_section">Parameters</h6>
1660 <dl class="parameters">
1662 <dd>stream to load texture from</dd>
1666 <table class="detail wide_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>
1671 <tr><td colspan="2">
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">
1677 <dd>size of the texture</dd>
1679 <dd>format of the given data</dd>
1681 <dd>texture data - be carefull: the data will now be managed by the glBitmap object,</dd>
1685 <table class="detail wide_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>
1690 <tr><td colspan="2">
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">
1696 <dd>size of the texture</dd>
1698 <dd>format of the given data</dd>
1700 <dd>callback to use for generating the data</dd>
1702 <dd>user defined parameters (use at will)</dd>
1706 <table class="detail wide_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>
1711 <tr><td colspan="2">
1713 constructor - creates a texture and loads it from a resource </p>
1714 <h6 class="description_section">Parameters</h6>
1715 <dl class="parameters">
1717 <dd>resource handle</dd>
1719 <dd>resource indentifier</dd>
1721 <dd>resource type (if known)</dd>
1725 <table class="detail wide_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>
1730 <tr><td colspan="2">
1732 constructor - creates a texture and loads it from a resource </p>
1733 <h6 class="description_section">Parameters</h6>
1734 <dl class="parameters">
1736 <dd>resource handle</dd>
1737 <dt>aResourceID</dt>
1738 <dd>resource ID</dd>
1740 <dd>resource type (if known)</dd>
1744 <table class="detail wide_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>
1749 <tr><td colspan="2">
1751 try to load a RAW image from a stream </p>
1752 <h6 class="description_section">Parameters</h6>
1753 <dl class="parameters">
1755 <dd>stream to load RAW image from</dd>
1757 <h6 class="description_section">Returns</h6>
1758 <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
1760 <table class="detail wide_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>
1765 <tr><td colspan="2">
1767 save texture data as RAW image to stream </p>
1768 <h6 class="description_section">Parameters</h6>
1769 <dl class="parameters">
1771 <dd>stream to save data to</dd>
1775 <table class="detail wide_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>
1780 <tr><td colspan="2">
1782 try to load a BMP from a stream </p>
1783 <h6 class="description_section">Parameters</h6>
1784 <dl class="parameters">
1786 <dd>stream to load BMP from</dd>
1788 <h6 class="description_section">Returns</h6>
1789 <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
1791 <table class="detail wide_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>
1796 <tr><td colspan="2">
1798 save texture data as BMP to stream </p>
1799 <h6 class="description_section">Parameters</h6>
1800 <dl class="parameters">
1802 <dd>stream to save data to</dd>
1806 <table class="detail wide_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>
1811 <tr><td colspan="2">
1813 try to load a TGA from a stream </p>
1814 <h6 class="description_section">Parameters</h6>
1815 <dl class="parameters">
1817 <dd>stream to load TGA from</dd>
1819 <h6 class="description_section">Returns</h6>
1820 <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
1822 <table class="detail wide_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>
1827 <tr><td colspan="2">
1829 save texture data as TGA to stream </p>
1830 <h6 class="description_section">Parameters</h6>
1831 <dl class="parameters">
1833 <dd>stream to save data to</dd>
1837 <table class="detail wide_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>
1842 <tr><td colspan="2">
1844 try to load a DDS from a stream </p>
1845 <h6 class="description_section">Parameters</h6>
1846 <dl class="parameters">
1848 <dd>stream to load DDS from</dd>
1850 <h6 class="description_section">Returns</h6>
1851 <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
1853 <table class="detail wide_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>
1858 <tr><td colspan="2">
1860 save texture data as DDS to stream </p>
1861 <h6 class="description_section">Parameters</h6>
1862 <dl class="parameters">
1864 <dd>stream to save data to</dd>
1868 <h3 class="detail">Properties</h3>
1869 <table class="detail wide_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>
1874 <tr><td colspan="2">
1876 the actual width of the texture</p>
1879 <table class="detail wide_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>
1884 <tr><td colspan="2">
1886 the actual height of the texture</p>
1889 <table class="detail wide_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>
1894 <tr><td colspan="2">
1896 the width of the texture or 1 if the width is zero</p>
1899 <table class="detail wide_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>
1904 <tr><td colspan="2">
1906 the height of the texture or 1 if the height is zero</p>
1909 <table class="detail wide_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>
1914 <tr><td colspan="2">
1916 name of the OpenGL texture object</p>
1919 <table class="detail wide_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>
1924 <tr><td colspan="2">
1926 texture target (e.g. GL_TEXTURE_2D)</p>
1929 <table class="detail wide_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>
1934 <tr><td colspan="2">
1936 format the texture data is stored in</p>
1939 <table class="detail wide_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>
1944 <tr><td colspan="2">
1949 <table class="detail wide_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>
1954 <tr><td colspan="2">
1956 anisotropic level</p>
1959 <table class="detail wide_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>
1964 <tr><td colspan="2">
1966 format descriptor that describes the format of the stored data</p>
1969 <table class="detail wide_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>
1974 <tr><td colspan="2">
1976 filename the texture was load from</p>
1979 <table class="detail wide_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>
1984 <tr><td colspan="2">
1986 user defined name (use at will)</p>
1989 <table class="detail wide_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>
1994 <tr><td colspan="2">
1996 user defined name (as WideString; use at will)</p>
1999 <table class="detail wide_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>
2004 <tr><td colspan="2">
2006 user defined data (use at will)</p>
2009 <table class="detail wide_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>
2014 <tr><td colspan="2">
2016 delete texture object when this object is destroyed</p>
2019 <table class="detail wide_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>
2024 <tr><td colspan="2">
2026 free stored data when this object is destroyed</p>
2029 <table class="detail wide_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>
2034 <tr><td colspan="2">
2036 free stored data after it is uplaoded to video card</p>
2039 <table class="detail wide_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>
2044 <tr><td colspan="2">
2046 size of the texture</p>
2049 <table class="detail wide_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>
2054 <tr><td colspan="2">
2056 texture data (or <code>Nil</code> if unset)</p>
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>
2061 </td></tr></table></body></html>