Class TAdShaderSystem

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TAdShaderSystem = class(TObject)

Description

Andorra 2D's main shader system class. This class wraps around the the TAd2dShaderSystem class, that is returned by the Andorra 2D graphic plugin. TAdShaderSystem ensures that a new instance of TAd2dShaderSystem is created when the plugin changes. Initialisation and Finalisation routines of TAd2dShaderSystem are automatically called.
Please notice that every shader system is able to handle a single shader system only. Every attempt to compile a new shader using another language will be rejected.

Hierarchy

Overview

Methods

Public constructor Create(ADraw: TAdDraw);
Public destructor Destroy; override;

Properties

Public property ShaderSystem: TAd2dShaderSystem read FSystem;
Public property Initialized: boolean read GetInitialized;
Public property AdDraw: TAdDraw read FDraw;

Description

Methods

Public constructor Create(ADraw: TAdDraw);

Creates an instance of TAdShaderSystem. Automatically registers in the TAdDraw surface events. The shader system is initialized parallel to TAdDraw.

See also
TAdDraw
This is the main class for using Andorra 2D.
Public destructor Destroy; override;

Destroys the instance of TAdShaderSystem. Unregisters itself from the parent TAdDraw.

Properties

Public property ShaderSystem: TAd2dShaderSystem read FSystem;

Pointer on the internal shader system. It is not recomended to use it directly. For instance, to create your own shader object use the abstracted TAdShader class.

See also
TAd2dShaderSystem
A abstract shader generating class that is exchanged between the graphic plugin and the host application.
Public property Initialized: boolean read GetInitialized;

Returns whether the shader system is actually initializied. Initialization is done automatically parallel to the parent TAdDraw of the shader system.

Public property AdDraw: TAdDraw read FDraw;

Pointer on the parent TAdDraw.

SourceForge.net Logo


Generated by PasDoc 0.11.0 on 2008-12-31 14:32:00