rinit.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*=============================================================================
  2. Name : rinit.h
  3. Purpose : rGL / OpenGL enumeration initialization routines
  4. Created 1/5/1999 by khent
  5. Copyright Relic Entertainment, Inc. All rights reserved.
  6. =============================================================================*/
  7. #ifndef _RINIT_H
  8. #define _RINIT_H
  9. typedef struct rmode
  10. {
  11. int width, height;
  12. int depth;
  13. struct rmode* next;
  14. } rmode;
  15. #define RIN_TYPE_OPENGL 1
  16. #define RIN_TYPE_DIRECT3D 2
  17. #define RIN_TYPE_SOFTWARE 4
  18. typedef struct rdevice
  19. {
  20. int type;
  21. char data[64];
  22. char name[64];
  23. unsigned int devcaps;
  24. unsigned int devcaps2;
  25. struct rmode* modes;
  26. struct rdevice* next;
  27. } rdevice;
  28. #ifdef __cplusplus
  29. extern "C" {
  30. #endif
  31. int rinEnumerateDevices(void);
  32. int rinFreeDevices(void);
  33. unsigned int rinDirectXVersion(void);
  34. rdevice* rinGetDeviceList(void);
  35. unsigned int rinDeviceCRC(void);
  36. #ifdef __cplusplus
  37. }
  38. #endif
  39. #endif