Description | Hierarchy | Fields | Methods | Properties |
type TAd2DApplication = class(TObject)
Abstract class which represents an Andorra 2D application.
function CreateBitmapTexture: TAd2DBitmapTexture; virtual; abstract; |
|
function CreateRenderTargetTexture: TAd2dRenderTargetTexture; virtual; abstract; |
|
function CreateMesh: TAd2DMesh; virtual; abstract; |
|
function CreatePixelCounter: TAd2dPixelCounter; virtual; abstract; |
|
function CreateLight: TAd2dLight; virtual; abstract; |
|
procedure SetRenderTarget(ATarget:TAd2dRenderTargetTexture); virtual; abstract; |
|
procedure SetProperties(ACount: integer; APProps: PAd2dPropertyValue); virtual; abstract; |
|
procedure SetOptions(AOptions: TAd2dOptions); virtual; abstract; |
|
procedure SetStencilOptions(AReference, AMask: Word; AFunction: TAd2dStencilFunction); virtual; abstract; |
|
procedure SetStencilEvent(AEvent: TAd2dStencilEvent; AOperation: TAd2dStencilOperation); virtual; abstract; |
|
function Initialize(AWnd:TAdWindowFramework):boolean; virtual; abstract; |
|
procedure Finalize; virtual; abstract; |
|
procedure ClearSurface(ARect: TAdRect; ALayers: TAd2dSurfaceLayers; AColor: TAndorraColor; AZValue: double; AStencilValue: integer); virtual; abstract; |
|
procedure BeginScene; virtual; abstract; |
|
procedure EndScene; virtual; abstract; |
|
procedure Flip; virtual; abstract; |
|
procedure Setup2DScene(AWidth, AHeight:integer; ANearZ, AFarZ: double); virtual; abstract; |
|
procedure Setup3DScene(AWidth, AHeight:integer; APos, ADir, AUp:TAdVector3; ANearZ, AFarZ: double); virtual; abstract; |
|
procedure SetupManualScene(AMatView, AMatProj:TAdMatrix); virtual; abstract; |
|
procedure GetScene(out AMatView:TAdMatrix; out AMatProj:TAdMatrix); virtual; abstract; |
|
function SupportsWindowFramework(AClassId:ShortString):boolean; virtual; abstract; |
|
procedure Log(AModule: PChar; ASeverity: TAd2dLogSeverity; AMsg: PChar); |
property Width: integer read FWidth; |
|
property Height: integer read FHeight; |
|
property MaxLights: integer read FMaxLightCount; |
|
property Viewport: TAdRect read FViewPort write SetViewPort; |
|
property AmbientColor: TAndorraColor read FAmbientColor write SetAmbientColor; |
|
property LogCallback: TAd2dLogCallback read FLogCallback write SetLogCallback; |
|
property TextureOffset: single read GetTextureOffset; |
function CreateBitmapTexture: TAd2DBitmapTexture; virtual; abstract; |
|
Creates and returns a TAd2DBitmapTexture |
function CreateRenderTargetTexture: TAd2dRenderTargetTexture; virtual; abstract; |
|
Creates and returns a TAd2dRenderTargetTexture |
function CreateMesh: TAd2DMesh; virtual; abstract; |
|
Creates and returns a TAd2DMesh |
function CreatePixelCounter: TAd2dPixelCounter; virtual; abstract; |
|
Creates and returns a TAd2DPixelCounter |
function CreateLight: TAd2dLight; virtual; abstract; |
|
Creates and returns a TAd2dLight |
procedure SetRenderTarget(ATarget:TAd2dRenderTargetTexture); virtual; abstract; |
|
Sets the surface that the graphic system should render on. If ATarget is nil, the graphic system will rendern on its main surface. |
procedure SetProperties(ACount: integer; APProps: PAd2dPropertyValue); virtual; abstract; |
|
Loads "ACount" "TAd2dPropertyValue" properties from the memory specified by "APProps". |
procedure SetOptions(AOptions: TAd2dOptions); virtual; abstract; |
|
Applies the options specified in "AOptions" to the graphic system. |
procedure SetStencilOptions(AReference, AMask: Word; AFunction: TAd2dStencilFunction); virtual; abstract; |
|
Use this method to setup the stencil buffer. |
procedure SetStencilEvent(AEvent: TAd2dStencilEvent; AOperation: TAd2dStencilOperation); virtual; abstract; |
|
Using this function you can assign operations to the stencil buffer operations. |
function Initialize(AWnd:TAdWindowFramework):boolean; virtual; abstract; |
|
Initializes the engine. AWnd is the handle to the window. |
procedure Finalize; virtual; abstract; |
|
Finalizes the engine. |
procedure ClearSurface(ARect: TAdRect; ALayers: TAd2dSurfaceLayers; AColor: TAndorraColor; AZValue: double; AStencilValue: integer); virtual; abstract; |
|
Clears the active surface. You can specify which layers and which rectangular region of the surface should be cleared. The coordinats are absolute. |
procedure BeginScene; virtual; abstract; |
|
Should be called after clearing the surface and before drawing on it. |
procedure EndScene; virtual; abstract; |
|
Should be called after drawing on the surface and before flipping it. |
procedure Flip; virtual; abstract; |
|
Flips front and back buffer - presents the scene on the screen. |
procedure Setup3DScene(AWidth, AHeight:integer; APos, ADir, AUp:TAdVector3; ANearZ, AFarZ: double); virtual; abstract; |
|
Prepares a 3D view and a perspective projection matrix. Setting the coordinate systems is usually done by the TAdScene object. Every Andorra surface (e.g. TAdDraw) owns a instance of TAdScene. |
procedure SetupManualScene(AMatView, AMatProj:TAdMatrix); virtual; abstract; |
|
Gives the possibility to setup the coordinate system manualy. Using this method to store own matrices may not work correctly. Only set matrices that were created by the "GetScene" function. See also
|
procedure GetScene(out AMatView:TAdMatrix; out AMatProj:TAdMatrix); virtual; abstract; |
|
Returns the current view and projection matrix. See also
|
function SupportsWindowFramework(AClassId:ShortString):boolean; virtual; abstract; |
|
Returns whether the given windowframework is supported. |
procedure Log(AModule: PChar; ASeverity: TAd2dLogSeverity; AMsg: PChar); |
|
This procedure can be used to add a log message. If the log message callback is not equal to nil, it is called an the parameters are passed. |
property Width: integer read FWidth; |
|
Returns the width of the active surface |
property Height: integer read FHeight; |
|
Returns the height of the active surface |
property MaxLights: integer read FMaxLightCount; |
|
Returns the number of max lights |
property Viewport: TAdRect read FViewPort write SetViewPort; |
|
The rectangle where the output is made |
property AmbientColor: TAndorraColor read FAmbientColor write SetAmbientColor; |
|
The scene ambient color |
property LogCallback: TAd2dLogCallback read FLogCallback write SetLogCallback; |
|
Callback used to log log messages from the plugin in the host application. |
property TextureOffset: single read GetTextureOffset; |
|