FRESH AND RAW
[potpourri.git] / include / plugins / graphics / Graphics.h
blob80853e5643e3d75959d09cf2acc3e9f704c12474
1 // header for graphics subsystem
3 #ifndef __GRAPHICS_H
4 #define __GRAPHICS_H
6 #include <string>
8 #include "../../core/MediaLoader.h"
10 #include "../../Global.h"
12 typedef Pair<int> GraphicsPair;
13 typedef Rect<int> GraphicsRect;
15 #include "Display.h"
16 #include "Drawable.h"
18 namespace fragrant
20 class Display;
21 class Drawable;
22 class MediaLoader;
24 typedef Drawable* (*image_function)
25 (MediaLoader&,std::string, std::map<std::string, Variant*>);
26 typedef Display* (*display_function)();
27 typedef void (*destroy_function)(Drawable*);
29 struct Graphics
31 display_function makeDisplay;
32 image_function makeImage;
34 destroy_function deleteImage;
38 #endif