1
unit LUX.GPU.OpenGL.Matery.Textur.Preset;
3
interface //#################################################################### ■
5
uses Winapi.OpenGL, Winapi.OpenGLext,
8
LUX.GPU.OpenGL.Atom.Textur,
9
LUX.GPU.OpenGL.Atom.Textur.D2.Preset,
10
LUX.GPU.OpenGL.Matery;
12
type //$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$【型】
14
//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$【レコード】
16
//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$【クラス】
18
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TGLMateryImag
20
IGLMateryImag = interface( IGLMatery )
21
['{426B4B0E-FDA1-44B2-9B2A-0B7371E2E7D0}']
24
function GetTextur :TGLCelTex2D_TAlphaColorF;
27
property Textur :TGLCelTex2D_TAlphaColorF read GetTextur;
30
//-------------------------------------------------------------------------
32
TGLMateryImag = class( TGLMateryNorTex, IGLMateryImag )
35
_Textur :TGLCelTex2D_TAlphaColorF;
37
function GetTextur :TGLCelTex2D_TAlphaColorF;
40
destructor Destroy; override;
42
property Textur :TGLCelTex2D_TAlphaColorF read GetTextur;
44
procedure Use; override;
45
procedure Unuse; override;
48
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TGLMateryImagG
50
IGLMateryImagG = interface( IGLMatery )
51
['{A3108C6C-0E37-467C-94DF-F99E30B528FA}']
54
function GetTextur :TGLCelTex2D_TAlphaColorF;
57
property Textur :TGLCelTex2D_TAlphaColorF read GetTextur;
60
//-------------------------------------------------------------------------
62
TGLMateryImagG = class( TGLMateryNorTexG, IGLMateryImagG )
65
_Textur :TGLCelTex2D_TAlphaColorF;
67
function GetTextur :TGLCelTex2D_TAlphaColorF;
70
destructor Destroy; override;
72
property Textur :TGLCelTex2D_TAlphaColorF read GetTextur;
74
procedure Use; override;
75
procedure Unuse; override;
78
//const //$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$【定数】
80
//var //$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$【変数】
82
//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$【ルーチン】
84
implementation //############################################################### ■
86
//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$【レコード】
88
//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$【クラス】
90
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TGLMateryImag
92
//&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& private
94
//&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& protected
96
/////////////////////////////////////////////////////////////////////// アクセス
98
function TGLMateryImag.GetTextur :TGLCelTex2D_TAlphaColorF;
103
//&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& public
105
constructor TGLMateryImag.Create;
113
Add( 0{BinP}, '_Textur'{Name} );
117
_Textur := TGLCelTex2D_TAlphaColorF.Create;
120
destructor TGLMateryImag.Destroy;
127
/////////////////////////////////////////////////////////////////////// メソッド
129
procedure TGLMateryImag.Use;
136
procedure TGLMateryImag.Unuse;
143
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TGLMateryImagG
145
//&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& private
147
//&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& protected
149
/////////////////////////////////////////////////////////////////////// アクセス
151
function TGLMateryImagG.GetTextur :TGLCelTex2D_TAlphaColorF;
156
//&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& public
158
constructor TGLMateryImagG.Create;
166
Add( 0{BinP}, '_Textur'{Name} );
170
_Textur := TGLCelTex2D_TAlphaColorF.Create;
173
destructor TGLMateryImagG.Destroy;
180
/////////////////////////////////////////////////////////////////////// メソッド
182
procedure TGLMateryImagG.Use;
189
procedure TGLMateryImagG.Unuse;
196
//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$【ルーチン】
198
//############################################################################## □
200
initialization //$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ 初期化
202
finalization //$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ 最終化
204
end. //######################################################################### ■