fcCgTexture.dfm 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784
  1. object Form1: TForm1
  2. Left = 0
  3. Top = 0
  4. Caption = 'Cg Multi Texturing'
  5. ClientHeight = 414
  6. ClientWidth = 842
  7. Color = clBtnFace
  8. Font.Charset = DEFAULT_CHARSET
  9. Font.Color = clWindowText
  10. Font.Height = -11
  11. Font.Name = 'Tahoma'
  12. Font.Style = []
  13. OnCreate = FormCreate
  14. OnKeyPress = FormKeyPress
  15. OnMouseWheel = FormMouseWheel
  16. TextHeight = 13
  17. object Splitter1: TSplitter
  18. Left = 313
  19. Top = 0
  20. Height = 414
  21. Color = clBtnShadow
  22. ParentColor = False
  23. end
  24. object Panel1: TPanel
  25. Left = 0
  26. Top = 0
  27. Width = 313
  28. Height = 414
  29. Align = alLeft
  30. BevelInner = bvRaised
  31. BevelOuter = bvLowered
  32. TabOrder = 0
  33. object PageControl1: TPageControl
  34. Left = 2
  35. Top = 2
  36. Width = 309
  37. Height = 410
  38. ActivePage = TabSheet3
  39. Align = alClient
  40. Font.Charset = ANSI_CHARSET
  41. Font.Color = clWindowText
  42. Font.Height = -11
  43. Font.Name = 'Tahoma'
  44. Font.Style = []
  45. ParentFont = False
  46. TabOrder = 0
  47. object TabSheet1: TTabSheet
  48. Caption = 'Vertex Program'
  49. object Splitter3: TSplitter
  50. Left = 0
  51. Top = 289
  52. Width = 301
  53. Height = 3
  54. Cursor = crVSplit
  55. Align = alBottom
  56. Color = clBtnShadow
  57. ParentColor = False
  58. end
  59. object Panel2: TPanel
  60. Left = 0
  61. Top = 0
  62. Width = 301
  63. Height = 25
  64. Align = alTop
  65. BevelOuter = bvNone
  66. TabOrder = 0
  67. object LabelVertProfile: TLabel
  68. Left = 88
  69. Top = 5
  70. Width = 63
  71. Height = 13
  72. Caption = 'Using profile:'
  73. end
  74. object CBVertexProgram: TCheckBox
  75. Left = 6
  76. Top = 4
  77. Width = 59
  78. Height = 17
  79. Caption = 'Enabled'
  80. Checked = True
  81. Font.Charset = ANSI_CHARSET
  82. Font.Color = clWindowText
  83. Font.Height = -11
  84. Font.Name = 'Tahoma'
  85. Font.Style = []
  86. ParentFont = False
  87. State = cbChecked
  88. TabOrder = 0
  89. OnClick = CBVertexProgramClick
  90. end
  91. end
  92. object Panel11: TPanel
  93. Left = 0
  94. Top = 25
  95. Width = 301
  96. Height = 264
  97. Align = alClient
  98. Caption = 'Panel6'
  99. TabOrder = 1
  100. object Panel12: TPanel
  101. Left = 1
  102. Top = 1
  103. Width = 299
  104. Height = 16
  105. Align = alTop
  106. BevelOuter = bvNone
  107. Caption = 'Shader Code'
  108. Color = clBtnHighlight
  109. TabOrder = 0
  110. end
  111. object MemoVertCode: TMemo
  112. Left = 1
  113. Top = 17
  114. Width = 299
  115. Height = 221
  116. Align = alClient
  117. Font.Charset = ANSI_CHARSET
  118. Font.Color = clWindowText
  119. Font.Height = -11
  120. Font.Name = 'Lucida Console'
  121. Font.Style = []
  122. ParentFont = False
  123. ScrollBars = ssBoth
  124. TabOrder = 1
  125. WordWrap = False
  126. OnChange = MemoVertCodeChange
  127. end
  128. object Panel13: TPanel
  129. Left = 1
  130. Top = 238
  131. Width = 299
  132. Height = 25
  133. Align = alBottom
  134. BevelOuter = bvNone
  135. TabOrder = 2
  136. DesignSize = (
  137. 299
  138. 25)
  139. object ButtonApplyVP: TButton
  140. Left = 230
  141. Top = 2
  142. Width = 67
  143. Height = 20
  144. Anchors = [akTop, akRight]
  145. Caption = 'Apply'
  146. Enabled = False
  147. TabOrder = 0
  148. OnClick = ButtonApplyVPClick
  149. end
  150. end
  151. end
  152. object Panel5: TPanel
  153. Left = 0
  154. Top = 292
  155. Width = 301
  156. Height = 90
  157. Align = alBottom
  158. TabOrder = 2
  159. ExplicitTop = 300
  160. ExplicitWidth = 306
  161. DesignSize = (
  162. 301
  163. 90)
  164. object Label2: TLabel
  165. Left = 228
  166. Top = 5
  167. Width = 30
  168. Height = 13
  169. Anchors = [akTop, akRight]
  170. Caption = 'Show:'
  171. ExplicitLeft = 233
  172. end
  173. object Memo1: TMemo
  174. Left = 1
  175. Top = 1
  176. Width = 216
  177. Height = 88
  178. Align = alLeft
  179. Anchors = [akLeft, akTop, akRight, akBottom]
  180. Color = clBtnFace
  181. Font.Charset = ANSI_CHARSET
  182. Font.Color = clWindowText
  183. Font.Height = -9
  184. Font.Name = 'Lucida Console'
  185. Font.Style = []
  186. ParentFont = False
  187. ReadOnly = True
  188. ScrollBars = ssBoth
  189. TabOrder = 0
  190. WordWrap = False
  191. ExplicitWidth = 221
  192. ExplicitHeight = 89
  193. end
  194. object Button1: TButton
  195. Left = 226
  196. Top = 21
  197. Width = 64
  198. Height = 18
  199. Anchors = [akTop, akRight]
  200. Caption = 'Params'
  201. TabOrder = 1
  202. OnClick = Button1Click
  203. ExplicitLeft = 231
  204. end
  205. object Button4: TButton
  206. Left = 226
  207. Top = 42
  208. Width = 64
  209. Height = 18
  210. Anchors = [akTop, akRight]
  211. Caption = 'Asm'
  212. TabOrder = 2
  213. OnClick = Button4Click
  214. ExplicitLeft = 231
  215. end
  216. end
  217. end
  218. object TabSheet2: TTabSheet
  219. Caption = 'Fragment Program'
  220. ImageIndex = 1
  221. object Splitter2: TSplitter
  222. Left = 0
  223. Top = 289
  224. Width = 301
  225. Height = 3
  226. Cursor = crVSplit
  227. Align = alBottom
  228. Color = clBtnShadow
  229. ParentColor = False
  230. end
  231. object Panel4: TPanel
  232. Left = 0
  233. Top = 0
  234. Width = 301
  235. Height = 25
  236. Align = alTop
  237. BevelOuter = bvNone
  238. TabOrder = 0
  239. object LabelFragProfile: TLabel
  240. Left = 88
  241. Top = 5
  242. Width = 63
  243. Height = 13
  244. Caption = 'Using profile:'
  245. end
  246. object CBFragmentProgram: TCheckBox
  247. Left = 6
  248. Top = 4
  249. Width = 67
  250. Height = 17
  251. Caption = 'Enabled'
  252. Checked = True
  253. State = cbChecked
  254. TabOrder = 0
  255. OnClick = CBFragmentProgramClick
  256. end
  257. end
  258. object Panel6: TPanel
  259. Left = 0
  260. Top = 25
  261. Width = 301
  262. Height = 264
  263. Align = alClient
  264. Caption = 'Panel6'
  265. TabOrder = 1
  266. object Panel7: TPanel
  267. Left = 1
  268. Top = 1
  269. Width = 299
  270. Height = 16
  271. Align = alTop
  272. BevelOuter = bvNone
  273. Caption = 'Shader Code'
  274. Color = clBtnHighlight
  275. TabOrder = 0
  276. end
  277. object MemoFragCode: TMemo
  278. Left = 1
  279. Top = 17
  280. Width = 299
  281. Height = 221
  282. Align = alClient
  283. Font.Charset = ANSI_CHARSET
  284. Font.Color = clWindowText
  285. Font.Height = -11
  286. Font.Name = 'Lucida Console'
  287. Font.Style = []
  288. ParentFont = False
  289. ScrollBars = ssBoth
  290. TabOrder = 1
  291. WordWrap = False
  292. OnChange = MemoFragCodeChange
  293. end
  294. object Panel3: TPanel
  295. Left = 1
  296. Top = 238
  297. Width = 299
  298. Height = 25
  299. Align = alBottom
  300. BevelOuter = bvNone
  301. TabOrder = 2
  302. DesignSize = (
  303. 299
  304. 25)
  305. object ButtonApplyFP: TButton
  306. Left = 230
  307. Top = 2
  308. Width = 67
  309. Height = 20
  310. Anchors = [akTop, akRight]
  311. Caption = 'Apply'
  312. Enabled = False
  313. TabOrder = 0
  314. OnClick = ButtonApplyFPClick
  315. end
  316. end
  317. end
  318. object Panel8: TPanel
  319. Left = 0
  320. Top = 292
  321. Width = 301
  322. Height = 90
  323. Align = alBottom
  324. TabOrder = 2
  325. ExplicitTop = 300
  326. ExplicitWidth = 306
  327. DesignSize = (
  328. 301
  329. 90)
  330. object Label1: TLabel
  331. Left = 228
  332. Top = 5
  333. Width = 30
  334. Height = 13
  335. Anchors = [akTop, akRight]
  336. Caption = 'Show:'
  337. ExplicitLeft = 233
  338. end
  339. object Memo3: TMemo
  340. Left = 1
  341. Top = 1
  342. Width = 216
  343. Height = 88
  344. Align = alLeft
  345. Anchors = [akLeft, akTop, akRight, akBottom]
  346. Color = clBtnFace
  347. Font.Charset = ANSI_CHARSET
  348. Font.Color = clWindowText
  349. Font.Height = -11
  350. Font.Name = 'Courier New'
  351. Font.Style = []
  352. ParentFont = False
  353. ReadOnly = True
  354. ScrollBars = ssBoth
  355. TabOrder = 0
  356. WordWrap = False
  357. ExplicitWidth = 221
  358. ExplicitHeight = 89
  359. end
  360. object Button2: TButton
  361. Left = 226
  362. Top = 21
  363. Width = 64
  364. Height = 18
  365. Anchors = [akTop, akRight]
  366. Caption = 'Params'
  367. TabOrder = 1
  368. OnClick = Button2Click
  369. ExplicitLeft = 231
  370. end
  371. object Button3: TButton
  372. Left = 226
  373. Top = 42
  374. Width = 64
  375. Height = 18
  376. Anchors = [akTop, akRight]
  377. Caption = 'Asm'
  378. TabOrder = 2
  379. OnClick = Button3Click
  380. ExplicitLeft = 231
  381. end
  382. end
  383. end
  384. object TabSheet3: TTabSheet
  385. Caption = 'Controls'
  386. ImageIndex = 2
  387. DesignSize = (
  388. 301
  389. 382)
  390. object Label16: TLabel
  391. Left = 8
  392. Top = 272
  393. Width = 282
  394. Height = 13
  395. Caption = 'Note: NV2x class hardware may not honor negative values'
  396. end
  397. object GroupBox1: TGroupBox
  398. Left = 8
  399. Top = 40
  400. Width = 281
  401. Height = 105
  402. Anchors = [akLeft, akTop, akRight]
  403. Caption = ' TexCoord. Shifts '
  404. TabOrder = 0
  405. DesignSize = (
  406. 281
  407. 105)
  408. object Label18: TLabel
  409. Left = 64
  410. Top = 86
  411. Width = 193
  412. Height = 13
  413. Alignment = taCenter
  414. Anchors = [akLeft, akTop, akRight]
  415. AutoSize = False
  416. Caption = '0'
  417. ExplicitWidth = 198
  418. end
  419. object Label3: TLabel
  420. Left = 16
  421. Top = 24
  422. Width = 27
  423. Height = 13
  424. Caption = 'Tex 0'
  425. end
  426. object Label4: TLabel
  427. Left = 16
  428. Top = 40
  429. Width = 27
  430. Height = 13
  431. Caption = 'Tex 1'
  432. end
  433. object Label5: TLabel
  434. Left = 16
  435. Top = 56
  436. Width = 27
  437. Height = 13
  438. Caption = 'Tex 2'
  439. end
  440. object Label6: TLabel
  441. Left = 16
  442. Top = 72
  443. Width = 27
  444. Height = 13
  445. Caption = 'Tex 3'
  446. end
  447. object Label11: TLabel
  448. Left = 32
  449. Top = 24
  450. Width = 3
  451. Height = 13
  452. end
  453. object Label12: TLabel
  454. Left = 56
  455. Top = 86
  456. Width = 10
  457. Height = 13
  458. Caption = '-1'
  459. end
  460. object Label14: TLabel
  461. Left = 252
  462. Top = 86
  463. Width = 6
  464. Height = 13
  465. Anchors = [akTop, akRight]
  466. Caption = '1'
  467. ExplicitLeft = 257
  468. end
  469. object TrackBar1: TTrackBar
  470. Left = 56
  471. Top = 24
  472. Width = 206
  473. Height = 15
  474. Anchors = [akLeft, akTop, akRight]
  475. Max = 100
  476. Position = 50
  477. TabOrder = 0
  478. ThumbLength = 12
  479. TickMarks = tmBoth
  480. TickStyle = tsNone
  481. end
  482. object TrackBar2: TTrackBar
  483. Left = 56
  484. Top = 40
  485. Width = 206
  486. Height = 15
  487. Anchors = [akLeft, akTop, akRight]
  488. Max = 100
  489. Position = 50
  490. TabOrder = 1
  491. ThumbLength = 12
  492. TickMarks = tmBoth
  493. TickStyle = tsNone
  494. end
  495. object TrackBar3: TTrackBar
  496. Left = 56
  497. Top = 56
  498. Width = 206
  499. Height = 15
  500. Anchors = [akLeft, akTop, akRight]
  501. Max = 100
  502. Position = 50
  503. TabOrder = 2
  504. ThumbLength = 12
  505. TickMarks = tmBoth
  506. TickStyle = tsNone
  507. end
  508. object TrackBar4: TTrackBar
  509. Left = 56
  510. Top = 72
  511. Width = 206
  512. Height = 15
  513. Anchors = [akLeft, akTop, akRight]
  514. Max = 100
  515. Position = 50
  516. TabOrder = 3
  517. ThumbLength = 12
  518. TickMarks = tmBoth
  519. TickStyle = tsNone
  520. end
  521. end
  522. object GroupBox2: TGroupBox
  523. Left = 8
  524. Top = 160
  525. Width = 281
  526. Height = 105
  527. Anchors = [akLeft, akTop, akRight]
  528. Caption = ' Blending Weights '
  529. TabOrder = 1
  530. DesignSize = (
  531. 281
  532. 105)
  533. object Label17: TLabel
  534. Left = 64
  535. Top = 86
  536. Width = 193
  537. Height = 13
  538. Alignment = taCenter
  539. Anchors = [akLeft, akTop, akRight]
  540. AutoSize = False
  541. Caption = '0'
  542. ExplicitWidth = 198
  543. end
  544. object Label7: TLabel
  545. Left = 16
  546. Top = 24
  547. Width = 27
  548. Height = 13
  549. Caption = 'Tex 0'
  550. end
  551. object Label8: TLabel
  552. Left = 16
  553. Top = 40
  554. Width = 27
  555. Height = 13
  556. Caption = 'Tex 1'
  557. end
  558. object Label9: TLabel
  559. Left = 16
  560. Top = 56
  561. Width = 27
  562. Height = 13
  563. Caption = 'Tex 2'
  564. end
  565. object Label10: TLabel
  566. Left = 16
  567. Top = 72
  568. Width = 27
  569. Height = 13
  570. Caption = 'Tex 3'
  571. end
  572. object Label13: TLabel
  573. Left = 252
  574. Top = 86
  575. Width = 6
  576. Height = 13
  577. Anchors = [akTop, akRight]
  578. Caption = '1'
  579. ExplicitLeft = 257
  580. end
  581. object Label15: TLabel
  582. Left = 56
  583. Top = 86
  584. Width = 10
  585. Height = 13
  586. Caption = '-1'
  587. end
  588. object TrackBar5: TTrackBar
  589. Left = 56
  590. Top = 24
  591. Width = 206
  592. Height = 15
  593. Anchors = [akLeft, akTop, akRight]
  594. Max = 100
  595. Position = 75
  596. TabOrder = 0
  597. ThumbLength = 12
  598. TickMarks = tmBoth
  599. TickStyle = tsNone
  600. end
  601. object TrackBar6: TTrackBar
  602. Left = 56
  603. Top = 40
  604. Width = 206
  605. Height = 15
  606. Anchors = [akLeft, akTop, akRight]
  607. Max = 100
  608. Position = 75
  609. TabOrder = 1
  610. ThumbLength = 12
  611. TickMarks = tmBoth
  612. TickStyle = tsNone
  613. end
  614. object TrackBar7: TTrackBar
  615. Left = 56
  616. Top = 56
  617. Width = 206
  618. Height = 15
  619. Anchors = [akLeft, akTop, akRight]
  620. Max = 100
  621. Position = 75
  622. TabOrder = 2
  623. ThumbLength = 12
  624. TickMarks = tmBoth
  625. TickStyle = tsNone
  626. end
  627. object TrackBar8: TTrackBar
  628. Left = 56
  629. Top = 72
  630. Width = 206
  631. Height = 15
  632. Anchors = [akLeft, akTop, akRight]
  633. Max = 100
  634. Position = 65
  635. TabOrder = 3
  636. ThumbLength = 12
  637. TickMarks = tmBoth
  638. TickStyle = tsNone
  639. end
  640. end
  641. object CheckBox2: TCheckBox
  642. Left = 14
  643. Top = 12
  644. Width = 131
  645. Height = 17
  646. Caption = 'CgShader Enabled'
  647. Checked = True
  648. Font.Charset = ANSI_CHARSET
  649. Font.Color = clWindowText
  650. Font.Height = -11
  651. Font.Name = 'Tahoma'
  652. Font.Style = []
  653. ParentFont = False
  654. State = cbChecked
  655. TabOrder = 2
  656. OnClick = CheckBox2Click
  657. end
  658. end
  659. end
  660. end
  661. object Panel9: TPanel
  662. Left = 316
  663. Top = 0
  664. Width = 526
  665. Height = 414
  666. Align = alClient
  667. Font.Charset = ANSI_CHARSET
  668. Font.Color = clWindowText
  669. Font.Height = -19
  670. Font.Name = 'Tahoma'
  671. Font.Style = [fsBold]
  672. ParentFont = False
  673. TabOrder = 1
  674. object PanelFPS: TPanel
  675. Left = 1
  676. Top = 1
  677. Width = 524
  678. Height = 48
  679. Align = alTop
  680. Caption = 'FPS'
  681. Font.Charset = ANSI_CHARSET
  682. Font.Color = clWindowText
  683. Font.Height = -19
  684. Font.Name = 'Trebuchet MS'
  685. Font.Style = []
  686. ParentFont = False
  687. TabOrder = 0
  688. end
  689. object GLSceneViewer1: TGLSceneViewer
  690. Left = 1
  691. Top = 49
  692. Width = 524
  693. Height = 364
  694. Camera = GLCamera1
  695. Buffer.Lighting = False
  696. Buffer.AntiAliasing = aa4xHQ
  697. FieldOfView = 149.276763916015600000
  698. PenAsTouch = False
  699. Align = alClient
  700. OnMouseDown = GLSceneViewer1MouseDown
  701. OnMouseMove = GLSceneViewer1MouseMove
  702. TabOrder = 1
  703. end
  704. end
  705. object GLScene1: TGLScene
  706. Left = 32
  707. Top = 80
  708. object GLXYZGrid1: TGLXYZGrid
  709. Position.Coordinates = {000000006F12033B000000000000803F}
  710. LineColor.Color = {938C0C3E938E0E3F938C0C3E0000803F}
  711. XSamplingScale.Min = -2.000000000000000000
  712. XSamplingScale.Max = 2.000000000000000000
  713. XSamplingScale.Step = 0.100000001490116100
  714. YSamplingScale.Step = 0.100000001490116100
  715. ZSamplingScale.Min = -2.000000000000000000
  716. ZSamplingScale.Max = 2.000000000000000000
  717. ZSamplingScale.Step = 0.100000001490116100
  718. Parts = [gpX, gpZ]
  719. end
  720. object GLPlane1: TGLPlane
  721. Material.MaterialLibrary = GLMatLib
  722. Material.LibMaterialName = 'LibMaterial'
  723. Direction.Coordinates = {000000000000803F0000000000000000}
  724. PitchAngle = 90.000000000000000000
  725. Up.Coordinates = {0000000000000000000080BF00000000}
  726. Height = 1.000000000000000000
  727. Width = 1.000000000000000000
  728. end
  729. object GLCamera1: TGLCamera
  730. DepthOfView = 100.000000000000000000
  731. FocalLength = 50.000000000000000000
  732. TargetObject = GLPlane1
  733. CameraStyle = csInfinitePerspective
  734. Position.Coordinates = {000000000000C03F0000803F0000803F}
  735. end
  736. end
  737. object GLCadencer1: TGLCadencer
  738. Scene = GLScene1
  739. OnProgress = GLCadencer1Progress
  740. Left = 32
  741. Top = 144
  742. end
  743. object CgShader1: TCgShader
  744. VertexProgram.OnApply = CgShader1ApplyVP
  745. FragmentProgram.OnApply = CgShader1ApplyFP
  746. FragmentProgram.OnUnApply = CgShader1UnApplyFP
  747. OnApplyVP = CgShader1ApplyVP
  748. OnApplyFP = CgShader1ApplyFP
  749. OnUnApplyFP = CgShader1UnApplyFP
  750. OnInitialize = CgShader1Initialize
  751. Left = 168
  752. Top = 80
  753. end
  754. object Timer1: TTimer
  755. OnTimer = Timer1Timer
  756. Left = 164
  757. Top = 144
  758. end
  759. object GLMatLib: TGLMaterialLibrary
  760. Materials = <
  761. item
  762. Name = 'LibMaterial'
  763. Tag = 0
  764. Material.Texture.Disabled = False
  765. Shader = CgShader1
  766. end
  767. item
  768. Name = 'LibMaterial1'
  769. Tag = 0
  770. Material.Texture.Disabled = False
  771. end
  772. item
  773. Name = 'LibMaterial2'
  774. Tag = 0
  775. end
  776. item
  777. Name = 'LibMaterial3'
  778. Tag = 0
  779. end>
  780. TexturePaths = '..\\..\\..\\media\\'
  781. Left = 105
  782. Top = 80
  783. end
  784. end