Class TBGLShader3D

Unit

Declaration

type TBGLShader3D = class(TBGLCustomShader)

Description

Shader for 3D polygons

Hierarchy

Overview

Fields

Protected FCanvas: TBGLCustomCanvas;
Protected FFragmentShader: LongWord;
Protected FFragmentShaderSource: string;
Protected FLighting: TBGLCustomLighting;
Protected FProgram: LongWord;
Protected FUsed: boolean;
Protected FVertexShader: LongWord;
Protected FVertexShaderSource: string;

Methods

Public constructor Create(ACanvas: TBGLCustomCanvas; AVertexShaderSource: string; AFragmentShaderSource: string; AVaryingVariables: string = ''; AVersion: string = '120');
Public destructor Destroy; override;
Protected function GetAttributeVariableInteger(AName: string): TAttributeVariableInteger;
Protected function GetAttributeVariablePoint(AName: string): TAttributeVariablePoint;
Protected function GetAttributeVariablePoint3D(AName: string): TAttributeVariablePoint3D;
Protected function GetAttributeVariablePointF(AName: string): TAttributeVariablePointF;
Protected function GetAttributeVariableSingle(AName: string): TAttributeVariableSingle;
Protected function GetUniformVariableInteger(AName: string): TUniformVariableInteger;
Protected function GetUniformVariableMatrix4D(AName: string): TUniformVariableMatrix4D;
Protected function GetUniformVariablePoint(AName: string): TUniformVariablePoint;
Protected function GetUniformVariablePoint3D(AName: string): TUniformVariablePoint3D;
Protected function GetUniformVariablePointF(AName: string): TUniformVariablePointF;
Protected function GetUniformVariableSingle(AName: string): TUniformVariableSingle;
Protected procedure CheckUsage(AUsing: boolean);
Protected procedure EndUse; override;
Protected procedure SetUniformInteger(AVariable: LongWord; const AValue; AElementCount: integer; AComponentCount: integer);
Protected procedure SetUniformSingle(AVariable: LongWord; const AValue; AElementCount: integer; AComponentCount: integer);
Protected procedure StartUse; override;

Properties

Public property AttributeInteger[AName: string]: TAttributeVariableInteger read GetAttributeVariableInteger;
Public property AttributePoint[AName: string]: TAttributeVariablePoint read GetAttributeVariablePoint;
Public property AttributePoint3D[AName: string]: TAttributeVariablePoint3D read GetAttributeVariablePoint3D;
Public property AttributePointF[AName: string]: TAttributeVariablePointF read GetAttributeVariablePointF;
Public property AttributeSingle[AName: string]: TAttributeVariableSingle read GetAttributeVariableSingle;
Protected property Canvas: TBGLCustomCanvas read FCanvas;
Public property IsUsed: boolean read FUsed;
Public property UniformInteger[AName: string]: TUniformVariableInteger read GetUniformVariableInteger;
Public property UniformMatrix4D[AName: string]: TUniformVariableMatrix4D read GetUniformVariableMatrix4D;
Public property UniformPoint[AName: string]: TUniformVariablePoint read GetUniformVariablePoint;
Public property UniformPoint3D[AName: string]: TUniformVariablePoint3D read GetUniformVariablePoint3D;
Public property UniformPointF[AName: string]: TUniformVariablePointF read GetUniformVariablePointF;
Public property UniformSingle[AName: string]: TUniformVariableSingle read GetUniformVariableSingle;

Description

Fields

Protected FCanvas: TBGLCustomCanvas;

This item has no description.

Protected FFragmentShader: LongWord;

This item has no description.

Protected FFragmentShaderSource: string;

This item has no description.

Protected FLighting: TBGLCustomLighting;

This item has no description.

Protected FProgram: LongWord;

This item has no description.

Protected FUsed: boolean;

This item has no description.

Protected FVertexShader: LongWord;

This item has no description.

Protected FVertexShaderSource: string;

This item has no description.

Methods

Public constructor Create(ACanvas: TBGLCustomCanvas; AVertexShaderSource: string; AFragmentShaderSource: string; AVaryingVariables: string = ''; AVersion: string = '120');

This item has no description.

Public destructor Destroy; override;

This item has no description.

Protected function GetAttributeVariableInteger(AName: string): TAttributeVariableInteger;

This item has no description.

Protected function GetAttributeVariablePoint(AName: string): TAttributeVariablePoint;

This item has no description.

Protected function GetAttributeVariablePoint3D(AName: string): TAttributeVariablePoint3D;

This item has no description.

Protected function GetAttributeVariablePointF(AName: string): TAttributeVariablePointF;

This item has no description.

Protected function GetAttributeVariableSingle(AName: string): TAttributeVariableSingle;

This item has no description.

Protected function GetUniformVariableInteger(AName: string): TUniformVariableInteger;

This item has no description.

Protected function GetUniformVariableMatrix4D(AName: string): TUniformVariableMatrix4D;

This item has no description.

Protected function GetUniformVariablePoint(AName: string): TUniformVariablePoint;

This item has no description.

Protected function GetUniformVariablePoint3D(AName: string): TUniformVariablePoint3D;

This item has no description.

Protected function GetUniformVariablePointF(AName: string): TUniformVariablePointF;

This item has no description.

Protected function GetUniformVariableSingle(AName: string): TUniformVariableSingle;

This item has no description.

Protected procedure CheckUsage(AUsing: boolean);

This item has no description.

Protected procedure EndUse; override;

This item has no description.

Protected procedure SetUniformInteger(AVariable: LongWord; const AValue; AElementCount: integer; AComponentCount: integer);

This item has no description.

Protected procedure SetUniformSingle(AVariable: LongWord; const AValue; AElementCount: integer; AComponentCount: integer);

This item has no description.

Protected procedure StartUse; override;

This item has no description.

Properties

Public property AttributeInteger[AName: string]: TAttributeVariableInteger read GetAttributeVariableInteger;

This item has no description.

Public property AttributePoint[AName: string]: TAttributeVariablePoint read GetAttributeVariablePoint;

This item has no description.

Public property AttributePoint3D[AName: string]: TAttributeVariablePoint3D read GetAttributeVariablePoint3D;

This item has no description.

Public property AttributePointF[AName: string]: TAttributeVariablePointF read GetAttributeVariablePointF;

This item has no description.

Public property AttributeSingle[AName: string]: TAttributeVariableSingle read GetAttributeVariableSingle;

This item has no description.

Protected property Canvas: TBGLCustomCanvas read FCanvas;

This item has no description.

Public property IsUsed: boolean read FUsed;

This item has no description.

Public property UniformInteger[AName: string]: TUniformVariableInteger read GetUniformVariableInteger;

This item has no description.

Public property UniformMatrix4D[AName: string]: TUniformVariableMatrix4D read GetUniformVariableMatrix4D;

This item has no description.

Public property UniformPoint[AName: string]: TUniformVariablePoint read GetUniformVariablePoint;

This item has no description.

Public property UniformPoint3D[AName: string]: TUniformVariablePoint3D read GetUniformVariablePoint3D;

This item has no description.

Public property UniformPointF[AName: string]: TUniformVariablePointF read GetUniformVariablePointF;

This item has no description.

Public property UniformSingle[AName: string]: TUniformVariableSingle read GetUniformVariableSingle;

This item has no description.