Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.1 KiB

  1. #ifndef TEXTURE_H
  2. #define TEXTURE_H
  3. #include <stdlib.h>
  4. // change that to DISABLE = 0, when changing the UI
  5. enum { DISABLE = -1, OBJECT_LINEAR, EYE_LINEAR, SPHERE_MAP };
  6. enum { DECAL, MODULATE, BLEND };
  7. enum {
  8. NEAREST, LINEAR, NEAREST_MIPMAP_NEAREST,
  9. NEAREST_MIPMAP_LINEAR, LINEAR_MIPMAP_NEAREST, LINEAR_MIPMAP_LINEAR
  10. };
  11. typedef enum { NONE, EXTERNAL, COLOR_CHECKERS, MONO_CHECKERS } ImageType;
  12. enum { CLAMP, REPEAT };
  13. typedef struct {
  14. char acDummy1[16];
  15. BOOL bEnable1D;
  16. BOOL bEnable2D;
  17. BOOL bAutoGenQ;
  18. BOOL bAutoGenR;
  19. BOOL bAutoGenS;
  20. BOOL bAutoGenT;
  21. BOOL bBuildMipmap;
  22. int iWrapS;
  23. int iWrapT;
  24. int iQuality;
  25. int iGenModeS;
  26. int iGenModeT;
  27. int iGenModeR;
  28. int iGenModeQ;
  29. int iEnvMode;
  30. int aiFilter[4]; // 1 Min, 1 Mag, 2 Min, 2 Mag
  31. char szFileName[_MAX_PATH];
  32. byte cWhichImage;
  33. byte *acImage;
  34. float afBorderColor[4];
  35. int iWidth, iHeight, iBorder;
  36. char acDummy2[16];
  37. } TEXTUREDATA;
  38. void InitXD(TEXTUREDATA *pfd);
  39. void texture_init(TEXTUREDATA fd);
  40. #endif // TEXTURE_H