| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495 |
- object FormCgSimple: TFormCgSimple
- Left = 202
- Top = 112
- Caption = 'Cg Simple Shader'
- ClientHeight = 440
- ClientWidth = 751
- Color = clBtnFace
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clWindowText
- Font.Height = -11
- Font.Name = 'MS Sans Serif'
- Font.Style = []
- KeyPreview = True
- Position = poScreenCenter
- OnCreate = FormCreate
- OnKeyPress = FormKeyPress
- OnMouseWheel = FormMouseWheel
- TextHeight = 13
- object Splitter1: TSplitter
- Left = 369
- Top = 0
- Height = 440
- Color = clBtnShadow
- ParentColor = False
- end
- object Panel1: TPanel
- Left = 0
- Top = 0
- Width = 369
- Height = 440
- Align = alLeft
- BevelInner = bvRaised
- BevelOuter = bvLowered
- TabOrder = 0
- object PageControl1: TPageControl
- Left = 2
- Top = 2
- Width = 365
- Height = 436
- ActivePage = TabSheet2
- Align = alClient
- Font.Charset = ANSI_CHARSET
- Font.Color = clWindowText
- Font.Height = -11
- Font.Name = 'Tahoma'
- Font.Style = []
- ParentFont = False
- TabOrder = 0
- object TabSheet1: TTabSheet
- Caption = 'Vertex Program'
- object Splitter3: TSplitter
- Left = 0
- Top = 301
- Width = 357
- Height = 3
- Cursor = crVSplit
- Align = alBottom
- Color = clBtnShadow
- ParentColor = False
- end
- object Panel2: TPanel
- Left = 0
- Top = 0
- Width = 357
- Height = 25
- Align = alTop
- BevelOuter = bvNone
- TabOrder = 0
- object LabelVertProfile: TLabel
- Left = 88
- Top = 5
- Width = 63
- Height = 13
- Caption = 'Using profile:'
- end
- object CBVertexProgram: TCheckBox
- Left = 6
- Top = 4
- Width = 59
- Height = 17
- Caption = 'Enabled'
- Font.Charset = ANSI_CHARSET
- Font.Color = clWindowText
- Font.Height = -11
- Font.Name = 'Tahoma'
- Font.Style = []
- ParentFont = False
- TabOrder = 0
- OnClick = CBVertexProgramClick
- end
- end
- object Panel11: TPanel
- Left = 0
- Top = 25
- Width = 357
- Height = 276
- Align = alClient
- Caption = 'Panel6'
- TabOrder = 1
- object Panel12: TPanel
- Left = 1
- Top = 1
- Width = 355
- Height = 16
- Align = alTop
- BevelOuter = bvNone
- Caption = 'Shader Code'
- Color = clBtnHighlight
- TabOrder = 0
- end
- object MemoVertCode: TMemo
- Left = 1
- Top = 17
- Width = 355
- Height = 233
- Align = alClient
- Font.Charset = ANSI_CHARSET
- Font.Color = clWindowText
- Font.Height = -11
- Font.Name = 'Courier New'
- Font.Style = []
- ParentFont = False
- ScrollBars = ssBoth
- TabOrder = 1
- WordWrap = False
- OnChange = MemoVertCodeChange
- end
- object Panel13: TPanel
- Left = 1
- Top = 250
- Width = 355
- Height = 25
- Align = alBottom
- BevelOuter = bvNone
- TabOrder = 2
- DesignSize = (
- 355
- 25)
- object ButtonApplyVP: TButton
- Left = 282
- Top = 2
- Width = 68
- Height = 20
- Anchors = [akTop, akRight]
- Caption = 'Apply'
- Enabled = False
- TabOrder = 0
- OnClick = ButtonApplyVPClick
- end
- end
- end
- object Panel5: TPanel
- Left = 0
- Top = 304
- Width = 357
- Height = 104
- Align = alBottom
- TabOrder = 2
- ExplicitTop = 307
- ExplicitWidth = 359
- DesignSize = (
- 357
- 104)
- object Label2: TLabel
- Left = 284
- Top = 5
- Width = 30
- Height = 13
- Anchors = [akTop, akRight]
- Caption = 'Show:'
- ExplicitLeft = 286
- end
- object Memo1: TMemo
- Left = 1
- Top = 1
- Width = 272
- Height = 102
- Align = alLeft
- Anchors = [akLeft, akTop, akRight, akBottom]
- Color = clBtnFace
- Font.Charset = ANSI_CHARSET
- Font.Color = clWindowText
- Font.Height = -11
- Font.Name = 'Courier New'
- Font.Style = []
- ParentFont = False
- ReadOnly = True
- ScrollBars = ssBoth
- TabOrder = 0
- WordWrap = False
- ExplicitWidth = 274
- end
- object Button1: TButton
- Left = 283
- Top = 21
- Width = 64
- Height = 18
- Anchors = [akTop, akRight]
- Caption = 'Params'
- TabOrder = 1
- OnClick = Button1Click
- ExplicitLeft = 285
- end
- object Button4: TButton
- Left = 283
- Top = 42
- Width = 64
- Height = 18
- Anchors = [akTop, akRight]
- Caption = 'Asm'
- TabOrder = 2
- OnClick = Button4Click
- ExplicitLeft = 285
- end
- end
- end
- object TabSheet2: TTabSheet
- Caption = 'Fragment Program'
- ImageIndex = 1
- object Splitter2: TSplitter
- Left = 0
- Top = 301
- Width = 357
- Height = 3
- Cursor = crVSplit
- Align = alBottom
- Color = clBtnShadow
- ParentColor = False
- ExplicitTop = 304
- ExplicitWidth = 359
- end
- object Panel4: TPanel
- Left = 0
- Top = 0
- Width = 357
- Height = 25
- Align = alTop
- BevelOuter = bvNone
- TabOrder = 0
- object LabelFragProfile: TLabel
- Left = 88
- Top = 5
- Width = 63
- Height = 13
- Caption = 'Using profile:'
- end
- object CBFragmentProgram: TCheckBox
- Left = 6
- Top = 4
- Width = 67
- Height = 17
- Caption = 'Enabled'
- TabOrder = 0
- OnClick = CBFragmentProgramClick
- end
- end
- object Panel6: TPanel
- Left = 0
- Top = 25
- Width = 357
- Height = 276
- Align = alClient
- Caption = 'Panel6'
- TabOrder = 1
- object Panel7: TPanel
- Left = 1
- Top = 1
- Width = 355
- Height = 16
- Align = alTop
- BevelOuter = bvNone
- Caption = 'Shader Code'
- Color = clBtnHighlight
- TabOrder = 0
- end
- object MemoFragCode: TMemo
- Left = 1
- Top = 17
- Width = 355
- Height = 234
- Align = alClient
- Font.Charset = ANSI_CHARSET
- Font.Color = clWindowText
- Font.Height = -11
- Font.Name = 'Courier New'
- Font.Style = []
- ParentFont = False
- ScrollBars = ssBoth
- TabOrder = 1
- WordWrap = False
- OnChange = MemoFragCodeChange
- end
- object Panel3: TPanel
- Left = 1
- Top = 251
- Width = 355
- Height = 24
- Align = alBottom
- BevelOuter = bvNone
- TabOrder = 2
- DesignSize = (
- 355
- 24)
- object ButtonApplyFP: TButton
- Left = 279
- Top = 2
- Width = 68
- Height = 20
- Anchors = [akTop, akRight]
- Caption = 'Apply'
- Enabled = False
- TabOrder = 0
- OnClick = ButtonApplyFPClick
- end
- end
- end
- object Panel8: TPanel
- Left = 0
- Top = 304
- Width = 357
- Height = 104
- Align = alBottom
- TabOrder = 2
- DesignSize = (
- 357
- 104)
- object Label1: TLabel
- Left = 284
- Top = 5
- Width = 30
- Height = 13
- Anchors = [akTop, akRight]
- Caption = 'Show:'
- ExplicitLeft = 286
- end
- object Memo3: TMemo
- Left = 1
- Top = 1
- Width = 272
- Height = 102
- Align = alLeft
- Anchors = [akLeft, akTop, akRight, akBottom]
- Color = clBtnFace
- Font.Charset = ANSI_CHARSET
- Font.Color = clWindowText
- Font.Height = -11
- Font.Name = 'Courier New'
- Font.Style = []
- ParentFont = False
- ReadOnly = True
- ScrollBars = ssBoth
- TabOrder = 0
- WordWrap = False
- end
- object Button2: TButton
- Left = 283
- Top = 21
- Width = 64
- Height = 18
- Anchors = [akTop, akRight]
- Caption = 'Params'
- TabOrder = 1
- OnClick = Button2Click
- end
- object Button3: TButton
- Left = 283
- Top = 42
- Width = 64
- Height = 18
- Anchors = [akTop, akRight]
- Caption = 'Asm'
- TabOrder = 2
- OnClick = Button3Click
- end
- end
- end
- end
- end
- object Panel9: TPanel
- Left = 372
- Top = 0
- Width = 379
- Height = 440
- Align = alClient
- Font.Charset = ANSI_CHARSET
- Font.Color = clWindowText
- Font.Height = -19
- Font.Name = 'Tahoma'
- Font.Style = [fsBold]
- ParentFont = False
- TabOrder = 1
- object PanelFPS: TPanel
- Left = 1
- Top = 1
- Width = 377
- Height = 48
- Align = alTop
- Caption = 'FPS'
- Font.Charset = ANSI_CHARSET
- Font.Color = clWindowText
- Font.Height = -19
- Font.Name = 'Trebuchet MS'
- Font.Style = []
- ParentFont = False
- TabOrder = 0
- end
- object GLSceneViewer1: TGLSceneViewer
- Left = 1
- Top = 49
- Width = 377
- Height = 390
- Camera = GLCamera1
- Buffer.AntiAliasing = aa4x
- FieldOfView = 150.288558959960900000
- PenAsTouch = False
- Align = alClient
- OnMouseDown = GLSceneViewer1MouseDown
- OnMouseMove = GLSceneViewer1MouseMove
- TabOrder = 1
- end
- end
- object GLScene1: TGLScene
- Left = 40
- Top = 80
- object GLLightSource1: TGLLightSource
- Ambient.Color = {0000803F0000803F0000803F0000803F}
- ConstAttenuation = 1.000000000000000000
- Position.Coordinates = {0000000000002041000000000000803F}
- LightStyle = lsOmni
- Specular.Color = {0000803F0000803F0000803F0000803F}
- SpotCutOff = 180.000000000000000000
- end
- object GLFreeForm1: TGLFreeForm
- Material.MaterialLibrary = GLMaterialLibrary1
- Material.LibMaterialName = 'LibMaterial'
- Direction.Coordinates = {000000000000803F0000000000000000}
- Scale.Coordinates = {8FC2F53C8FC2F53C8FC2F53C00000000}
- Up.Coordinates = {0000000000000000000080BF00000000}
- AutoCentering = [macCenterX, macCenterY]
- end
- object GLXYZGrid1: TGLXYZGrid
- XSamplingScale.Min = -2.000000000000000000
- XSamplingScale.Max = 2.000000000000000000
- XSamplingScale.Step = 0.100000001490116100
- YSamplingScale.Step = 0.100000001490116100
- ZSamplingScale.Min = -2.000000000000000000
- ZSamplingScale.Max = 2.000000000000000000
- ZSamplingScale.Step = 0.100000001490116100
- Parts = [gpX, gpZ]
- end
- object GLDummyCube1: TGLDummyCube
- Position.Coordinates = {000000003333333F000000000000803F}
- CubeSize = 1.000000000000000000
- end
- object GLCamera1: TGLCamera
- DepthOfView = 100.000000000000000000
- FocalLength = 50.000000000000000000
- TargetObject = GLDummyCube1
- CameraStyle = csInfinitePerspective
- Position.Coordinates = {0000004000004040000080400000803F}
- end
- end
- object GLMaterialLibrary1: TGLMaterialLibrary
- Materials = <
- item
- Name = 'LibMaterial'
- Tag = 0
- Material.FrontProperties.Ambient.Color = {8988083E00000000000000000000803F}
- Material.FrontProperties.Diffuse.Color = {DBDADA3ED5D4543EA1A0A03D0000803F}
- Material.FrontProperties.Shininess = 128
- Material.FrontProperties.Specular.Color = {EDEC6C3EDDDC5C3ED5D4543E0000803F}
- Shader = CgShader1
- end>
- Left = 40
- Top = 136
- end
- object GLCadencer1: TGLCadencer
- Scene = GLScene1
- OnProgress = GLCadencer1Progress
- Left = 112
- Top = 80
- end
- object CgShader1: TCgShader
- VertexProgram.OnApply = CgShader1ApplyVP
- OnApplyVP = CgShader1ApplyVP
- OnInitialize = CgShader1Initialize
- Left = 184
- Top = 80
- end
- object Timer1: TTimer
- OnTimer = Timer1Timer
- Left = 260
- Top = 80
- end
- end
|