aboutsummaryrefslogtreecommitdiff
path: root/gem2pdp.h
diff options
context:
space:
mode:
Diffstat (limited to 'gem2pdp.h')
-rw-r--r--gem2pdp.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/gem2pdp.h b/gem2pdp.h
new file mode 100644
index 0000000..d1cf3cf
--- /dev/null
+++ b/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