Debug system v2 -- now, it supports debug levels, there's a global level, but overrid...
[dbw.git] / src / video / sdl_masks.hpp
blob2ff068849f4b0537b7066b79744e498e78afb782
1 /*
2 Copyright © 2007-2008 Kővágó Zoltán <DirtY.iCE.hu@gmail.com>
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License
6 as published by the Free Software Foundation; either version 2
7 of the License, or (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 See the GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 #ifndef VIDEO_SDL_MASKS_HPP
22 #define VIDEO_SDL_MASKS_HPP
24 #include <SDL_endian.h>
26 namespace Video
29 #if SDL_BYTEORDER == SDL_BIG_ENDIAN
30 const unsigned int rmask = 0xff000000;
31 const unsigned int gmask = 0x00ff0000;
32 const unsigned int bmask = 0x0000ff00;
33 const unsigned int amask = 0x000000ff;
34 #else
35 const unsigned int rmask = 0x000000ff;
36 const unsigned int gmask = 0x0000ff00;
37 const unsigned int bmask = 0x00ff0000;
38 const unsigned int amask = 0xff000000;
39 #endif
43 #endif //VIDEO_SDL_MASKS_HPP