Class TBGLCustomSprite

Unit

Declaration

type TBGLCustomSprite = class(TObject)

Description

Abstract class for a sprite with OpenGL

Hierarchy

Overview

Fields

Protected FFrameLoopEnd: integer;
Protected FFrameLoopStart: integer;
Protected FHandle: Pointer;
Protected FTexture: IBGLTexture;

Methods

Public constructor Create(ATexture: IBGLTexture; ALayer: integer);
Public destructor Destroy; override;
Protected function GetActualFrame: Single; virtual; abstract;
Protected function GetAlpha: Integer; virtual; abstract;
Protected function GetAngle: Single; virtual; abstract;
Protected function GetColor: TBGRAPixel; virtual; abstract;
Protected function GetFrame: Single;
Protected function GetH: Single; virtual; abstract;
Protected function GetHandle: Pointer; virtual;
Protected function GetHorizontalAlign: TAlignment; virtual; abstract;
Protected function GetLayer: Integer; virtual; abstract;
Protected function GetLocation: TPointF; virtual;
Protected function GetTexture: IBGLTexture; virtual;
Protected function GetVerticalAlign: TTextLayout; virtual; abstract;
Protected function GetVisible: Boolean; virtual;
Protected function GetW: Single; virtual; abstract;
Protected function GetX: Single; virtual; abstract;
Protected function GetY: Single; virtual; abstract;
Public procedure OnDraw; virtual;
Public procedure OnElapse(AElapsedMs: integer); virtual;
Public procedure OnTimer; virtual;
Public procedure QueryDestroy; virtual; abstract;
Protected procedure CreateHandle(ATexture: IBGLTexture; ALayer: Integer); virtual;
Protected procedure OnInit; virtual;
Protected procedure SetActualFrame(AValue: Single); virtual; abstract;
Protected procedure SetAlpha(AValue: Integer); virtual; abstract;
Protected procedure SetAngle(AValue: Single); virtual; abstract;
Protected procedure SetColor(AValue: TBGRAPixel); virtual; abstract;
Protected procedure SetFrame(AValue: Single);
Protected procedure SetFrameLoopEnd(AValue: integer);
Protected procedure SetFrameLoopStart(AValue: integer);
Protected procedure SetH(AValue: Single); virtual; abstract;
Protected procedure SetHorizontalAlign(AValue: TAlignment); virtual; abstract;
Protected procedure SetLayer(AValue: Integer); virtual; abstract;
Protected procedure SetLocation(AValue: TPointF); virtual;
Protected procedure SetVerticalAlign(AValue: TTextLayout); virtual; abstract;
Protected procedure SetVisible(AValue: boolean); virtual;
Protected procedure SetW(AValue: Single); virtual; abstract;
Protected procedure SetX(AValue: Single); virtual; abstract;
Protected procedure SetY(AValue: Single); virtual; abstract;

Properties

Public property Alpha : Integer read GetAlpha write SetAlpha;
Public property Angle : Single read GetAngle write SetAngle;
Public property Color : TBGRAPixel read GetColor write SetColor;
Public property Frame : Single read GetFrame write SetFrame;
Public property FrameLoopEnd : integer read FFrameLoopEnd write SetFrameLoopEnd;
Public property FrameLoopStart : integer read FFrameLoopStart write SetFrameLoopStart;
Public property H : Single read GetH write SetH;
Public property Handle : Pointer read GetHandle;
Public property HorizontalAlign: TAlignment read GetHorizontalAlign write SetHorizontalAlign;
Public property Layer : Integer read GetLayer write SetLayer;
Public property Location: TPointF read GetLocation write SetLocation;
Public property Texture : IBGLTexture read GetTexture;
Public property VerticalAlign: TTextLayout read GetVerticalAlign write SetVerticalAlign;
Public property Visible : Boolean read GetVisible write SetVisible;
Public property W : Single read GetW write SetW;
Public property X : Single read GetX write SetX;
Public property Y : Single read GetY write SetY;

Description

Fields

Protected FFrameLoopEnd: integer;

This item has no description.

Protected FFrameLoopStart: integer;

This item has no description.

Protected FHandle: Pointer;

This item has no description.

Protected FTexture: IBGLTexture;

This item has no description.

Methods

Public constructor Create(ATexture: IBGLTexture; ALayer: integer);

This item has no description.

Public destructor Destroy; override;

This item has no description.

Protected function GetActualFrame: Single; virtual; abstract;

