Advertisement
Brick

MM2 DDPIXELFORMAT's

Sep 26th, 2016
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.53 KB | None | 0 0
  1. DDPIXELFORMAT ddPixelFormats[8] = // 0x5CC638
  2. {
  3.     /*
  4.         dwSize
  5.         dwFlags
  6.         dwFourCC
  7.         dwRGBBitCount
  8.  
  9.         dwRBitMask
  10.         dwGBitMask
  11.         dwBBitMask
  12.         dwRGBAlphaBitMask
  13.     */
  14.    
  15.     { // A8R8G8B8
  16.         0x20,
  17.         DDPF_RGB | DDPF_ALPHAPIXELS,
  18.         0,
  19.         32,
  20.  
  21.         0x00FF0000,
  22.         0x0000FF00,
  23.         0x000000FF,
  24.         0xFF000000
  25.     },
  26.     { // A0R8G8B8
  27.         0x20,
  28.         DDPF_RGB,
  29.         0,
  30.         32,
  31.  
  32.         0x00FF0000,
  33.         0x0000FF00,
  34.         0x000000FF,
  35.         0x00000000
  36.     },
  37.     { // A1R5G5G5
  38.         0x20,
  39.         DDPF_RGB | DDPF_ALPHAPIXELS,
  40.         0,
  41.         16,
  42.  
  43.         0x7C00,
  44.         0x03E0,
  45.         0x001F,
  46.         0x8000
  47.     },
  48.     { // A4R4G4B4
  49.         0x20,
  50.         DDPF_RGB | DDPF_ALPHAPIXELS,
  51.         0,
  52.         16,
  53.  
  54.         0x0F00,
  55.         0x00F0,
  56.         0x000F,
  57.         0xF000
  58.     },
  59.     { // A0R5G6B5
  60.         0x20,
  61.         DDPF_RGB,
  62.         0,
  63.         16,
  64.  
  65.         0xF800,
  66.         0x07E0,
  67.         0x001F,
  68.         0x0000
  69.     },
  70.     { // A0R5G5B5
  71.         0x20,
  72.         DDPF_RGB,
  73.         0,
  74.         16,
  75.  
  76.         0x7C00,
  77.         0x03E0,
  78.         0x001F,
  79.         0x0000
  80.     },
  81.     { // Palette8
  82.         0x20,
  83.         DDPF_RGB | DDPF_PALETTEINDEXED8,
  84.         0,
  85.         8,
  86.  
  87.         0,
  88.         0,
  89.         0,
  90.         0
  91.     },
  92.     { // Palette4
  93.         0x20,
  94.         DDPF_RGB | DDPF_PALETTEINDEXED4,
  95.         0,
  96.         4,
  97.  
  98.         0,
  99.         0,
  100.         0,
  101.         0
  102.     },
  103. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement