summaryrefslogtreecommitdiff
path: root/include/layer.h
diff options
context:
space:
mode:
authororoborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-02-01 22:59:06 +0000
committeroroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-02-01 22:59:06 +0000
commit6d4e1eae16b84918009625a866104ec26a234277 (patch)
treea340a8a547a60c9f63c8dfafe8909242f9c9bbd8 /include/layer.h
nahranie tarballu tuxanci-ng na SVN server
Dusan Durech ( Oroborus ) git-svn-id: http://opensvn.csie.org/tuxanci_ng@1 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'include/layer.h')
-rwxr-xr-xinclude/layer.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/include/layer.h b/include/layer.h
new file mode 100755
index 0000000..f2612eb
--- /dev/null
+++ b/include/layer.h
@@ -0,0 +1,52 @@
+
+#ifndef MY_LAYER_H
+
+#define MY_LAYER_H
+
+#include "main.h"
+
+typedef struct layer_str
+{
+ int x; //suradnice obrazka na obrazovke
+ int y;
+
+ int w; //rozmery obrazka na obrazovke
+ int h;
+
+ int px; //suradnice casti surfrace
+ int py;
+
+ int pw; //rozmeri casti surfrace
+ int ph;
+
+ int layer;
+
+ SDL_Surface *image; //dane surfrace
+} layer_t;
+
+extern bool_t isLayerInicialized();
+extern void initLayer();
+
+/*
+ * Prida obrazok na vykreslenie do zoznamu
+ * *img - ponter na urfrace obrazka
+ * x,y - suradnice kam sa ma obrazok nakreslit
+ * w,h - rozmeri obrazka
+ * px,py - suradnice casti *img z ktorej sa bude obrazok vykreslovat
+ * ph,ph - rozmeri casti obrazka *img z ktorej sa bude obrazok vykreslovat
+ * layer - layer, na ktorej bude obrazok
+ * (0 - pod tuxancami | 1 - na tej istej ako tuxanci | 2 - nad tuxancami)
+ */
+
+extern void addLayer(SDL_Surface *img,
+ int x,int y, int px,int py,
+ int w,int h, int player);
+
+/*
+ * Vykresli zoznam na obrazovku
+ */
+extern void drawLayer();
+
+extern void quitLayer();
+
+#endif