CustomQuadD.dpr 685 B

123456789101112131415161718192021222324
  1. (*
  2. Using materials in a TGLDirectOpenGL OnRender.
  3. This demo shows how to dynamically create materials in a material library
  4. and use them in a TGLDirectOpenGL to render your own stuff.
  5. The render is quite simple: two quads, each with its own texture. The
  6. TGLDirectOpenGL is placed in a small hierarchy with a torus and dummy cube,
  7. and the rotation animation are handled by those two object to show that
  8. the OnRender code uses the hierarchy.
  9. *)
  10. program CustomQuadD;
  11. uses
  12. Forms,
  13. fCustomQuadD in 'fCustomQuadD.pas' {FormCustomQuad};
  14. {$R *.RES}
  15. begin
  16. Application.Initialize;
  17. Application.CreateForm(TFormCustomQuad, FormCustomQuad);
  18. Application.Run;
  19. end.