fcCgSimple.dfm 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497
  1. object Form1: TForm1
  2. Left = 0
  3. Top = 0
  4. Caption = 'Cg Simple Shader'
  5. ClientHeight = 422
  6. ClientWidth = 845
  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 = 369
  19. Top = 0
  20. Height = 422
  21. Color = clBtnShadow
  22. ParentColor = False
  23. ExplicitTop = -85
  24. ExplicitHeight = 440
  25. end
  26. object Panel1: TPanel
  27. Left = 0
  28. Top = 0
  29. Width = 369
  30. Height = 422
  31. Align = alLeft
  32. BevelInner = bvRaised
  33. BevelOuter = bvLowered
  34. TabOrder = 0
  35. ExplicitHeight = 397
  36. object PageControl1: TPageControl
  37. Left = 2
  38. Top = 2
  39. Width = 365
  40. Height = 418
  41. ActivePage = TabSheet1
  42. Align = alClient
  43. Font.Charset = ANSI_CHARSET
  44. Font.Color = clWindowText
  45. Font.Height = -11
  46. Font.Name = 'Tahoma'
  47. Font.Style = []
  48. ParentFont = False
  49. TabOrder = 0
  50. ExplicitHeight = 393
  51. object TabSheet1: TTabSheet
  52. Caption = 'Vertex Program'
  53. object Splitter3: TSplitter
  54. Left = 0
  55. Top = 283
  56. Width = 357
  57. Height = 3
  58. Cursor = crVSplit
  59. Align = alBottom
  60. Color = clBtnShadow
  61. ParentColor = False
  62. ExplicitTop = 318
  63. end
  64. object Panel2: TPanel
  65. Left = 0
  66. Top = 0
  67. Width = 357
  68. Height = 25
  69. Align = alTop
  70. BevelOuter = bvNone
  71. TabOrder = 0
  72. object LabelVertProfile: TLabel
  73. Left = 88
  74. Top = 5
  75. Width = 63
  76. Height = 13
  77. Caption = 'Using profile:'
  78. end
  79. object CBVertexProgram: TCheckBox
  80. Left = 6
  81. Top = 4
  82. Width = 59
  83. Height = 17
  84. Caption = 'Enabled'
  85. Font.Charset = ANSI_CHARSET
  86. Font.Color = clWindowText
  87. Font.Height = -11
  88. Font.Name = 'Tahoma'
  89. Font.Style = []
  90. ParentFont = False
  91. TabOrder = 0
  92. OnClick = CBVertexProgramClick
  93. end
  94. end
  95. object Panel11: TPanel
  96. Left = 0
  97. Top = 25
  98. Width = 357
  99. Height = 258
  100. Align = alClient
  101. Caption = 'Panel6'
  102. TabOrder = 1
  103. ExplicitHeight = 233
  104. object Panel12: TPanel
  105. Left = 1
  106. Top = 1
  107. Width = 355
  108. Height = 16
  109. Align = alTop
  110. BevelOuter = bvNone
  111. Caption = 'Shader Code'
  112. Color = clBtnHighlight
  113. TabOrder = 0
  114. end
  115. object MemoVertCode: TMemo
  116. Left = 1
  117. Top = 17
  118. Width = 355
  119. Height = 215
  120. Align = alClient
  121. Font.Charset = ANSI_CHARSET
  122. Font.Color = clWindowText
  123. Font.Height = -11
  124. Font.Name = 'Courier New'
  125. Font.Style = []
  126. ParentFont = False
  127. ScrollBars = ssBoth
  128. TabOrder = 1
  129. WordWrap = False
  130. OnChange = MemoVertCodeChange
  131. ExplicitHeight = 190
  132. end
  133. object Panel13: TPanel
  134. Left = 1
  135. Top = 232
  136. Width = 355
  137. Height = 25
  138. Align = alBottom
  139. BevelOuter = bvNone
  140. TabOrder = 2
  141. ExplicitTop = 207
  142. DesignSize = (
  143. 355
  144. 25)
  145. object ButtonApplyVP: TButton
  146. Left = 280
  147. Top = 2
  148. Width = 67
  149. Height = 20
  150. Anchors = [akTop, akRight]
  151. Caption = 'Apply'
  152. Enabled = False
  153. TabOrder = 0
  154. OnClick = ButtonApplyVPClick
  155. end
  156. end
  157. end
  158. object Panel5: TPanel
  159. Left = 0
  160. Top = 286
  161. Width = 357
  162. Height = 104
  163. Align = alBottom
  164. TabOrder = 2
  165. ExplicitTop = 261
  166. DesignSize = (
  167. 357
  168. 104)
  169. object Label2: TLabel
  170. Left = 284
  171. Top = 5
  172. Width = 30
  173. Height = 13
  174. Anchors = [akTop, akRight]
  175. Caption = 'Show:'
  176. end
  177. object Memo1: TMemo
  178. Left = 1
  179. Top = 1
  180. Width = 272
  181. Height = 102
  182. Align = alLeft
  183. Anchors = [akLeft, akTop, akRight, akBottom]
  184. Color = clBtnFace
  185. Font.Charset = ANSI_CHARSET
  186. Font.Color = clWindowText
  187. Font.Height = -11
  188. Font.Name = 'Courier New'
  189. Font.Style = []
  190. ParentFont = False
  191. ReadOnly = True
  192. ScrollBars = ssBoth
  193. TabOrder = 0
  194. WordWrap = False
  195. end
  196. object Button1: TButton
  197. Left = 282
  198. Top = 21
  199. Width = 64
  200. Height = 18
  201. Anchors = [akTop, akRight]
  202. Caption = 'Params'
  203. TabOrder = 1
  204. OnClick = Button1Click
  205. end
  206. object Button4: TButton
  207. Left = 282
  208. Top = 42
  209. Width = 64
  210. Height = 18
  211. Anchors = [akTop, akRight]
  212. Caption = 'Asm'
  213. TabOrder = 2
  214. OnClick = Button4Click
  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 = 283
  224. Width = 357
  225. Height = 3
  226. Cursor = crVSplit
  227. Align = alBottom
  228. Color = clBtnShadow
  229. ParentColor = False
  230. ExplicitTop = 318
  231. end
  232. object Panel4: TPanel
  233. Left = 0
  234. Top = 0
  235. Width = 357
  236. Height = 25
  237. Align = alTop
  238. BevelOuter = bvNone
  239. TabOrder = 0
  240. object LabelFragProfile: TLabel
  241. Left = 88
  242. Top = 5
  243. Width = 63
  244. Height = 13
  245. Caption = 'Using profile:'
  246. end
  247. object CBFragmentProgram: TCheckBox
  248. Left = 6
  249. Top = 4
  250. Width = 67
  251. Height = 17
  252. Caption = 'Enabled'
  253. TabOrder = 0
  254. OnClick = CBFragmentProgramClick
  255. end
  256. end
  257. object Panel6: TPanel
  258. Left = 0
  259. Top = 25
  260. Width = 357
  261. Height = 258
  262. Align = alClient
  263. Caption = 'Panel6'
  264. TabOrder = 1
  265. object Panel7: TPanel
  266. Left = 1
  267. Top = 1
  268. Width = 355
  269. Height = 16
  270. Align = alTop
  271. BevelOuter = bvNone
  272. Caption = 'Shader Code'
  273. Color = clBtnHighlight
  274. TabOrder = 0
  275. end
  276. object MemoFragCode: TMemo
  277. Left = 1
  278. Top = 17
  279. Width = 355
  280. Height = 215
  281. Align = alClient
  282. Font.Charset = ANSI_CHARSET
  283. Font.Color = clWindowText
  284. Font.Height = -11
  285. Font.Name = 'Courier New'
  286. Font.Style = []
  287. ParentFont = False
  288. ScrollBars = ssBoth
  289. TabOrder = 1
  290. WordWrap = False
  291. OnChange = MemoFragCodeChange
  292. end
  293. object Panel3: TPanel
  294. Left = 1
  295. Top = 232
  296. Width = 355
  297. Height = 25
  298. Align = alBottom
  299. BevelOuter = bvNone
  300. TabOrder = 2
  301. DesignSize = (
  302. 355
  303. 25)
  304. object ButtonApplyFP: TButton
  305. Left = 280
  306. Top = 2
  307. Width = 67
  308. Height = 20
  309. Anchors = [akTop, akRight]
  310. Caption = 'Apply'
  311. Enabled = False
  312. TabOrder = 0
  313. OnClick = ButtonApplyFPClick
  314. end
  315. end
  316. end
  317. object Panel8: TPanel
  318. Left = 0
  319. Top = 286
  320. Width = 357
  321. Height = 104
  322. Align = alBottom
  323. TabOrder = 2
  324. DesignSize = (
  325. 357
  326. 104)
  327. object Label1: TLabel
  328. Left = 284
  329. Top = 5
  330. Width = 30
  331. Height = 13
  332. Anchors = [akTop, akRight]
  333. Caption = 'Show:'
  334. end
  335. object Memo3: TMemo
  336. Left = 1
  337. Top = 1
  338. Width = 272
  339. Height = 102
  340. Align = alLeft
  341. Anchors = [akLeft, akTop, akRight, akBottom]
  342. Color = clBtnFace
  343. Font.Charset = ANSI_CHARSET
  344. Font.Color = clWindowText
  345. Font.Height = -11
  346. Font.Name = 'Courier New'
  347. Font.Style = []
  348. ParentFont = False
  349. ReadOnly = True
  350. ScrollBars = ssBoth
  351. TabOrder = 0
  352. WordWrap = False
  353. end
  354. object Button2: TButton
  355. Left = 282
  356. Top = 21
  357. Width = 64
  358. Height = 18
  359. Anchors = [akTop, akRight]
  360. Caption = 'Params'
  361. TabOrder = 1
  362. OnClick = Button2Click
  363. end
  364. object Button3: TButton
  365. Left = 282
  366. Top = 42
  367. Width = 64
  368. Height = 18
  369. Anchors = [akTop, akRight]
  370. Caption = 'Asm'
  371. TabOrder = 2
  372. OnClick = Button3Click
  373. end
  374. end
  375. end
  376. end
  377. end
  378. object Panel9: TPanel
  379. Left = 372
  380. Top = 0
  381. Width = 473
  382. Height = 422
  383. Align = alClient
  384. Font.Charset = ANSI_CHARSET
  385. Font.Color = clWindowText
  386. Font.Height = -19
  387. Font.Name = 'Tahoma'
  388. Font.Style = [fsBold]
  389. ParentFont = False
  390. TabOrder = 1
  391. ExplicitWidth = 465
  392. ExplicitHeight = 397
  393. object PanelFPS: TPanel
  394. Left = 1
  395. Top = 1
  396. Width = 471
  397. Height = 48
  398. Align = alTop
  399. Caption = 'FPS'
  400. Font.Charset = ANSI_CHARSET
  401. Font.Color = clWindowText
  402. Font.Height = -19
  403. Font.Name = 'Trebuchet MS'
  404. Font.Style = []
  405. ParentFont = False
  406. TabOrder = 0
  407. ExplicitWidth = 463
  408. end
  409. object GLSceneViewer1: TGLSceneViewer
  410. Left = 1
  411. Top = 49
  412. Width = 471
  413. Height = 372
  414. Camera = GLCamera1
  415. Buffer.AntiAliasing = aa4x
  416. FieldOfView = 149.907211303710900000
  417. PenAsTouch = False
  418. Align = alClient
  419. OnMouseDown = GLSceneViewer1MouseDown
  420. OnMouseMove = GLSceneViewer1MouseMove
  421. TabOrder = 1
  422. end
  423. end
  424. object GLScene1: TGLScene
  425. Left = 40
  426. Top = 80
  427. object GLLightSource1: TGLLightSource
  428. Ambient.Color = {0000803F0000803F0000803F0000803F}
  429. ConstAttenuation = 1.000000000000000000
  430. Position.Coordinates = {0000000000002041000000000000803F}
  431. LightStyle = lsOmni
  432. Specular.Color = {0000803F0000803F0000803F0000803F}
  433. SpotCutOff = 180.000000000000000000
  434. end
  435. object GLFreeForm1: TGLFreeForm
  436. Material.MaterialLibrary = GLMaterialLibrary1
  437. Material.LibMaterialName = 'LibMaterial'
  438. Direction.Coordinates = {000000000000803F0000000000000000}
  439. Scale.Coordinates = {8FC2F53C8FC2F53C8FC2F53C00000000}
  440. Up.Coordinates = {0000000000000000000080BF00000000}
  441. AutoCentering = [macCenterX, macCenterY]
  442. end
  443. object GLXYZGrid1: TGLXYZGrid
  444. XSamplingScale.Min = -2.000000000000000000
  445. XSamplingScale.Max = 2.000000000000000000
  446. XSamplingScale.Step = 0.100000001490116100
  447. YSamplingScale.Step = 0.100000001490116100
  448. ZSamplingScale.Min = -2.000000000000000000
  449. ZSamplingScale.Max = 2.000000000000000000
  450. ZSamplingScale.Step = 0.100000001490116100
  451. Parts = [gpX, gpZ]
  452. end
  453. object GLDummyCube1: TGLDummyCube
  454. Position.Coordinates = {000000003333333F000000000000803F}
  455. CubeSize = 1.000000000000000000
  456. end
  457. object GLCamera1: TGLCamera
  458. DepthOfView = 100.000000000000000000
  459. FocalLength = 50.000000000000000000
  460. TargetObject = GLDummyCube1
  461. CameraStyle = csInfinitePerspective
  462. Position.Coordinates = {0000004000004040000080400000803F}
  463. end
  464. end
  465. object GLMaterialLibrary1: TGLMaterialLibrary
  466. Materials = <
  467. item
  468. Name = 'LibMaterial'
  469. Tag = 0
  470. Material.FrontProperties.Ambient.Color = {8988083E00000000000000000000803F}
  471. Material.FrontProperties.Diffuse.Color = {DBDADA3ED5D4543EA1A0A03D0000803F}
  472. Material.FrontProperties.Shininess = 128
  473. Material.FrontProperties.Specular.Color = {EDEC6C3EDDDC5C3ED5D4543E0000803F}
  474. Shader = CgShader1
  475. end>
  476. Left = 40
  477. Top = 136
  478. end
  479. object GLCadencer1: TGLCadencer
  480. Scene = GLScene1
  481. OnProgress = GLCadencer1Progress
  482. Left = 112
  483. Top = 80
  484. end
  485. object CgShader1: TCgShader
  486. VertexProgram.OnApply = CgShader1ApplyVP
  487. OnApplyVP = CgShader1ApplyVP
  488. OnInitialize = CgShader1Initialize
  489. Left = 184
  490. Top = 80
  491. end
  492. object Timer1: TTimer
  493. OnTimer = Timer1Timer
  494. Left = 260
  495. Top = 80
  496. end
  497. end