//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
-// Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
//
//
#ifndef _OD_GAUGE_HXX
#define _OD_GAUGE_HXX
+#include <osg/Texture2D>
-#include <plib/ssg.h>
#include <simgear/structure/subsystem_mgr.hxx>
-class RenderTexture;
-
/**
* Owner Drawn Gauge helper class.
*/
* Finish rendering and save the buffer to a texture.
* @param texID name of a gl texture
*/
- void endCapture(GLuint texID);
+ void endCapture(osg::Texture2D*);
/**
* Set the size of the destination texture.
* @param viewSize size of the destination texture
* @param name texture filename
* @param new_texture dynamic texture to replace the old one
*/
- void set_texture(const char * name, GLuint new_texture);
+ void set_texture(const char * name, osg::Texture2D* new_texture);
private:
int textureWH;
- RenderTexture *rt;
bool rtAvailable;
void allocRT(void);