00001 /* 00002 * SDLmm - a C++ wrapper for SDL and related libraries 00003 * Copyright © 2001 David Hedbor <david@hedbor.org> 00004 * 00005 * This program is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU General Public License as 00007 * published by the Free Software Foundation; either version 2 of the 00008 * License, or (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, but 00011 * WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 * General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software 00017 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00018 * 00019 */ 00020 00021 // SDL Video Info class. 00022 00023 #ifndef SDLMM_VIDEOINFO_H 00024 #define SDLMM_VIDEOINFO_H 00025 00026 #include "sdlmm_pixelformat.h" 00027 00028 namespace SDLmm { 00030 00043 class VideoInfo { 00044 public: 00046 00052 const SDL_VideoInfo *me; 00053 00055 00063 bool GetVideoInfo(); 00064 00066 bool hw_available(); 00067 00069 bool wm_available(); 00070 00072 bool blit_hw(); 00073 00075 bool blit_hw_CC(); 00076 00078 bool blit_hw_A(); 00079 00081 bool blit_sw(); 00082 00084 bool blit_sw_CC(); 00085 00087 bool blit_sw_A(); 00088 00090 bool blit_fill(); 00091 00093 Uint32 video_mem(); 00094 00096 const PixelFormat GetPixelFormat() const { return PixelFormat(me->vfmt); } 00097 PixelFormat GetPixelFormat() { return PixelFormat(me->vfmt); } 00098 }; 00099 } 00100 #endif // SDLMM_VIDEOINFO_H 00101
Documentation automatically generated by written by Dimitri van Heesch. |
Project hosted at |