GlsScript.dpr 811 B

12345678910111213141516171819202122232425262728
  1. (* Scripted OpenGL.
  2. This demo shows how DWS2 can be used to script OpenGL
  3. calls. While this demo simply draws a cube, the same
  4. principles could easily be applied to a user shader
  5. to allow for scripted shading of materials. Try adding
  6. to or changing the script and press compile to see the
  7. results. If there is an error in the script it will
  8. be displayed in the HUD text object.
  9. Not all OpenGL functions are available, but most of the
  10. commonly used functions are supplied and almost all
  11. of the constants. The list of supported functions can
  12. be advanced in the future should the need arise.
  13. *)
  14. program GlsScript;
  15. uses
  16. Vcl.Forms,
  17. GlsScriptFm in 'GlsScriptFm.pas';
  18. {$R *.res}
  19. begin
  20. Application.Initialize;
  21. Application.CreateForm(TForm1, Form1);
  22. Application.Run;
  23. end.