12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
-
- #ifndef _INCLUDE__GEM_OPENGL_spoutSend_H_
- #define _INCLUDE__GEM_OPENGL_spoutSend_H_
- #include "Base/GemBase.h"
- #include "SpoutLibrary.h"
- class GEM_EXTERN spoutSend : public GemBase
- {
- CPPEXTERN_HEADER(spoutSend, GemBase);
- public:
-
- spoutSend (t_symbol* s);
- protected:
-
- virtual ~spoutSend ();
- virtual void render (GemState *state);
- t_symbol* sym;
- GLuint spoutTexture;
- GLuint num;
- int h,w,mode;
-
- bool texture;
- GLuint sendertexture;
- bool bInitialized;
- bool bMemoryShare;
- t_symbol *m_bindname;
- static void info(void* data);
- void infoMess();
- static void setMessCallback (void*data, t_symbol*indexed);
- static void heightMessCallback(void *data, t_floatarg Tsize, t_floatarg Theight, t_floatarg Twidth, t_floatarg Tnum, t_floatarg Tmode);
- virtual void setMess(t_symbol*indexed);
- virtual void heightMess(t_floatarg Tsize, t_floatarg Theight, t_floatarg Twidth, t_floatarg Tnum, t_floatarg Tmode);
- private:
-
- t_inlet *m_inTexID;
- bool InitGLtexture(GLuint &texID, unsigned int width, unsigned int height);
- SPOUTLIBRARY *spoutsender;
- char sendername[256];
- };
- #endif
|