Class TglBitmapCubeMap

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TglBitmapCubeMap = class(TglBitmap2D)

Description

wrapper class for cube maps (OpenGL target = GL_TEXTURE_CUBE_MAP) all operations on a bitmap object must be done from the render thread

Hierarchy

Overview

Methods

Public procedure AfterConstruction; override;
Public procedure UploadData(const aDataObj: TglBitmapData; const aCheckSize: Boolean = true); override;
Public procedure UploadCubeMap(const aDataObj: TglBitmapData; const aCubeTarget: Cardinal; const aCheckSize: Boolean);
Public procedure Bind( const aEnableTextureUnit: Boolean = true); reintroduce; virtual;
Public procedure Unbind( const aDisableTextureUnit: Boolean = true); reintroduce; virtual;

Description

Methods

Public procedure AfterConstruction; override;

this method is called after constructor and initializes the object

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
Public procedure UploadCubeMap(const aDataObj: TglBitmapData; const aCubeTarget: Cardinal; const aCheckSize: Boolean);

upload texture data from given data object to video card

Parameters
aData
texture data object that contains the actual data
aCubeTarget
cube map target to upload data to (e.g. GL_TEXTURE_CUBE_MAP_POSITIVE_X)
aCheckSize
check size before upload and throw exception if something is wrong
Public procedure Bind( const aEnableTextureUnit: Boolean = true); reintroduce; virtual;

bind texture

Parameters
aEnableTexCoordsGen
enable cube map generator
aEnableTextureUnit
enable texture unit
Public procedure Unbind( const aDisableTextureUnit: Boolean = true); reintroduce; virtual;

unbind texture

Parameters
aDisableTexCoordsGen
disable cube map generator
aDisableTextureUnit
disable texture unit

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