fSimpleNaviD.pas 951 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. unit fSimpleNaviD;
  2. interface
  3. uses
  4. Winapi.OpenGL,
  5. System.SysUtils,
  6. System.Variants,
  7. System.Classes,
  8. Vcl.Graphics,
  9. Vcl.Controls,
  10. Vcl.Forms,
  11. Vcl.Dialogs,
  12. GLS.Scene,
  13. GLS.Objects,
  14. GLS.SceneViewer,
  15. GLS.Cadencer,
  16. GLS.SimpleNavigation,
  17. GLS.Coordinates,
  18. GLS.BaseClasses;
  19. type
  20. TFormSimpleNavigation = class(TForm)
  21. GLScene1: TGLScene;
  22. GLSceneViewer1: TGLSceneViewer;
  23. GLCamera1: TGLCamera;
  24. GLCadencer1: TGLCadencer;
  25. GLCube1: TGLCube;
  26. GLLightSource1: TGLLightSource;
  27. GLSimpleNavigation1: TGLSimpleNavigation;
  28. procedure GLCadencer1Progress(Sender: TObject; const deltaTime,
  29. newTime: Double);
  30. private
  31. public
  32. end;
  33. var
  34. FormSimpleNavigation: TFormSimpleNavigation;
  35. implementation
  36. {$R *.dfm}
  37. procedure TFormSimpleNavigation.GLCadencer1Progress(Sender: TObject; const deltaTime,
  38. newTime: Double);
  39. begin
  40. GLSceneViewer1.Invalidate;
  41. GLCube1.Turn(-0.05);
  42. end;
  43. end.