CustomQuad.dpr 790 B

1234567891011121314151617181920212223242526
  1. {: Using materials in a TGLDirectOpenGL OnRender.
  2. This demo shows how to dynamically create materials in a material library
  3. and use them in a TGLDirectOpenGL to render your own stuff.
  4. The render is quite simple: two quads, each with its own texture. The
  5. TGLDirectOpenGL is placed in a small hierarchy with a torus and dummy cube,
  6. and the rotation animation are handled by those two object to show that
  7. the OnRender code uses the hierarchy.
  8. <b>History : </b><font size=-1><ul>
  9. <li>21/04/10 - Yar - Removed direct state changing
  10. </ul></font>
  11. }
  12. program CustomQuad;
  13. uses
  14. Forms,
  15. fCustomQuad in 'fCustomQuad.pas' {FormCustomQuad};
  16. {$R *.RES}
  17. begin
  18. Application.Initialize;
  19. Application.CreateForm(TFormCustomQuad, FormCustomQuad);
  20. Application.Run;
  21. end.