Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members

SceneTexture.h

00001 
00002 
00003 #ifndef __SCENETEXTURE_H_
00004 #define __SCENETEXTURE_H_
00005 /*
00006 Peon - Win32 Games Programming Library
00007 Copyright (C) 2002-2005 Erik Yuzwa
00008 
00009 This library is free software; you can redistribute it and/or
00010 modify it under the terms of the GNU Library General Public
00011 License as published by the Free Software Foundation; either
00012 version 2 of the License, or (at your option) any later version.
00013 
00014 This library is distributed in the hope that it will be useful,
00015 but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00017 Library General Public License for more details.
00018 
00019 You should have received a copy of the GNU Library General Public
00020 License along with this library; if not, write to the Free
00021 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00022 
00023 Erik Yuzwa
00024 peon AT wazooinc DOT com
00025 */
00026 
00027 
00028 #include "IUnknown.h"
00029 
00030 #include <SDL_image.h>
00031 
00032 
00033 namespace peon
00034 {
00042         class PEONMAIN_API SceneTexture : public IUnknown
00043         {
00044         protected:
00046                 GLuint m_tex;
00047 
00048         protected:
00057                 Uint32 getPixel(SDL_Surface *surface, int x, int y);
00058 
00059         public:
00063                 SceneTexture();
00064 
00068                 ~SceneTexture();
00069 
00080                 bool loadImage( const String& strFilename, bool bAlpha,
00081                         bool bMipMaps, bool bRepeat );
00082 
00087                 GLuint getTex(){ return m_tex; }
00088 
00089         };
00090 }
00091 
00092 #endif
00093 

Generated on Thu Dec 1 01:55:40 2005 for Peon by  doxygen 1.4.1