K2dImage.h

Go to the documentation of this file.
00001 
00012 /***************************************************************************
00013  *   Copyright (C) 2007 by Jan Koci   *
00014  *   honza.koci@email.cz   *
00015  *   http://kengine.sourceforge.net/tutorial/
00016  *                                                                         *
00017  *   This program is free software; you can redistribute it and/or modify  *
00018  *   it under the terms of the GNU General Public License as published by  *
00019  *   the Free Software Foundation; either version 2 of the License, or     *
00020  *   (at your option) any later version.                                   *
00021  *                                                                         *
00022  *   This program is distributed in the hope that it will be useful,       *
00023  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00024  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00025  *   GNU General Public License for more details.                          *
00026  *                                                                         *
00027  *   You should have received a copy of the GNU General Public License     *
00028  *   along with this program; if not, write to the                         *
00029  *   Free Software Foundation, Inc.,                                       *
00030  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00031  ***************************************************************************/
00032 
00033 #pragma once
00034 
00035 #include <SDL/SDL.h>
00036 #include <SDL/SDL_opengl.h>
00037 #include <SDL/SDL_image.h>
00038 
00039 class K2dImage
00040 {
00041                 SDL_Rect m_tRect;               
00042                 bool m_bBlend;                  
00043                 GLuint m_iTextureId;    
00044         public:
00045                 K2dImage ( void );
00046                 ~K2dImage ( void );
00047 
00050                 void SetRectangle ( const SDL_Rect _tRect )
00051                 {
00052                         m_tRect = _tRect;
00053                 }
00056                 SDL_Rect GetRectangle()
00057                 {
00058                         return m_tRect;
00059                 }
00060 
00063                 void SetBlend ( const bool _bBlend )
00064                 {
00065                         m_bBlend = _bBlend;
00066                 }
00069                 bool GetBlend()
00070                 {
00071                         return m_bBlend;
00072                 }
00073 
00076                 void SetTextureId ( const int _iTextureId )
00077                 {
00078                         m_iTextureId = _iTextureId;
00079                 }
00082                 GLuint &GetTextureId()
00083                 {
00084                         return m_iTextureId;
00085                 }
00086 };
00087 

Generated on Thu Aug 16 23:53:26 2007 for K3dEngine by  doxygen 1.5.0