X-Git-Url: https://git.delphigl.com/?p=LazOpenGLCore.git;a=blobdiff_plain;f=doc%2FglBitmap.TglBitmap2D.html;fp=doc%2FglBitmap.TglBitmap2D.html;h=3e74fbc82b2410f9c1d26e483656b86f25b6fc89;hp=ce0232a355fe13199a072b763777699e77fccbe0;hb=c110c2d190cfdd632a622163d3edb7c9c90cf21a;hpb=fb955156e23a85973e7ee2f89954d90574982fef diff --git a/doc/glBitmap.TglBitmap2D.html b/doc/glBitmap.TglBitmap2D.html index ce0232a..3e74fbc 100644 --- a/doc/glBitmap.TglBitmap2D.html +++ b/doc/glBitmap.TglBitmap2D.html @@ -12,7 +12,7 @@

Class TglBitmap2D

-
DescriptionHierarchyFieldsMethodsProperties
+DescriptionHierarchyFieldsMethodsProperties

Unit

@@ -21,31 +21,16 @@ type TglBitmap2D = class(TglBitmap)

Description

-wrapper class for 2-dimensional textures (OpenGL target = GL_TEXTURE_2D)

+wrapper class for 2-dimensional textures (OpenGL target = GL_TEXTURE_2D) all operations on a bitmap object must be done from the render thread

Hierarchy

Overview

-

Fields

- - - - - -
ProtectedfLines: array of PByte;

Methods

- - - - - - - - - + @@ -53,23 +38,11 @@ wrapper class for 2-dimensional textures (OpenGL target = GL_TEXTURE_2D)

- + - - - - - - - - - - - - - +
Protectedfunction GetScanline(const aIndex: Integer): Pointer;
Protectedprocedure SetDataPointer(var aData: PByte; const aFormat: TglBitmapFormat; const aWidth: Integer = - 1; const aHeight: Integer = - 1); override;
Protectedprocedure UploadData(const aTarget: GLenum);procedure UploadDataIntern(const aDataObj: TglBitmapData; const aTarget: GLenum );
Public
Publicprocedure GrabScreen(const aTop, aLeft, aRight, aBottom: Integer; const aFormat: TglBitmapFormat);procedure GrabScreen(const aTop, aLeft, aRight, aBottom: Integer; const aFormat: TglBitmapFormat; const aDataObj: TglBitmapData);
Publicprocedure GenTexture(const aTestTextureSize: Boolean = true); override;
Publicfunction FlipHorz: Boolean; override;
Publicfunction FlipVert: Boolean; override;
Publicprocedure GenerateNormalMap(const aFunc: TglBitmapNormalMapFunc = nm3x3; const aScale: Single = 2; const aUseAlpha: Boolean = false);procedure UploadData(const aDataObj: TglBitmapData; const aCheckSize: Boolean = true); override;

Properties

@@ -82,71 +55,21 @@ wrapper class for 2-dimensional textures (OpenGL target = GL_TEXTURE_2D)

Public property Height; - -Public -property Scanline[constaIndex:Integer]: Pointer read GetScanline; -

Description

-

Fields

- - - - - - -
ProtectedfLines: array of PByte;
-

-array to store scanline entry points in

-

Methods

- - - -
Protectedfunction GetScanline(const aIndex: Integer): Pointer;
-

-get a specific scanline

-
Parameters
-
-
aIndex
-
index of the scanline to return
-
-
Returns
-

scanline at position aIndex or Nil

- - - - - - -
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 aTarget: GLenum);procedure UploadDataIntern(const aDataObj: TglBitmapData; const aTarget: GLenum );

-upload the texture data to video card

+upload the texture data to video card

Parameters
+
aDataObj
+
texture data object that contains the actual data
aTarget
target o upload data to (e.g. GL_TEXTURE_2D)
aBuildWithGlu
@@ -167,11 +90,11 @@ this method is called after constructor and initializes the object

- +
Publicprocedure GrabScreen(const aTop, aLeft, aRight, aBottom: Integer; const aFormat: TglBitmapFormat);procedure GrabScreen(const aTop, aLeft, aRight, aBottom: Integer; const aFormat: TglBitmapFormat; const aDataObj: TglBitmapData);

-copy a part of the frame buffer top the texture

+copy a part of the frame buffer to the texture

Parameters
aTop
@@ -184,62 +107,25 @@ copy a part of the frame buffer top the texture

bottommost pixel to copy
aFormat
format to store data in
+
aDataObj
+
texture data object to store the data in
- - - -
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
-
-
- - - - - - -
Publicfunction FlipHorz: Boolean; override;
-

-flip texture horizontally

-
Returns
-

True on success, False otherwise

- - - - - - -
Publicfunction FlipVert: Boolean; override;
-

-flip texture vertically

-
Returns
-

True on success, False otherwise

- - - - +
Publicprocedure GenerateNormalMap(const aFunc: TglBitmapNormalMapFunc = nm3x3; const aScale: Single = 2; const aUseAlpha: Boolean = false);procedure UploadData(const aDataObj: TglBitmapData; const aCheckSize: Boolean = true); override;

-create normal map from texture data

+upload texture data from given data object to video card

Parameters
-
aFunc
-
normal map function to generate normalmap with
-
aScale
-
scale of the normale stored in the normal map
-
aUseAlpha
-
generate normalmap from alpha channel data (if present)
+
aData
+
texture data object that contains the actual data
+
aCheckSize
+
check size before upload and throw exception if something is wrong
@@ -264,16 +150,6 @@ actual width of the texture

actual height of the texture

- - - - - - -
Publicproperty Scanline[constaIndex:Integer]: Pointer read GetScanline;
-

-scanline to access texture data directly

-
-
Generated by PasDoc 0.13.0 on 2014-12-21 15:05:48 +
Generated by PasDoc 0.13.0 on 2014-12-24 04:27:09