summaryrefslogtreecommitdiff
path: root/src/graphics.h
diff options
context:
space:
mode:
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.