SplinesC.cpp 1.1 KB

123456789101112131415161718192021222324252627282930
  1. /*: This is a quick demo for the TGLLines object and spline functionality.
  2. TGLLines can handle normal lines and cubic splines, each node can have a
  3. different color, and the line can be color-interpolated.
  4. Note that the camera in this sample is in <i>orthogonal</i> mode, this makes
  5. for a quick and easy way to work in 2D with OpenGL (try switching the camera
  6. to perpective mode if you don't see the point).
  7. */
  8. //---------------------------------------------------------------------------
  9. #include <vcl.h>
  10. #pragma hdrstop
  11. USEFORM("fSplinesC.cpp", Form1);
  12. //---------------------------------------------------------------------------
  13. WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
  14. {
  15. try
  16. {
  17. Application->Initialize();
  18. Application->CreateForm(__classid(TForm1), &Form1);
  19. Application->Run();
  20. }
  21. catch (Exception &exception)
  22. {
  23. Application->ShowException(&exception);
  24. }
  25. return 0;
  26. }
  27. //---------------------------------------------------------------------------