phong.cpp 988 B

123456789101112131415161718192021222324252627282930
  1. /*: Per-Pixel phong shading demo.
  2. The TGLPhongShader implements phong shading through the use of an
  3. ARB vertex and fragment program. So far only the material and light
  4. properties are supported, some form of texture support will be
  5. added in future updates.
  6. */
  7. //---------------------------------------------------------------------------
  8. #include <vcl.h>
  9. #pragma hdrstop
  10. USERES("phong.res");
  11. USEFORM("Unit1.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. //---------------------------------------------------------------------------