Stellarium 0.15.2
List of all members | Public Slots | Public Member Functions
SpoutSender Class Reference

Helper class to send rendered frames to Spout (http://spout.zeal.co/) More...

#include <SpoutSender.hpp>

+ Inheritance diagram for SpoutSender:
+ Collaboration diagram for SpoutSender:

Public Slots

void captureAndSendFrame (GLuint fbo)
 Captures a frame from the currently bound framebuffer, and sends it to Spout. More...
 
void resize (uint width, uint height)
 Informs the sender about changed buffer dimensions. More...
 
bool isValid ()
 True if the sender has been successfuly created. More...
 

Public Member Functions

 SpoutSender (const QString &senderName)
 Initializes the Spout library and creates a sender with the specified name (restricted to 256 chars) Requires a valid GL context. More...
 
virtual ~SpoutSender ()
 Releases all held resources. More...
 

Detailed Description

Helper class to send rendered frames to Spout (http://spout.zeal.co/)

Definition at line 28 of file SpoutSender.hpp.

Constructor & Destructor Documentation

SpoutSender::SpoutSender ( const QString &  senderName)

Initializes the Spout library and creates a sender with the specified name (restricted to 256 chars) Requires a valid GL context.

virtual SpoutSender::~SpoutSender ( )
virtual

Releases all held resources.

Member Function Documentation

void SpoutSender::captureAndSendFrame ( GLuint  fbo)
slot

Captures a frame from the currently bound framebuffer, and sends it to Spout.

Requires a valid GL context.

Parameters
fboThe ID of the current framebuffer, should match with GL state!
bool SpoutSender::isValid ( )
inlineslot

True if the sender has been successfuly created.

Definition at line 48 of file SpoutSender.hpp.

void SpoutSender::resize ( uint  width,
uint  height 
)
slot

Informs the sender about changed buffer dimensions.

Does not need a GL context.


The documentation for this class was generated from the following file: