From d15d76976b6e57a9f421ab034c6f841051b962f3 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Wed, 27 Jul 2005 21:55:20 +0000 Subject: Committing merging opengl and sdl part 3 by Andrej --- src/resources/image.h | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'src/resources/image.h') diff --git a/src/resources/image.h b/src/resources/image.h index cfa42330..a12572bb 100644 --- a/src/resources/image.h +++ b/src/resources/image.h @@ -26,8 +26,9 @@ #include "resource.h" #include +#ifdef USE_OPENGL #include - +#endif /** * Defines a class for loading and storing images. @@ -118,21 +119,19 @@ class Image : public Resource /** * Constructor. */ -//#ifdef USE_OPENGL +#ifdef USE_OPENGL Image(GLuint glimage, int width, int height, int texWidth, int texHeight); -//#else +#endif Image(SDL_Surface *image); -//#endif bool loaded; -//#ifdef USE_OPENGL +#ifdef USE_OPENGL GLuint glimage; int width, height; int texWidth, texHeight; -//#else +#endif SDL_Surface *image; -//#endif float alpha; }; @@ -145,13 +144,12 @@ class SubImage : public Image /** * Constructor. */ -//#ifndef USE_OPENGL SubImage(Image *parent, SDL_Surface *image, int x, int y, int width, int height); -//#else +#ifdef USE_OPENGL SubImage(Image *parent, GLuint image, int x, int y, int width, int height, int texWidth, int textHeight); -//#endif +#endif /** * Destructor. -- cgit v1.2.3-70-g09d2