| 1 | // LAF OS Library |
| 2 | // Copyright (C) 2012-2013 David Capello |
| 3 | // |
| 4 | // This file is released under the terms of the MIT license. |
| 5 | // Read LICENSE.txt for more information. |
| 6 | |
| 7 | #ifndef OS_SURFACE_FORMAT_H_INCLUDED |
| 8 | #define OS_SURFACE_FORMAT_H_INCLUDED |
| 9 | #pragma once |
| 10 | |
| 11 | namespace os { |
| 12 | |
| 13 | enum SurfaceFormat { |
| 14 | kRgbaSurfaceFormat, |
| 15 | }; |
| 16 | |
| 17 | struct SurfaceFormatData { |
| 18 | SurfaceFormat format; |
| 19 | uint32_t bitsPerPixel; |
| 20 | uint32_t redShift; |
| 21 | uint32_t greenShift; |
| 22 | uint32_t blueShift; |
| 23 | uint32_t alphaShift; |
| 24 | uint32_t redMask; |
| 25 | uint32_t greenMask; |
| 26 | uint32_t blueMask; |
| 27 | uint32_t alphaMask; |
| 28 | }; |
| 29 | |
| 30 | } // namespace os |
| 31 | |
| 32 | #endif |
| 33 | |