You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
552 B
Plaintext

1 month ago
#ifndef STATEEX_H
#define STATEEX_H
#include <osgQOpenGL/Export>
#include <osg/State>
/// Needed for mixing osg rendering with Qt 2D drawing using QPainter...
/// See http://forum.openscenegraph.org/viewtopic.php?t=15627&view=previous
class OSGQOPENGL_EXPORT StateEx : public osg::State
{
public:
StateEx() : defaultFbo(0) {}
inline void setDefaultFbo(GLuint fbo)
{
defaultFbo = fbo;
}
inline GLuint getDefaultFbo() const
{
return defaultFbo;
}
protected:
GLuint defaultFbo;
};
#endif // STATEEX_H