-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTHREEDVIEW.PAS
53 lines (43 loc) · 971 Bytes
/
THREEDVIEW.PAS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
unit ThreeDView;
{This unit the form for 3D Viewing of JK level}
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
ExtCtrls, GL, GLU, StdCtrls, ComCtrls, Buttons, tmp_load3do, J_Level;
Const
id_translate=0;
id_rotate=1;
id_Vertical=0;
id_Horizontal=1;
type
TMDI_3DView = class(TForm)
BNUp: TBitBtn;
BNDown: TBitBtn;
BNRight: TBitBtn;
BNLeft: TBitBtn;
CBWhatMove: TComboBox;
CBAxis: TComboBox;
procedure FormShow(Sender: TObject);
private
hdc: HDC;
hglc:HGLRC;
The3DO:T3DO;
SelectedTriangle:integer;
pixelFormat:Integer;
pfd : TPIXELFORMATDESCRIPTOR;
ArrowsRotate:boolean;
AxisVertical:boolean;
{ Private declarations }
public
{ Public declarations }
end;
var
MDI_3DView: TMDI_3DView;
implementation
{$R *.DFM}
procedure TMDI_3DView.FormShow(Sender: TObject);
var Jkl:TJKLevel;
begin
JKL.LoadFromJKL('a.jkl');
end;
end.