Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

sdlmm_videoinfo.cpp

Go to the documentation of this file.
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 #include "sdlmm_config.h"
00022 
00023 #include <SDL.h>
00024 #include "sdlmm_videoinfo.h"
00025 
00026 // file desc here
00027 namespace SDLmm {
00028 
00029   bool VideoInfo::GetVideoInfo() {
00030     me =  SDL_GetVideoInfo();
00031     return me != 0;
00032   }
00033 
00034   bool VideoInfo::hw_available() {
00035     return VideoInfo::me->hw_available;
00036   }
00037 
00038   bool VideoInfo::wm_available() {
00039     return VideoInfo::me->wm_available;
00040   }
00041 
00042   bool VideoInfo::blit_hw() {
00043     return VideoInfo::me->blit_hw;
00044   }
00045 
00046   bool VideoInfo::blit_hw_CC() {
00047     return VideoInfo::me->blit_hw_CC;
00048   }
00049 
00050   bool VideoInfo::blit_hw_A() {
00051     return VideoInfo::me->blit_hw_A;
00052   }
00053 
00054   bool VideoInfo::blit_sw() {
00055     return VideoInfo::me->blit_sw;
00056   }
00057 
00058   bool VideoInfo::blit_sw_CC() {
00059     return VideoInfo::me->blit_sw_CC;
00060   }
00061 
00062   bool VideoInfo::blit_sw_A() {
00063     return VideoInfo::me->blit_sw_A;
00064   }
00065 
00066   bool VideoInfo::blit_fill() {
00067     return VideoInfo::me->blit_fill;
00068   }
00069 
00070   Uint32 VideoInfo::video_mem() {
00071     return VideoInfo::me->video_mem;
00072   }
00073 }
00074 

Documentation automatically generated by doxygen written by Dimitri van Heesch. Project hosted at
Hosted by SourceForge