| 130 | |
| 131 | #if ! defined( CINDER_GL_ES ) || defined( CINDER_GL_ANGLE ) |
| 132 | void parseDds( const DataSourceRef &dataSource, TextureData *resultData ) |
| 133 | { |
| 134 | typedef struct { // DDCOLORKEY |
| 135 | uint32_t dw1; |
| 136 | uint32_t dw2; |
| 137 | } ddColorKey; |
| 138 | |
| 139 | typedef struct { // DDSCAPS2 |
| 140 | uint32_t dwCaps1; |
| 141 | uint32_t dwCaps2; |
| 142 | uint32_t Reserved[2]; |
| 143 | } ddCaps2; |
| 144 | |
| 145 | typedef struct { // DDPIXELFORMAT |
| 146 | uint32_t dwSize; |
| 147 | uint32_t dwFlags; |
| 148 | uint32_t dwFourCC; |
| 149 | union { |
| 150 | uint32_t dwRGBBitCount; |
| 151 | uint32_t dwYUVBitCount; |
| 152 | uint32_t dwZBufferBitDepth; |
| 153 | uint32_t dwAlphaBitDepth; |
| 154 | uint32_t dwLuminanceBitCount; |
| 155 | uint32_t dwBumpBitCount; |
| 156 | uint32_t dwPrivateFormatBitCount; |
| 157 | } ; |
| 158 | union { |
| 159 | uint32_t dwRBitMask; |
| 160 | uint32_t dwYBitMask; |
| 161 | uint32_t dwStencilBitDepth; |
| 162 | uint32_t dwLuminanceBitMask; |
| 163 | uint32_t dwBumpDuBitMask; |
| 164 | uint32_t dwOperations; |
| 165 | } ; |
| 166 | union { |
| 167 | uint32_t dwGBitMask; |
| 168 | uint32_t dwUBitMask; |
| 169 | uint32_t dwZBitMask; |
| 170 | uint32_t dwBumpDvBitMask; |
| 171 | struct { |
| 172 | uint16_t wFlipMSTypes; |
| 173 | uint16_t wBltMSTypes; |
| 174 | } MultiSampleCaps; |
| 175 | }; |
| 176 | union { |
| 177 | uint32_t dwBBitMask; |
| 178 | uint32_t dwVBitMask; |
| 179 | uint32_t dwStencilBitMask; |
| 180 | uint32_t dwBumpLuminanceBitMask; |
| 181 | }; |
| 182 | union { |
| 183 | uint32_t dwRGBAlphaBitMask; |
| 184 | uint32_t dwYUVAlphaBitMask; |
| 185 | uint32_t dwLuminanceAlphaBitMask; |
| 186 | uint32_t dwRGBZBitMask; |
| 187 | uint32_t dwYUVZBitMask; |
| 188 | } ; |
| 189 | } DdPixelFormat; |
no test coverage detected