TexAnimD.dpr 650 B

12345678910111213141516171819202122
  1. {: This samples shows how to use a material library for texture animation.
  2. Texture animation is best handled via material switching (from a material
  3. library). Directly updating the texture image can get slow because of the
  4. overhead induces by preparing and uploading the texture to the 3D board.
  5. In this sample, we prepare a set of textures in a material library,
  6. then simply switch between them in a cadencer's "Progress" event.
  7. }
  8. program TexAnimD;
  9. uses
  10. Forms,
  11. fTexAnimD in 'fTexAnimD.pas' {FormTexAnim};
  12. {$R *.RES}
  13. begin
  14. Application.Initialize;
  15. Application.CreateForm(TFormTexAnim, FormTexAnim);
  16. Application.Run;
  17. end.