Class TBGLCustomBitmap
Unit
Declaration
type TBGLCustomBitmap = class(TBGRABitmap)
Description
Abstract RGBA bitmap that can be used with OpenGL by converting it into a texture
Hierarchy
- TFPCustomImage
- TCustomUniversalBitmap
- TGenericUniversalBitmap
- TBGRACustomBitmap
- TBGRADefaultBitmap
- TBGRALCLBitmap
- TBGRABitmap
- TBGLCustomBitmap
Overview
Fields
FActualHeight: integer; |
|
FActualRect: TRect; |
|
FActualWidth: integer; |
|
FAllocatedHeight: integer; |
|
FAllocatedWidth: integer; |
|
FTexture: IBGLTexture; |
|
FTextureInvalidated: boolean; |
Methods
destructor Destroy; override; |
|
function MakeTextureAndFree: IBGLTexture; |
|
function Resample(newWidth, newHeight: integer; mode: TResampleMode=rmFineResample; ACopyProperties: Boolean=False): TBGLCustomBitmap; override; |
|
function GetOpenGLMaxTexSize: integer; virtual; abstract; |
|
function GetTexture: IBGLTexture; virtual; |
|
function GetTextureGL: IUnknown; override; |
|
procedure ApplyGlobalOpacity(alpha: byte); overload; override; |
|
procedure Fill(const c: TBGRAPixel); override; |
|
procedure InvalidateBitmap; override; |
|
procedure NoClip; override; |
|
procedure ReplaceColor(const ABefore, AAfter: TBGRAPixel); overload; override; |
|
procedure ReplaceColor(before, after: TColor); overload; override; |
|
procedure ReplaceTransparent(const AAfter: TBGRAPixel); overload; override; |
|
procedure SetSize(AWidth, AHeight: integer); override; |
|
procedure SwapRedBlue; overload; override; |
|
procedure Init; override; |
|
procedure NotifyOpenGLContextNotCreatedYet; virtual; |
|
procedure NotifySizeTooBigForOpenGL; virtual; |
|
procedure SetClipRect(const AValue: TRect); override; |
|
procedure SwapRedBlueWithoutInvalidate(ARect: TRect); |
Properties
property AllocatedHeight: integer read FAllocatedHeight; |
|
property AllocatedWidth: integer read FAllocatedWidth; |
|
property Height: integer read FActualHeight; |
|
property MaxTextureSize: integer read GetOpenGLMaxTexSize; |
|
property Texture: IBGLTexture read GetTexture; |
|
property Width: integer read FActualWidth; |
Description
Fields
FActualHeight: integer; |
|
This item has no description. |
FActualRect: TRect; |
|
This item has no description. |
FActualWidth: integer; |
|
This item has no description. |
FAllocatedHeight: integer; |
|
This item has no description. |
FAllocatedWidth: integer; |
|
This item has no description. |
FTexture: IBGLTexture; |
|
This item has no description. |
FTextureInvalidated: boolean; |
|
This item has no description. |
Methods
destructor Destroy; override; |
|
This item has no description. Showing description inherited from TBGRADefaultBitmap.Destroy. Free the object and all its resources |
function MakeTextureAndFree: IBGLTexture; |
|
This item has no description. |
function Resample(newWidth, newHeight: integer; mode: TResampleMode=rmFineResample; ACopyProperties: Boolean=False): TBGLCustomBitmap; override; |
|
This item has no description. |
function GetOpenGLMaxTexSize: integer; virtual; abstract; |
|
This item has no description. |
function GetTexture: IBGLTexture; virtual; |
|
This item has no description. |
function GetTextureGL: IUnknown; override; |
|
This item has no description. Showing descriptions inherited from ancestors.
|
procedure ApplyGlobalOpacity(alpha: byte); overload; override; |
|
This item has no description. |
procedure Fill(const c: TBGRAPixel); override; |
|
This item has no description. |
procedure InvalidateBitmap; override; |
|
This item has no description. |
procedure NoClip; override; |
|
This item has no description. Showing description inherited from TCustomUniversalBitmap.NoClip. Stop clipping (clipping rectangle becomes the whole image) |
procedure ReplaceColor(const ABefore, AAfter: TBGRAPixel); overload; override; |
|
This item has no description. |
procedure ReplaceColor(before, after: TColor); overload; override; |
|
This item has no description. |
procedure ReplaceTransparent(const AAfter: TBGRAPixel); overload; override; |
|
This item has no description. |
procedure SetSize(AWidth, AHeight: integer); override; |
|
This item has no description. Showing description inherited from TBGRADefaultBitmap.SetSize. For more properties, see parent class [[TBGRACustomBitmap and IBGRAScanner#TBGRACustomBitmap|TBGRACustomBitmap]] |
procedure SwapRedBlue; overload; override; |
|
This item has no description. |
procedure Init; override; |
|
This item has no description. Showing description inherited from TCustomUniversalBitmap.Init. ReadWriteConfig: TBGRAReadWriteConfig; |
procedure NotifyOpenGLContextNotCreatedYet; virtual; |
|
This item has no description. |
procedure NotifySizeTooBigForOpenGL; virtual; |
|
This item has no description. |
procedure SetClipRect(const AValue: TRect); override; |
|
This item has no description. |
procedure SwapRedBlueWithoutInvalidate(ARect: TRect); |
|
This item has no description. |
Properties
property AllocatedHeight: integer read FAllocatedHeight; |
|
This item has no description. |
property AllocatedWidth: integer read FAllocatedWidth; |
|
This item has no description. |
property Height: integer read FActualHeight; |
|
This item has no description. |
property MaxTextureSize: integer read GetOpenGLMaxTexSize; |
|
This item has no description. |
property Texture: IBGLTexture read GetTexture; |
|
This item has no description. |
property Width: integer read FActualWidth; |
|
This item has no description. |