From e50632000d629de08fa3dae2e0d41fb67f8b2892 Mon Sep 17 00:00:00 2001 From: pixel Date: Tue, 17 Jul 2007 02:48:00 +0000 Subject: Adding constructor using an already-generated OpenGL texture. --- include/texture.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'include/texture.h') diff --git a/include/texture.h b/include/texture.h index e49e48f..9c96ca6 100644 --- a/include/texture.h +++ b/include/texture.h @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: texture.h,v 1.12 2006-10-28 16:50:46 pixel Exp $ */ +/* $Id: texture.h,v 1.13 2007-07-17 02:48:00 pixel Exp $ */ #ifndef __TEXTURE_H__ #define __TEXTURE_H__ @@ -31,9 +31,10 @@ namespace mogltk { class Texture : public Base { public: - Texture(int, int, bool = false) throw (GeneralException); + Texture(int x, int y, bool = false) throw (GeneralException); Texture(Handle *, bool = false) throw (GeneralException); - Texture(int, int, int, int); + Texture(int x, int y, int w, int h); + Texture(int w, int h, int t) throw (GeneralException); Texture(SDL_Surface *, bool = false) throw (GeneralException); virtual ~Texture(); SDL_Surface * GetSurface(); -- cgit v1.2.3