GlsScriptFm.dfm 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. object Form1: TForm1
  2. Left = 192
  3. Top = 107
  4. Width = 710
  5. Height = 371
  6. Caption = 'DWS2 Scripted GLDirectOpenGL'
  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. OldCreateOrder = False
  14. Position = poScreenCenter
  15. OnCreate = FormCreate
  16. OnDestroy = FormDestroy
  17. PixelsPerInch = 96
  18. TextHeight = 13
  19. object GLSceneViewer1: TGLSceneViewer
  20. Left = 0
  21. Top = 0
  22. Width = 342
  23. Height = 344
  24. Camera = GLCamera1
  25. Align = alClient
  26. OnMouseDown = GLSceneViewer1MouseDown
  27. OnMouseMove = GLSceneViewer1MouseMove
  28. end
  29. object Panel2: TPanel
  30. Left = 342
  31. Top = 0
  32. Width = 360
  33. Height = 344
  34. Align = alRight
  35. Caption = 'Panel2'
  36. TabOrder = 1
  37. DesignSize = (
  38. 360
  39. 344)
  40. object CompileButton: TButton
  41. Left = 8
  42. Top = 8
  43. Width = 75
  44. Height = 25
  45. Caption = 'Compile'
  46. TabOrder = 0
  47. OnClick = CompileButtonClick
  48. end
  49. object Script: TMemo
  50. Left = 8
  51. Top = 40
  52. Width = 345
  53. Height = 297
  54. Anchors = [akLeft, akTop, akRight, akBottom]
  55. Font.Charset = DEFAULT_CHARSET
  56. Font.Color = clWindowText
  57. Font.Height = -11
  58. Font.Name = 'Courier New'
  59. Font.Style = []
  60. Lines.Strings = (
  61. 'glBegin(GL_QUADS);'
  62. ''
  63. ' glNormal3f( 0, 0, 1);'
  64. ' glVertex3f( 0.5, 0.5, 0.5);'
  65. ' glVertex3f(-0.5, 0.5, 0.5);'
  66. ' glVertex3f(-0.5, -0.5, 0.5);'
  67. ' glVertex3f( 0.5, -0.5, 0.5);'
  68. ''
  69. ' glNormal3f( 0, 0, -1);'
  70. ' glVertex3f( 0.5, 0.5, -0.5);'
  71. ' glVertex3f( 0.5, -0.5, -0.5);'
  72. ' glVertex3f(-0.5, -0.5, -0.5);'
  73. ' glVertex3f(-0.5, 0.5, -0.5);'
  74. ''
  75. ' glNormal3f(-1, 0, 0);'
  76. ' glVertex3f(-0.5, 0.5, 0.5);'
  77. ' glVertex3f(-0.5, 0.5, -0.5);'
  78. ' glVertex3f(-0.5, -0.5, -0.5);'
  79. ' glVertex3f(-0.5, -0.5, 0.5);'
  80. ''
  81. ' glNormal3f(1, 0, 0);'
  82. ' glVertex3f(0.5, 0.5, 0.5);'
  83. ' glVertex3f(0.5, -0.5, 0.5);'
  84. ' glVertex3f(0.5, -0.5, -0.5);'
  85. ' glVertex3f(0.5, 0.5, -0.5);'
  86. ''
  87. ' glNormal3f( 0, 1, 0);'
  88. ' glVertex3f(-0.5, 0.5, -0.5);'
  89. ' glVertex3f(-0.5, 0.5, 0.5);'
  90. ' glVertex3f( 0.5, 0.5, 0.5);'
  91. ' glVertex3f( 0.5, 0.5, -0.5);'
  92. ''
  93. ' glNormal3f( 0, -1, 0);'
  94. ' glVertex3f(-0.5, -0.5, -0.5);'
  95. ' glVertex3f( 0.5, -0.5, -0.5);'
  96. ' glVertex3f( 0.5, -0.5, 0.5);'
  97. ' glVertex3f(-0.5, -0.5, 0.5);'
  98. ''
  99. 'glEnd;')
  100. ParentFont = False
  101. ScrollBars = ssBoth
  102. TabOrder = 1
  103. WordWrap = False
  104. end
  105. end
  106. object GLDelphiWebScript: TGLDelphiWebScript
  107. Config.CompilerOptions = []
  108. Config.MaxDataSize = 0
  109. Config.Timeout = 0
  110. Left = 432
  111. Top = 8
  112. end
  113. object dws2OpenGLxUnit1: Tdws2OpenGLxUnit
  114. Script = GLDelphiWebScript
  115. Left = 496
  116. Top = 8
  117. end
  118. object GLScene1: TGLScene
  119. Left = 8
  120. Top = 8
  121. object GLDummyCube1: TGLDummyCube
  122. CubeSize = 1
  123. object GLCamera1: TGLCamera
  124. DepthOfView = 100
  125. FocalLength = 50
  126. TargetObject = GLDummyCube1
  127. Position.Coordinates = {0000803F00000040000040400000803F}
  128. object GLLightSource1: TGLLightSource
  129. ConstAttenuation = 1
  130. SpotCutOff = 180
  131. end
  132. end
  133. end
  134. object GLDirectOpenGL1: TGLDirectOpenGL
  135. UseBuildList = False
  136. OnRender = GLDirectOpenGL1Render
  137. Blend = False
  138. end
  139. object GLHUDText1: TGLHUDText
  140. Position.Coordinates = {0000204100002041000000000000803F}
  141. BitmapFont = GLWindowsBitmapFont1
  142. Alignment = taLeftJustify
  143. Layout = tlTop
  144. end
  145. end
  146. object GLCadencer1: TGLCadencer
  147. Scene = GLScene1
  148. OnProgress = GLCadencer1Progress
  149. Left = 8
  150. Top = 40
  151. end
  152. object AsyncTimer1: TGLAsyncTimer
  153. Enabled = True
  154. OnTimer = AsyncTimer1Timer
  155. ThreadPriority = tpHigher
  156. Left = 40
  157. Top = 40
  158. end
  159. object GLWindowsBitmapFont1: TGLWindowsBitmapFont
  160. Font.Charset = DEFAULT_CHARSET
  161. Font.Color = clWhite
  162. Font.Height = -11
  163. Font.Name = 'Arial'
  164. Font.Style = [fsBold]
  165. Left = 40
  166. Top = 8
  167. end
  168. object dws2VectorGeometryUnit1: Tdws2VectorGeometryUnit
  169. Script = GLDelphiWebScript
  170. Left = 464
  171. Top = 8
  172. end
  173. end