aboutsummaryrefslogtreecommitdiff
path: root/gem2pdp/gem2pdp.h
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2003-08-11 04:43:58 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2003-08-11 04:43:58 +0000
commit1c2854727070e6a3edbc4cbd3a88ee60979ffc50 (patch)
tree51e2bd7d79b2e9476212fcad2c15b9caba0562e5 /gem2pdp/gem2pdp.h
parenta4a7431b8103f42464fd401572cff76551896467 (diff)
added sources from gem2pdp-0.4 for Linux
svn path=/trunk/externals/unauthorized/; revision=839
Diffstat (limited to 'gem2pdp/gem2pdp.h')
-rw-r--r--gem2pdp/gem2pdp.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/gem2pdp/gem2pdp.h b/gem2pdp/gem2pdp.h
new file mode 100644
index 0000000..d1cf3cf
--- /dev/null
+++ b/gem2pdp/gem2pdp.h
@@ -0,0 +1,43 @@
+/*
+ * gem2pdp : gem to pdp bridge
+ *
+ * Capture the contents of the Gem window and transform it to a PDP Packet whenever a bang is received
+ *
+ * Copyright (c) 2003 Yves Degoyon
+ *
+ */
+
+#ifndef INCLUDE_GEM2PDP_H_
+#define INCLUDE_GEM2PDP_H_
+
+#include "Base/GemBase.h"
+#include "Base/GemPixUtil.h"
+#include "pdp-light.h"
+
+class GEM_EXTERN gem2pdp : public GemBase
+{
+ CPPEXTERN_HEADER(gem2pdp, GemBase)
+
+ public:
+ gem2pdp(void);
+
+ protected:
+ imageStruct *m_image;
+ int m_x;
+ int m_y;
+ int m_width;
+ int m_height;
+ t_outlet *m_pdpoutlet;
+ virtual ~gem2pdp(void);
+ virtual void bangMess(void);
+ virtual void render(GemState *state);
+ void cleanImage();
+ t_int m_packet0;
+ t_pdp *m_header;
+ short int *m_data;
+
+ private:
+ static void bangMessCallback(void *data);
+};
+
+#endif