X-Git-Url: https://git.delphigl.com/?p=LazOpenGLCore.git;a=blobdiff_plain;f=doc%2FglBitmap.TglBitmap1D.html;fp=doc%2FglBitmap.TglBitmap1D.html;h=d41d806aa104b7e1e37d4bd3d3e26b53f28db826;hp=0000000000000000000000000000000000000000;hb=1f9d3b8b9ce7d5e05f7af88c7ab0fd094609d9e5;hpb=5a2eeb45d528c5a2406b2ae5d73a4c711b2ea7dc diff --git a/doc/glBitmap.TglBitmap1D.html b/doc/glBitmap.TglBitmap1D.html new file mode 100644 index 0000000..d41d806 --- /dev/null +++ b/doc/glBitmap.TglBitmap1D.html @@ -0,0 +1,146 @@ + + + +glBitmap: Class TglBitmap1D + + + + + +
+

Class TglBitmap1D

+ + +
DescriptionHierarchyFieldsMethodsProperties
+

Unit

+ +

Declaration

+

+type TglBitmap1D = class(TglBitmap)

+

Description

+

+wrapper class for 1-dimensional textures (OpenGL target = GL_TEXTURE_1D

+

Hierarchy

+

Overview

+

Methods

+ + + + + + + + + + + + + + + + + + + + + +
Protectedprocedure SetDataPointer(var aData: PByte; const aFormat: TglBitmapFormat; const aWidth: Integer = - 1; const aHeight: Integer = - 1); override;
Protectedprocedure UploadData(const aBuildWithGlu: Boolean);
Publicprocedure AfterConstruction; override;
Publicfunction FlipHorz: Boolean; override;
Publicprocedure GenTexture(const aTestTextureSize: Boolean = true); override;
+

Properties

+ + + + + +
Publicproperty Width;
+

Description

+

Methods

+ + + + + + +
Protectedprocedure SetDataPointer(var aData: PByte; const aFormat: TglBitmapFormat; const aWidth: Integer = - 1; const aHeight: Integer = - 1); override;
+

+set data pointer of texture data

+
Parameters
+
+
aData
+
pointer to new texture data (be carefull, aData could be freed by this function)
+
aFormat
+
format of the data stored at aData
+
aWidth
+
width of the texture data
+
aHeight
+
height of the texture data
+
+
+ + + + + + +
Protectedprocedure UploadData(const aBuildWithGlu: Boolean);
+

+upload the texture data to video card

+
Parameters
+
+
aBuildWithGlu
+
use glu functions to build mipmaps
+
+
+ + + + + + +
Publicprocedure AfterConstruction; override;
+

+this method is called after constructor and initializes the object

+
+ + + + + + +
Publicfunction FlipHorz: Boolean; override;
+

+flip texture horizontally

+
Returns
+

True on success, @fals otherwise

+ + + + + + +
Publicprocedure GenTexture(const aTestTextureSize: Boolean = true); override;
+

+generate texture (create texture object if not exist, set texture parameters and upload data

+
Parameters
+
+
aTestTextureSize
+
check the size of the texture and throw exception if something is wrong
+
+
+

Properties

+ + + + + + +
Publicproperty Width;
+

+actual with of the texture

+
+
Generated by PasDoc 0.13.0 on 2014-12-21 15:05:48 + +