summaryrefslogtreecommitdiff
path: root/src/graphics.h
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2005-08-13 12:49:52 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2005-08-13 12:49:52 +0000
commit10b881f997384378a299bff358716db5183b65a5 (patch)
tree2231d834a69c1db68980c1ccefdc6586df351fc0 /src/graphics.h
parentda5a71f65682dbb3f830be4d5ffcd0046aa7b7ce (diff)
downloadmana-client-10b881f997384378a299bff358716db5183b65a5.tar.gz
mana-client-10b881f997384378a299bff358716db5183b65a5.tar.bz2
mana-client-10b881f997384378a299bff358716db5183b65a5.tar.xz
mana-client-10b881f997384378a299bff358716db5183b65a5.zip
Huge header cleanup to reduce dependencies and compile time.
Diffstat (limited to 'src/graphics.h')
-rw-r--r--src/graphics.h35
1 files changed, 8 insertions, 27 deletions
diff --git a/src/graphics.h b/src/graphics.h
index 4e2b6c7e..46dfef89 100644
--- a/src/graphics.h
+++ b/src/graphics.h
@@ -24,36 +24,17 @@
#ifndef _GRAPHICS_H
#define _GRAPHICS_H
-#include <guichan/sdl.hpp>
-#include <SDL.h>
+#include <guichan/sdl/sdlgraphics.hpp>
#ifdef USE_OPENGL
-#include <guichan/opengl.hpp>
-#include <SDL_opengl.h>
+#include <guichan/opengl/openglgraphics.hpp>
#endif
-#include <guichan/imagefont.hpp>
-#include <guichan/rectangle.hpp>
-#include "resources/image.h"
-/**
- * 9 images defining a rectangle. 4 corners, 4 sides and a middle area. The
- * topology is as follows:
- *
- * <pre>
- * !-----!-----------------!-----!
- * ! 0 ! 1 ! 2 !
- * !-----!-----------------!-----!
- * ! 3 ! 4 ! 5 !
- * !-----!-----------------!-----!
- * ! 6 ! 7 ! 8 !
- * !-----!-----------------!-----!
- * </pre>
- *
- * Sections 0, 2, 6 and 8 will remain as is. 1, 3, 4, 5 and 7 will be
- * repeated to fit the size of the widget.
- */
-struct ImageRect {
- Image *grid[9];
-};
+#include "guichanfwd.h"
+
+class Image;
+class ImageRect;
+
+class SDL_Surface;
/**
* A central point of control for graphics.