fCgSimpleD.dfm 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495
  1. object FormCgSimple: TFormCgSimple
  2. Left = 202
  3. Top = 112
  4. Caption = 'Cg Simple Shader'
  5. ClientHeight = 440
  6. ClientWidth = 751
  7. Color = clBtnFace
  8. Font.Charset = DEFAULT_CHARSET
  9. Font.Color = clWindowText
  10. Font.Height = -11
  11. Font.Name = 'MS Sans Serif'
  12. Font.Style = []
  13. KeyPreview = True
  14. Position = poScreenCenter
  15. OnCreate = FormCreate
  16. OnKeyPress = FormKeyPress
  17. OnMouseWheel = FormMouseWheel
  18. TextHeight = 13
  19. object Splitter1: TSplitter
  20. Left = 369
  21. Top = 0
  22. Height = 440
  23. Color = clBtnShadow
  24. ParentColor = False
  25. end
  26. object Panel1: TPanel
  27. Left = 0
  28. Top = 0
  29. Width = 369
  30. Height = 440
  31. Align = alLeft
  32. BevelInner = bvRaised
  33. BevelOuter = bvLowered
  34. TabOrder = 0
  35. object PageControl1: TPageControl
  36. Left = 2
  37. Top = 2
  38. Width = 365
  39. Height = 436
  40. ActivePage = TabSheet2
  41. Align = alClient
  42. Font.Charset = ANSI_CHARSET
  43. Font.Color = clWindowText
  44. Font.Height = -11
  45. Font.Name = 'Tahoma'
  46. Font.Style = []
  47. ParentFont = False
  48. TabOrder = 0
  49. object TabSheet1: TTabSheet
  50. Caption = 'Vertex Program'
  51. object Splitter3: TSplitter
  52. Left = 0
  53. Top = 301
  54. Width = 357
  55. Height = 3
  56. Cursor = crVSplit
  57. Align = alBottom
  58. Color = clBtnShadow
  59. ParentColor = False
  60. end
  61. object Panel2: TPanel
  62. Left = 0
  63. Top = 0
  64. Width = 357
  65. Height = 25
  66. Align = alTop
  67. BevelOuter = bvNone
  68. TabOrder = 0
  69. object LabelVertProfile: TLabel
  70. Left = 88
  71. Top = 5
  72. Width = 63
  73. Height = 13
  74. Caption = 'Using profile:'
  75. end
  76. object CBVertexProgram: TCheckBox
  77. Left = 6
  78. Top = 4
  79. Width = 59
  80. Height = 17
  81. Caption = 'Enabled'
  82. Font.Charset = ANSI_CHARSET
  83. Font.Color = clWindowText
  84. Font.Height = -11
  85. Font.Name = 'Tahoma'
  86. Font.Style = []
  87. ParentFont = False
  88. TabOrder = 0
  89. OnClick = CBVertexProgramClick
  90. end
  91. end
  92. object Panel11: TPanel
  93. Left = 0
  94. Top = 25
  95. Width = 357
  96. Height = 276
  97. Align = alClient
  98. Caption = 'Panel6'
  99. TabOrder = 1
  100. object Panel12: TPanel
  101. Left = 1
  102. Top = 1
  103. Width = 355
  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 = 355
  115. Height = 233
  116. Align = alClient
  117. Font.Charset = ANSI_CHARSET
  118. Font.Color = clWindowText
  119. Font.Height = -11
  120. Font.Name = 'Courier New'
  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 = 250
  131. Width = 355
  132. Height = 25
  133. Align = alBottom
  134. BevelOuter = bvNone
  135. TabOrder = 2
  136. DesignSize = (
  137. 355
  138. 25)
  139. object ButtonApplyVP: TButton
  140. Left = 282
  141. Top = 2
  142. Width = 68
  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 = 304
  155. Width = 357
  156. Height = 104
  157. Align = alBottom
  158. TabOrder = 2
  159. ExplicitTop = 307
  160. ExplicitWidth = 359
  161. DesignSize = (
  162. 357
  163. 104)
  164. object Label2: TLabel
  165. Left = 284
  166. Top = 5
  167. Width = 30
  168. Height = 13
  169. Anchors = [akTop, akRight]
  170. Caption = 'Show:'
  171. ExplicitLeft = 286
  172. end
  173. object Memo1: TMemo
  174. Left = 1
  175. Top = 1
  176. Width = 272
  177. Height = 102
  178. Align = alLeft
  179. Anchors = [akLeft, akTop, akRight, akBottom]
  180. Color = clBtnFace
  181. Font.Charset = ANSI_CHARSET
  182. Font.Color = clWindowText
  183. Font.Height = -11
  184. Font.Name = 'Courier New'
  185. Font.Style = []
  186. ParentFont = False
  187. ReadOnly = True
  188. ScrollBars = ssBoth
  189. TabOrder = 0
  190. WordWrap = False
  191. ExplicitWidth = 274
  192. end
  193. object Button1: TButton
  194. Left = 283
  195. Top = 21
  196. Width = 64
  197. Height = 18
  198. Anchors = [akTop, akRight]
  199. Caption = 'Params'
  200. TabOrder = 1
  201. OnClick = Button1Click
  202. ExplicitLeft = 285
  203. end
  204. object Button4: TButton
  205. Left = 283
  206. Top = 42
  207. Width = 64
  208. Height = 18
  209. Anchors = [akTop, akRight]
  210. Caption = 'Asm'
  211. TabOrder = 2
  212. OnClick = Button4Click
  213. ExplicitLeft = 285
  214. end
  215. end
  216. end
  217. object TabSheet2: TTabSheet
  218. Caption = 'Fragment Program'
  219. ImageIndex = 1
  220. object Splitter2: TSplitter
  221. Left = 0
  222. Top = 301
  223. Width = 357
  224. Height = 3
  225. Cursor = crVSplit
  226. Align = alBottom
  227. Color = clBtnShadow
  228. ParentColor = False
  229. ExplicitTop = 304
  230. ExplicitWidth = 359
  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 = 276
  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 = 234
  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 = 251
  296. Width = 355
  297. Height = 24
  298. Align = alBottom
  299. BevelOuter = bvNone
  300. TabOrder = 2
  301. DesignSize = (
  302. 355
  303. 24)
  304. object ButtonApplyFP: TButton
  305. Left = 279
  306. Top = 2
  307. Width = 68
  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 = 304
  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. ExplicitLeft = 286
  335. end
  336. object Memo3: TMemo
  337. Left = 1
  338. Top = 1
  339. Width = 272
  340. Height = 102
  341. Align = alLeft
  342. Anchors = [akLeft, akTop, akRight, akBottom]
  343. Color = clBtnFace
  344. Font.Charset = ANSI_CHARSET
  345. Font.Color = clWindowText
  346. Font.Height = -11
  347. Font.Name = 'Courier New'
  348. Font.Style = []
  349. ParentFont = False
  350. ReadOnly = True
  351. ScrollBars = ssBoth
  352. TabOrder = 0
  353. WordWrap = False
  354. end
  355. object Button2: TButton
  356. Left = 283
  357. Top = 21
  358. Width = 64
  359. Height = 18
  360. Anchors = [akTop, akRight]
  361. Caption = 'Params'
  362. TabOrder = 1
  363. OnClick = Button2Click
  364. end
  365. object Button3: TButton
  366. Left = 283
  367. Top = 42
  368. Width = 64
  369. Height = 18
  370. Anchors = [akTop, akRight]
  371. Caption = 'Asm'
  372. TabOrder = 2
  373. OnClick = Button3Click
  374. end
  375. end
  376. end
  377. end
  378. end
  379. object Panel9: TPanel
  380. Left = 372
  381. Top = 0
  382. Width = 379
  383. Height = 440
  384. Align = alClient
  385. Font.Charset = ANSI_CHARSET
  386. Font.Color = clWindowText
  387. Font.Height = -19
  388. Font.Name = 'Tahoma'
  389. Font.Style = [fsBold]
  390. ParentFont = False
  391. TabOrder = 1
  392. object PanelFPS: TPanel
  393. Left = 1
  394. Top = 1
  395. Width = 377
  396. Height = 48
  397. Align = alTop
  398. Caption = 'FPS'
  399. Font.Charset = ANSI_CHARSET
  400. Font.Color = clWindowText
  401. Font.Height = -19
  402. Font.Name = 'Trebuchet MS'
  403. Font.Style = []
  404. ParentFont = False
  405. TabOrder = 0
  406. end
  407. object GLSceneViewer1: TGLSceneViewer
  408. Left = 1
  409. Top = 49
  410. Width = 377
  411. Height = 390
  412. Camera = GLCamera1
  413. Buffer.AntiAliasing = aa4x
  414. FieldOfView = 150.288558959960900000
  415. PenAsTouch = False
  416. Align = alClient
  417. OnMouseDown = GLSceneViewer1MouseDown
  418. OnMouseMove = GLSceneViewer1MouseMove
  419. TabOrder = 1
  420. end
  421. end
  422. object GLScene1: TGLScene
  423. Left = 40
  424. Top = 80
  425. object GLLightSource1: TGLLightSource
  426. Ambient.Color = {0000803F0000803F0000803F0000803F}
  427. ConstAttenuation = 1.000000000000000000
  428. Position.Coordinates = {0000000000002041000000000000803F}
  429. LightStyle = lsOmni
  430. Specular.Color = {0000803F0000803F0000803F0000803F}
  431. SpotCutOff = 180.000000000000000000
  432. end
  433. object GLFreeForm1: TGLFreeForm
  434. Material.MaterialLibrary = GLMaterialLibrary1
  435. Material.LibMaterialName = 'LibMaterial'
  436. Direction.Coordinates = {000000000000803F0000000000000000}
  437. Scale.Coordinates = {8FC2F53C8FC2F53C8FC2F53C00000000}
  438. Up.Coordinates = {0000000000000000000080BF00000000}
  439. AutoCentering = [macCenterX, macCenterY]
  440. end
  441. object GLXYZGrid1: TGLXYZGrid
  442. XSamplingScale.Min = -2.000000000000000000
  443. XSamplingScale.Max = 2.000000000000000000
  444. XSamplingScale.Step = 0.100000001490116100
  445. YSamplingScale.Step = 0.100000001490116100
  446. ZSamplingScale.Min = -2.000000000000000000
  447. ZSamplingScale.Max = 2.000000000000000000
  448. ZSamplingScale.Step = 0.100000001490116100
  449. Parts = [gpX, gpZ]
  450. end
  451. object GLDummyCube1: TGLDummyCube
  452. Position.Coordinates = {000000003333333F000000000000803F}
  453. CubeSize = 1.000000000000000000
  454. end
  455. object GLCamera1: TGLCamera
  456. DepthOfView = 100.000000000000000000
  457. FocalLength = 50.000000000000000000
  458. TargetObject = GLDummyCube1
  459. CameraStyle = csInfinitePerspective
  460. Position.Coordinates = {0000004000004040000080400000803F}
  461. end
  462. end
  463. object GLMaterialLibrary1: TGLMaterialLibrary
  464. Materials = <
  465. item
  466. Name = 'LibMaterial'
  467. Tag = 0
  468. Material.FrontProperties.Ambient.Color = {8988083E00000000000000000000803F}
  469. Material.FrontProperties.Diffuse.Color = {DBDADA3ED5D4543EA1A0A03D0000803F}
  470. Material.FrontProperties.Shininess = 128
  471. Material.FrontProperties.Specular.Color = {EDEC6C3EDDDC5C3ED5D4543E0000803F}
  472. Shader = CgShader1
  473. end>
  474. Left = 40
  475. Top = 136
  476. end
  477. object GLCadencer1: TGLCadencer
  478. Scene = GLScene1
  479. OnProgress = GLCadencer1Progress
  480. Left = 112
  481. Top = 80
  482. end
  483. object CgShader1: TCgShader
  484. VertexProgram.OnApply = CgShader1ApplyVP
  485. OnApplyVP = CgShader1ApplyVP
  486. OnInitialize = CgShader1Initialize
  487. Left = 184
  488. Top = 80
  489. end
  490. object Timer1: TTimer
  491. OnTimer = Timer1Timer
  492. Left = 260
  493. Top = 80
  494. end
  495. end