fCgSimpleC.dfm 13 KB

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