Description | Hierarchy | Fields | Methods | Properties |
type TAdRenderingSurface = class(TAdSurface)
A basic, abstract surface class that extends TAdSurface and adds its own canvas and scene object.
constructor Create(ADraw:TAdDraw); override; |
|
destructor Destroy; override; |
|
procedure ClearSurface(AColor: LongInt); overload; virtual; |
|
procedure ClearSurface(AColor: TAndorraColor); overload; virtual; |
|
procedure Setup2DScene; |
property Canvas: TAdCanvas read FCanvas; |
|
property Scene: TAdScene read FScene; |
|
property Options: TAd2dOptions read FOptions write SetOptions; |
|
property DisplayRect: TAdRect read GetDisplayRect; |
|
property Width: integer read GetWidth; |
|
property Height: integer read GetHeight; |
constructor Create(ADraw:TAdDraw); override; |
|
Creates an instance of TAdRenderingSurface. Remember that TAdRenderingSurface is an abstract class, that should not be created directly. Use TAdDraw or TAdTextureSurface instead. |
destructor Destroy; override; |
|
Destroys the instance of TAdRenderingSurface. |
procedure ClearSurface(AColor: TAndorraColor); overload; virtual; |
|
Clears the surface using a 32 Andorra color value. You may use the color constants from the unit AdConsts or the Ad_ARGB function. If your using a transparent value when clearing a rendering surface, the surface is filled with that transparent color so that you may draw it over other objects. This function clears the color buffer, the stencil buffer (clear value 0) and the Z-Buffer (clear value 1). |
property Canvas: TAdCanvas read FCanvas; |
|
A hardware accelerated canvas. All drawing operations will automatically be made on the owner of the canvas property. |
property Scene: TAdScene read FScene; |
|
This is the place where the scene settings for the surface are made. See also
|
property Options: TAd2dOptions read FOptions write SetOptions; |
|
Options that control the rendering process. When TAdRenderingSurface is created, the options are copied from the parent TAdDraw. |
property DisplayRect: TAdRect read GetDisplayRect; |
|
DisplayRect returns the size of the current szene. Those coordinates are relative. |
property Width: integer read GetWidth; |
|
The width of the surface in pixels. Absolute coordinates. Use the scene property to get the relative width of the surface. |
property Height: integer read GetHeight; |
|
The height of the surface in pixels. Absolure coordinates. Use the scene property to get the relative height of the surface. |