Unit1.dfm 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. object Form1: TForm1
  2. Left = 0
  3. Top = 0
  4. Caption = 'Render To Texture'
  5. ClientHeight = 508
  6. ClientWidth = 805
  7. Color = clBtnFace
  8. Font.Charset = DEFAULT_CHARSET
  9. Font.Color = clWindowText
  10. Font.Height = -11
  11. Font.Name = 'Tahoma'
  12. Font.Style = []
  13. OldCreateOrder = False
  14. OnCreate = FormCreate
  15. PixelsPerInch = 96
  16. TextHeight = 13
  17. object GLSceneViewer1: TGLSceneViewer
  18. Left = 0
  19. Top = 0
  20. Width = 701
  21. Height = 508
  22. Camera = GLCamera1
  23. Buffer.BackgroundColor = clGray
  24. FieldOfView = 157.727386474609400000
  25. Align = alClient
  26. TabOrder = 0
  27. end
  28. object Panel1: TPanel
  29. Left = 701
  30. Top = 0
  31. Width = 104
  32. Height = 508
  33. Align = alRight
  34. TabOrder = 1
  35. object Label1: TLabel
  36. Left = 6
  37. Top = 8
  38. Width = 60
  39. Height = 19
  40. Caption = 'Options'
  41. Font.Charset = DEFAULT_CHARSET
  42. Font.Color = clWindowText
  43. Font.Height = -16
  44. Font.Name = 'Arial'
  45. Font.Style = [fsBold]
  46. ParentFont = False
  47. end
  48. object CheckBox1: TCheckBox
  49. Left = 6
  50. Top = 128
  51. Width = 57
  52. Height = 17
  53. Caption = 'VSync'
  54. TabOrder = 0
  55. OnClick = CheckBox1Click
  56. end
  57. object SB: TRadioGroup
  58. Left = 6
  59. Top = 151
  60. Width = 91
  61. Height = 89
  62. Caption = 'Texture size'
  63. ItemIndex = 2
  64. Items.Strings = (
  65. '256x256'
  66. '512x512'
  67. '2048x2048')
  68. TabOrder = 1
  69. OnClick = SBClick
  70. end
  71. object RB: TRadioGroup
  72. Left = 6
  73. Top = 33
  74. Width = 91
  75. Height = 89
  76. Caption = 'Texture frame'
  77. ItemIndex = 0
  78. Items.Strings = (
  79. '1:1'
  80. '1:2'
  81. '1:10')
  82. TabOrder = 2
  83. OnClick = RBClick
  84. end
  85. end
  86. object GLScene1: TGLScene
  87. Left = 32
  88. Top = 24
  89. object GLLightSource1: TGLLightSource
  90. Ambient.Color = {9A99993E9A99993E9A99993E0000803F}
  91. ConstAttenuation = 1.000000000000000000
  92. Position.Coordinates = {0000A0400000A0400000A0400000803F}
  93. Specular.Color = {0000803F0000803F0000803F0000803F}
  94. SpotCutOff = 180.000000000000000000
  95. end
  96. object GLDirectOpenGL1: TGLDirectOpenGL
  97. UseBuildList = False
  98. OnRender = GLDirectOpenGL1Render
  99. Blend = False
  100. end
  101. object GLFBORenderer1: TGLFBORenderer
  102. Active = False
  103. Width = 2048
  104. Height = 2048
  105. ColorTextureName = 'pong'
  106. MaterialLibrary = GLMaterialLibrary1
  107. BackgroundColor.Color = {0000803F00000000000000000000803F}
  108. ClearOptions = [coColorBufferClear, coDepthBufferClear]
  109. Camera = GLCamera1
  110. SceneScaleFactor = 512.000000000000000000
  111. RootObject = GLCube1
  112. EnabledRenderBuffers = [erbDepth]
  113. AfterRender = GLFBORenderer1AfterRender
  114. end
  115. object GLFBORenderer2: TGLFBORenderer
  116. Active = False
  117. Width = 2048
  118. Height = 2048
  119. ColorTextureName = 'ping'
  120. MaterialLibrary = GLMaterialLibrary1
  121. BackgroundColor.Color = {0000803F00000000000000000000803F}
  122. ClearOptions = [coColorBufferClear, coDepthBufferClear]
  123. Camera = GLCamera1
  124. SceneScaleFactor = 512.000000000000000000
  125. RootObject = GLCube1
  126. EnabledRenderBuffers = [erbDepth]
  127. AfterRender = GLFBORenderer2AfterRender
  128. end
  129. object GLCube1: TGLCube
  130. Material.MaterialLibrary = GLMaterialLibrary1
  131. Material.LibMaterialName = 'ping'
  132. CubeSize = {000000400000004000000040}
  133. end
  134. object GLCamera1: TGLCamera
  135. DepthOfView = 100.000000000000000000
  136. FocalLength = 50.000000000000000000
  137. TargetObject = GLCube1
  138. Position.Coordinates = {0000004000000040000000400000803F}
  139. end
  140. end
  141. object GLCadencer1: TGLCadencer
  142. Scene = GLScene1
  143. OnProgress = GLCadencer1Progress
  144. Left = 32
  145. Top = 72
  146. end
  147. object GLMaterialLibrary1: TGLMaterialLibrary
  148. Materials = <
  149. item
  150. Name = 'ping'
  151. Tag = 0
  152. Material.DepthProperties.DepthClamp = True
  153. Material.Texture.ImageClassName = 'TGLBlankImage'
  154. Material.Texture.Image.ColorFormat = 6408
  155. Material.Texture.TextureMode = tmModulate
  156. Material.Texture.FilteringQuality = tfAnisotropic
  157. Material.Texture.Disabled = False
  158. end
  159. item
  160. Name = 'pong'
  161. Tag = 0
  162. Material.Texture.ImageClassName = 'TGLBlankImage'
  163. Material.Texture.Image.ColorFormat = 6408
  164. Material.Texture.TextureMode = tmModulate
  165. Material.Texture.FilteringQuality = tfAnisotropic
  166. Material.Texture.Disabled = False
  167. end>
  168. Left = 160
  169. Top = 24
  170. end
  171. object Timer1: TTimer
  172. OnTimer = Timer1Timer
  173. Left = 160
  174. Top = 80
  175. end
  176. object GLSimpleNavigation1: TGLSimpleNavigation
  177. Form = Owner
  178. GLSceneViewer = GLSceneViewer1
  179. FormCaption = 'RenderToTexture - %FPS'
  180. KeyCombinations = <
  181. item
  182. ShiftState = [ssLeft, ssRight]
  183. Action = snaZoom
  184. end
  185. item
  186. ShiftState = [ssLeft]
  187. Action = snaMoveAroundTarget
  188. end
  189. item
  190. ShiftState = [ssRight]
  191. Action = snaMoveAroundTarget
  192. end>
  193. Left = 288
  194. Top = 24
  195. end
  196. end