📄 unit1.dfm
字号:
object Form1: TForm1
Left = 133
Top = 72
Width = 558
Height = 362
Caption = 'Form1'
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
OldCreateOrder = False
OnCreate = FormCreate
PixelsPerInch = 96
TextHeight = 13
object GLSceneViewer: TGLSceneViewer
Left = 0
Top = 0
Width = 448
Height = 333
Camera = GLCamera1
Align = alClient
OnMouseDown = GLSceneViewerMouseDown
OnMouseMove = GLSceneViewerMouseMove
end
object Panel1: TPanel
Left = 448
Top = 0
Width = 102
Height = 333
Align = alRight
BevelOuter = bvLowered
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'Arial'
Font.Style = []
ParentFont = False
TabOrder = 1
object Label1: TLabel
Left = 8
Top = 8
Width = 82
Height = 18
Caption = 'HeightField'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Arial'
Font.Style = [fsBold]
ParentFont = False
end
object Label2: TLabel
Left = 24
Top = 32
Width = 51
Height = 18
Caption = 'picking'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = 'Arial'
Font.Style = [fsBold]
ParentFont = False
end
object Label3: TLabel
Left = 8
Top = 168
Width = 89
Height = 145
AutoSize = False
Caption =
'This demo uses a crude method for heightfield picking based on t' +
'he Z-Buffer. This method can be easily adapted for a variety of ' +
'objects and 2.5D problems.'
WordWrap = True
end
object RBPaint: TRadioButton
Left = 16
Top = 80
Width = 49
Height = 17
Caption = 'Paint'
Checked = True
TabOrder = 0
TabStop = True
end
object RadioButton2: TRadioButton
Left = 16
Top = 112
Width = 57
Height = 17
Caption = 'Rotate'
TabOrder = 1
end
end
object GLScene1: TGLScene
Left = 8
Top = 40
object HeightField: TGLHeightField
Direction.Coordinates = {000000000000803F0000000000000000}
Scale.Coordinates = {9A99193F9A99193F0000003F00000000}
Up.Coordinates = {0000000000000000000080BF00000000}
XSamplingScale.Min = -5.5
XSamplingScale.Max = 5.5
XSamplingScale.Step = 0.200000002980232
YSamplingScale.Min = -5.5
YSamplingScale.Max = 5.5
YSamplingScale.Step = 0.200000002980232
ColorMode = hfcmAmbientAndDiffuse
OnGetHeight = HeightFieldGetHeight
end
object GLLightSource1: TGLLightSource
Ambient.Color = {9A99193E9A99193E9A99193E0000803F}
ConstAttenuation = 1
Diffuse.Color = {9A99593F9A99593F9A99593F0000803F}
Position.Coordinates = {0000E040000070410000A0400000803F}
SpotCutOff = 180
end
object GLCamera1: TGLCamera
DepthOfView = 100
FocalLength = 50
TargetObject = HeightField
Position.Coordinates = {0000A04000008040000040400000803F}
end
end
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -