Class TglBitmap2D

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TglBitmap2D = class(TglBitmap)

Description

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

Methods

Protected procedure UploadDataIntern(const aDataObj: TglBitmapData; const aTarget: GLenum );
Public procedure AfterConstruction; override;
Public procedure GrabScreen(const aTop, aLeft, aRight, aBottom: Integer; const aFormat: TglBitmapFormat; const aDataObj: TglBitmapData);
Public procedure UploadData(const aDataObj: TglBitmapData; const aCheckSize: Boolean = true); override;

Properties

Public property Width;
Public property Height;

Description

Methods

Protected procedure UploadDataIntern(const aDataObj: TglBitmapData; const aTarget: GLenum );

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
use glu functions to build mipmaps
Public procedure AfterConstruction; override;

this method is called after constructor and initializes the object

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

copy a part of the frame buffer to the texture

Parameters
aTop
topmost pixel to copy
aLeft
leftmost pixel to copy
aRight
rightmost pixel to copy
aBottom
bottommost pixel to copy
aFormat
format to store data in
aDataObj
texture data object to store the data in
Public procedure UploadData(const aDataObj: TglBitmapData; const aCheckSize: Boolean = true); override;

upload texture data from given data object to video card

Parameters
aData
texture data object that contains the actual data
aCheckSize
check size before upload and throw exception if something is wrong

Properties

Public property Width;

actual width of the texture

Public property Height;

actual height of the texture


Generated by PasDoc 0.13.0 on 2014-12-24 04:27:09