shadowvolumes.cpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. /*: Shadow volumes demo.
  2. This demo is under construction...
  3. 246 (what?)
  4. <b>History : </b><font size=-1><ul>
  5. <li>29/11/03 - MF - Items now self shadow, and a new cylinder was added.
  6. Both changes are intended to demonstrate the problems of darkening.
  7. <li>?/?/03 - EG - Creation (based on code from Mattias Fagerlund)
  8. </ul></font>
  9. */
  10. //---------------------------------------------------------------------------
  11. #include <vcl.h>
  12. #pragma hdrstop
  13. USERES("shadowvolumes.res");
  14. USEFORM("Unit1.cpp", Form1);
  15. //---------------------------------------------------------------------------
  16. WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
  17. {
  18. try
  19. {
  20. Application->Initialize();
  21. Application->CreateForm(__classid(TForm1), &Form1);
  22. Application->Run();
  23. }
  24. catch (Exception &exception)
  25. {
  26. Application->ShowException(&exception);
  27. }
  28. return 0;
  29. }
  30. //---------------------------------------------------------------------------