Brick

gfxImage/gfxTexture

Oct 6th, 2016
231
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.78 KB | None | 0 0
  1. // enum TexEnvFlags
  2. // {
  3. //     Alpha    = 0x20000,
  4. //     Software = 0x40000,
  5. //     MipMap   = 0x80000
  6. // }
  7.  
  8. struct gfxBitmap
  9. {
  10.     void *lpAlloc;
  11.     short Width;
  12.     short Height;
  13.     IDirectDrawSurface7 *DDrawSurface;
  14.     unsigned int RefCount;
  15.     gfxBitmap *PreviousBitmap;
  16. };
  17.  
  18. struct gfxImage
  19. {
  20.     enum gfxImageFormat
  21.     {
  22.         ARGB_8888 = 1,
  23.         RGB_0888  = 2,
  24.         ARGB_1555 = 3,
  25.         RGB_0555  = 4, // 555 or 565
  26.         Palette8  = 5,
  27.         Palette4  = 6,
  28.     };
  29.  
  30.     short Width;
  31.     short Height;
  32.     short Size;
  33.     short Type; // gfxImageFormat
  34.     unsigned int TexEnv;
  35.     void *lpImage;
  36.     unsigned int *Array14;
  37.     unsigned int RefCount;
  38.     gfxImage *PreviousImage;
  39.     unsigned int dword20;
  40.     unsigned int dword24;
  41. };
  42.  
  43. struct gfxTexture
  44. {
  45.     unsigned int VglBindIndex;
  46.     const char *Name;
  47.     unsigned short Width;
  48.     unsigned short Height;
  49.     unsigned int TexEnv;
  50.     unsigned int DominantColor;
  51.     IDirectDrawSurface7 *DirectDrawSurface;
  52.     IDirectDrawPalette *DirectDrawPalette;
  53.     gfxTextureCacheEntry *CacheEntry;
  54.     gfxTextureCachePool *CachePool;
  55.     unsigned int RefCount;
  56.     gfxTexture *PrevLOD;
  57.     gfxTexture *NextLOD;
  58.     unsigned char MaxLODCount;
  59.     unsigned char LODCount;
  60. };
  61.  
  62. struct gfxTextureCachePool
  63. {
  64.     unsigned short Width;
  65.     unsigned short Height;
  66.     unsigned short MipMapCount;
  67.     unsigned short TextureCount;
  68.     unsigned short EntryCount;
  69.     unsigned short HasNoSurface;
  70.     gfxTextureCacheEntry *FirstEntry;
  71.     gfxTextureCachePool *PrevPool;
  72.     DDPIXELFORMAT PixelFormat;
  73. };
  74.  
  75. struct gfxTextureCacheEntry
  76. {
  77.     gfxTexture *GfxTexture;
  78.     IDirectDrawSurface7 *DirectDrawSurface;
  79.     unsigned int LastAccessTime;
  80.     gfxTextureCacheEntry *PrevEntry;
  81. };
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment