123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- #pragma once
- #ifndef __SpoutSender__
- #define __SpoutSender__
- #include "spoutSDK.h"
- class SPOUT_DLLEXP SpoutSender {
- public:
- SpoutSender();
- ~SpoutSender();
-
- bool CreateSender(char *Sendername, unsigned int width, unsigned int height, DWORD dwFormat = 0);
-
- bool UpdateSender(char *Sendername, unsigned int width, unsigned int height);
- void ReleaseSender(DWORD dwMsec = 0);
- bool SendImage(unsigned char* pixels, unsigned int width, unsigned int height, GLenum glFormat = GL_RGBA, bool bAlignment = true, bool bInvert=false);
- bool SendTexture(GLuint TextureID, GLuint TextureTarget, unsigned int width, unsigned int height, bool bInvert=true, GLuint HostFBO = 0);
- bool DrawToSharedTexture(GLuint TextureID, GLuint TextureTarget, unsigned int width, unsigned int height, float max_x = 1.0, float max_y = 1.0, float aspect = 1.0, bool bInvert = false, GLuint HostFBO = 0);
- bool SelectSenderPanel(const char* message = NULL);
- bool SetDX9(bool bDX9 = true);
- bool GetDX9();
- bool SetMemoryShareMode(bool bMem = true);
- bool GetMemoryShareMode();
- void SetDX9compatible(bool bCompatible = true);
- bool GetDX9compatible();
- int GetNumAdapters();
- bool GetAdapterName(int index, char *adaptername, int maxchars);
- bool SetAdapter(int index = 0);
- int GetAdapter();
- bool GetHostPath(const char *sendername, char *hostpath, int maxchars);
- bool SetVerticalSync(bool bSync = true);
- int GetVerticalSync();
- bool SenderDebug(char *Sendername, int size);
- Spout spout;
- protected :
- bool bInv;
- };
- #endif
|