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

sdlmm_surface.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_surface.h"
00025 
00026 // The SDLmm::Surface class.
00027 
00028 namespace SDLmm {
00029 
00030   bool Surface::SetDisplayFormat() {
00031     SDL_Surface *tmp = SDL_DisplayFormat(me);
00032     if(!tmp) return false;
00033     SetSurface(tmp);
00034     return true;
00035   }
00036 
00037   bool Surface::SetDisplayFormatAlpha() {
00038     SDL_Surface *tmp = SDL_DisplayFormatAlpha(me);
00039     if(!tmp) return false;
00040     SetSurface(tmp);
00041     return true;
00042   }
00043 }
00044 
00045 

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