Stellarium 0.15.2
SpoutSender.hpp
1 /*
2  * Stellarium
3  * Copyright (C) 2016 Georg Zotti, Florian Schaukowitsch
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * as published by the Free Software Foundation; either version 2
8  * of the License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
18  */
19 
20 #include <QOpenGLFunctions>
21 #include <QLoggingCategory>
22 
23 Q_DECLARE_LOGGING_CATEGORY(spout)
24 
25 struct SPOUTLIBRARY;
26 
28 class SpoutSender : public QObject, protected QOpenGLFunctions
29 {
30  Q_OBJECT
31 public:
35  SpoutSender(const QString& senderName);
37  virtual ~SpoutSender();
38 public slots:
43  void captureAndSendFrame(GLuint fbo);
46  void resize(uint width, uint height);
48  bool isValid() { return valid; }
49 private:
50  SPOUTLIBRARY* spoutLib;
51  bool valid;
52  char name[256];
53  uint width;
54  uint height;
55  GLuint localTexture;
56  bool textureDirty;
57 };
Helper class to send rendered frames to Spout (http://spout.zeal.co/)
Definition: SpoutSender.hpp:28
bool isValid()
True if the sender has been successfuly created.
Definition: SpoutSender.hpp:48