unit1.dfm
来自「delphi 最好的3D控件GLScene_Demos」· DFM 代码 · 共 221 行
DFM
221 行
object Form1: TForm1
Left = 155
Top = 121
Align = alClient
BorderStyle = bsNone
Caption = 'Form1'
ClientHeight = 405
ClientWidth = 603
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
OldCreateOrder = False
OnCreate = FormCreate
OnKeyPress = FormKeyPress
PixelsPerInch = 96
TextHeight = 13
object GLSceneViewer1: TGLSceneViewer
Left = 0
Top = 0
Width = 603
Height = 405
Camera = GLCamera1
BeforeRender = GLSceneViewer1BeforeRender
Buffer.FogEnvironment.FogColor.Color = {0000803F0000803F0000803F0000803F}
Buffer.FogEnvironment.FogStart = 200
Buffer.FogEnvironment.FogEnd = 650
Buffer.FogEnvironment.FogDistance = fdEyeRadial
Buffer.BackgroundColor = clGray
Buffer.FogEnable = True
Buffer.Lighting = False
Align = alClient
OnMouseDown = GLSceneViewer1MouseDown
OnMouseMove = GLSceneViewer1MouseMove
end
object GLBitmapHDS1: TGLBitmapHDS
MaxPoolSize = 0
Left = 56
Top = 16
end
object GLScene1: TGLScene
ObjectsSorting = osNone
Left = 56
Top = 56
object SkyDome1: TGLSkyDome
Direction.Coordinates = {000000000000803F2EBD3BB300000000}
Up.Coordinates = {000000002EBD3BB3000080BF00000000}
Bands = <
item
StartAngle = -5
StartColor.Color = {0000803F0000803F0000803F0000803F}
StopAngle = 25
Slices = 9
end
item
StartAngle = 25
StopAngle = 90
StopColor.Color = {938C0C3E938C0C3E938E0E3F0000803F}
Slices = 9
Stacks = 4
end>
Stars = <>
Options = [sdoTwinkle]
object SPMoon: TGLSprite
Position.Coordinates = {00000C430000C842000096420000803F}
Visible = False
Material.FrontProperties.Ambient.Color = {0000000000000000000000000000803F}
Material.FrontProperties.Diffuse.Color = {0000000000000000000000000000803F}
Material.FrontProperties.Emission.Color = {0000803F0000803F0000803F0000803F}
Material.BlendingMode = bmTransparency
Material.MaterialOptions = [moIgnoreFog]
Material.Texture.ImageAlpha = tiaSuperBlackTransparent
Material.Texture.TextureMode = tmReplace
Material.Texture.Compression = tcNone
Material.Texture.Disabled = False
Width = 30
Height = 30
NoZWrite = True
MirrorU = False
MirrorV = False
end
object SPSun: TGLSprite
Position.Coordinates = {00000C430000C842000096420000803F}
Material.FrontProperties.Ambient.Color = {0000000000000000000000000000803F}
Material.FrontProperties.Diffuse.Color = {0000000000000000000000000000803F}
Material.BlendingMode = bmAdditive
Material.MaterialOptions = [moIgnoreFog]
Material.Texture.TextureMode = tmReplace
Material.Texture.TextureFormat = tfLuminance
Material.Texture.Compression = tcNone
Material.Texture.Disabled = False
Width = 60
Height = 60
NoZWrite = True
MirrorU = False
MirrorV = False
end
end
object DummyCube1: TGLDummyCube
Position.Coordinates = {0000000000000041000000000000803F}
CubeSize = 1
object GLCamera1: TGLCamera
DepthOfView = 650
FocalLength = 50
TargetObject = DummyCube1
Position.Coordinates = {0000A040000020410000C8410000803F}
Left = 264
Top = 160
end
end
object TerrainRenderer1: TGLTerrainRenderer
Direction.Coordinates = {000000000000803F0000000000000000}
Scale.Coordinates = {00008040000080400000803E00000000}
Up.Coordinates = {00000000000000000000803F00000000}
Material.MaterialLibrary = GLMaterialLibrary1
Material.LibMaterialName = 'ground'
HeightDataSource = GLBitmapHDS1
TileSize = 32
TilesPerTexture = 1
QualityDistance = 150
end
object HUDText1: TGLHUDText
Position.Coordinates = {000096420000C841000000000000803F}
BitmapFont = BitmapFont1
Alignment = taLeftJustify
Layout = tlTop
end
object DCSound: TGLDummyCube
CubeSize = 1
end
object GLLensFlare: TGLLensFlare
Size = 100
Seed = 978
Position.Coordinates = {9A620252C9B28B51B743BAD10000803F}
Visible = False
object GLDummyCube1: TGLDummyCube
CubeSize = 100
VisibleAtRunTime = True
end
end
end
object Timer1: TTimer
OnTimer = Timer1Timer
Left = 56
Top = 96
end
object GLCadencer1: TGLCadencer
Scene = GLScene1
OnProgress = GLCadencer1Progress
Left = 16
Top = 16
end
object GLMaterialLibrary1: TGLMaterialLibrary
Materials = <
item
Name = 'ground'
Material.FrontProperties.Ambient.Color = {0000000000000000000000000000803F}
Material.FrontProperties.Diffuse.Color = {0000000000000000000000000000803F}
Material.FrontProperties.Emission.Color = {9A99993E9A99993E9A99993E0000803F}
Material.Texture.TextureMode = tmReplace
Material.Texture.Compression = tcStandard
Material.Texture.MappingTCoordinates.Coordinates = {000000000000803F0000000000000000}
Material.Texture.Disabled = False
Tag = 0
Texture2Name = 'details'
end
item
Name = 'details'
Material.Texture.TextureMode = tmModulate
Material.Texture.TextureFormat = tfLuminance
Material.Texture.Compression = tcStandard
Material.Texture.MappingTCoordinates.Coordinates = {000000000000803F0000000000000000}
Material.Texture.Disabled = False
Tag = 0
TextureScale.Coordinates = {00000043000000430000004300000000}
end>
Left = 16
Top = 56
end
object BitmapFont1: TGLBitmapFont
GlyphsIntervalX = 1
GlyphsIntervalY = 1
Ranges = <
item
StartASCII = ' '
StopASCII = 'Z'
StartGlyphIdx = 0
end>
CharWidth = 30
CharHeight = 30
Left = 16
Top = 96
end
object GLSMBASS1: TGLSMBASS
Active = True
MaxChannels = 32
MasterVolume = 1
Listener = GLCamera1
Sources = <>
Cadencer = GLCadencer1
Environment = seForest
Algorithm3D = algFull
Left = 96
Top = 16
Doppler = 0
end
object TISound: TTimer
Interval = 3000
OnTimer = TISoundTimer
Left = 16
Top = 136
end
object GLSoundLibrary: TGLSoundLibrary
Samples = <>
Left = 96
Top = 56
end
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?