BasicSDL.dpr 870 B

12345678910111213141516171819202122232425262728
  1. (*
  2. Basic demo for using the SDLViewer in GLScene.
  3. The SDL Viewer allows to use SDL for setting up OpenGL, but still render
  4. with GLScene. The main differences are that SDL has no design-time preview
  5. and for SDL 1.2 you may have standard forms around it, but as soon as the SDL
  6. window is closed, the application terminates.
  7. The SDL viewer is more suited for games or simple apps that aim for
  8. cross-platform support, for SDL is available on multiple platforms.
  9. SDL also provides several game-related support APIs for sound, controlers,
  10. video etc. (see http://www.libsdl.org).
  11. The rendered scene is similar to the one in the materials/cubemap demo.
  12. *)
  13. program BasicSDL;
  14. uses
  15. Forms,
  16. BasicSDLFm in 'BasicSDLFm.pas';
  17. {$R *.res}
  18. begin
  19. Application.Initialize;
  20. Application.CreateForm(TDataModule1, DataModule1);
  21. Application.Run;
  22. end.