aboutsummaryrefslogtreecommitdiff
path: root/gem2pdp/gem2pdp.h
blob: d1cf3cf1110cd944621c14e7591ae1a8bd5dee2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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