This item has no description.

Protected function GetAlpha: Integer; virtual; abstract;

This item has no description.

Protected function GetAngle: Single; virtual; abstract;

This item has no description.

Protected function GetColor: TBGRAPixel; virtual; abstract;

This item has no description.

Protected function GetFrame: Single;

This item has no description.

Protected function GetH: Single; virtual; abstract;

This item has no description.

Protected function GetHandle: Pointer; virtual;

This item has no description.

Protected function GetHorizontalAlign: TAlignment; virtual; abstract;

This item has no description.

Protected function GetLayer: Integer; virtual; abstract;

This item has no description.

Protected function GetLocation: TPointF; virtual;

This item has no description.

Protected function GetTexture: IBGLTexture; virtual;

This item has no description.

Protected function GetVerticalAlign: TTextLayout; virtual; abstract;

This item has no description.

Protected function GetVisible: Boolean; virtual;

This item has no description.

Protected function GetW: Single; virtual; abstract;

This item has no description.

Protected function GetX: Single; virtual; abstract;

This item has no description.

Protected function GetY: Single; virtual; abstract;

This item has no description.

Public procedure OnDraw; virtual;

This item has no description.

Public procedure OnElapse(AElapsedMs: integer); virtual;

This item has no description.

Public procedure OnTimer; virtual;

This item has no description.

Public procedure QueryDestroy; virtual; abstract;

This item has no description.

Protected procedure CreateHandle(ATexture: IBGLTexture; ALayer: Integer); virtual;

This item has no description.

Protected procedure OnInit; virtual;

This item has no description.

Protected procedure SetActualFrame(AValue: Single); virtual; abstract;

This item has no description.

Protected procedure SetAlpha(AValue: Integer); virtual; abstract;

This item has no description.

Protected procedure SetAngle(AValue: Single); virtual; abstract;

This item has no description.

Protected procedure SetColor(AValue: TBGRAPixel); virtual; abstract;

This item has no description.

Protected procedure SetFrame(AValue: Single);

This item has no description.

Protected procedure SetFrameLoopEnd(AValue: integer);

This item has no description.

Protected procedure SetFrameLoopStart(AValue: integer);

This item has no description.

Protected procedure SetH(AValue: Single); virtual; abstract;

This item has no description.

Protected procedure SetHorizontalAlign(AValue: TAlignment); virtual; abstract;

This item has no description.

Protected procedure SetLayer(AValue: Integer); virtual; abstract;

This item has no description.

Protected procedure SetLocation(AValue: TPointF); virtual;

This item has no description.

Protected procedure SetVerticalAlign(AValue: TTextLayout); virtual; abstract;

This item has no description.

Protected procedure SetVisible(AValue: boolean); virtual;

This item has no description.

Protected procedure SetW(AValue: Single); virtual; abstract;

This item has no description.

Protected procedure SetX(AValue: Single); virtual; abstract;

This item has no description.

Protected procedure SetY(AValue: Single); virtual; abstract;

This item has no description.

Properties

Public property Alpha : Integer read GetAlpha write SetAlpha;

This item has no description.

Public property Angle : Single read GetAngle write SetAngle;

This item has no description.

Public property Color : TBGRAPixel read GetColor write SetColor;

This item has no description.

Public property Frame : Single read GetFrame write SetFrame;

This item has no description.

Public property FrameLoopEnd : integer read FFrameLoopEnd write SetFrameLoopEnd;

This item has no description.

Public property FrameLoopStart : integer read FFrameLoopStart write SetFrameLoopStart;

This item has no description.

Public property H : Single read GetH write SetH;

This item has no description.

Public property Handle : Pointer read GetHandle;

This item has no description.

Public property HorizontalAlign: TAlignment read GetHorizontalAlign write SetHorizontalAlign;

This item has no description.

Public property Layer : Integer read GetLayer write SetLayer;

This item has no description.

Public property Location: TPointF read GetLocation write SetLocation;

This item has no description.

Public property Texture : IBGLTexture read GetTexture;

This item has no description.

Public property VerticalAlign: TTextLayout read GetVerticalAlign write SetVerticalAlign;

This item has no description.

Public property Visible : Boolean read GetVisible write SetVisible;

This item has no description.

Public property W : Single read GetW write SetW;

This item has no description.

Public property X : Single read GetX write SetX;

This item has no description.

Public property Y : Single read GetY write SetY;

This item has no description.