gltest.h 893 B

123456789101112131415161718192021222324252627282930313233343536
  1. //-----------------------------------------------------------------------------
  2. //
  3. // ImageLib GL Test Source
  4. // Copyright (C) 2000-2002 by Denton Woods
  5. // Last modified: 10/13/2000 <--Y2K Compliant! =]
  6. //
  7. // Filename: examples/gl example/gl example.h
  8. //
  9. // Description: Sample implementation of an OpenGL image viewer.
  10. //
  11. //-----------------------------------------------------------------------------
  12. #ifndef GLTEST_H
  13. #define GLTEST_H
  14. // We don't want a larger window than this.
  15. #define MAX_X 640
  16. #define MAX_Y 480
  17. // Function prototypes.
  18. void DisplayFunc(void);
  19. void CleanUp(void);
  20. void ResizeFunc(int NewWidth, int NewHeight);
  21. void IdleFunc(void);
  22. void KeyboardFunc(unsigned char cChar, int nMouseX, int nMouseY);
  23. ILboolean Setup();
  24. // Has the main GL texture been deleted?
  25. ILboolean bCleaned = 0;
  26. // GL texture ID
  27. GLuint TexID = 0;
  28. // IL image ID
  29. ILuint ImgId = 0;
  30. #endif//GLTEST_H