5 #ifndef BALL_VIEW_RENDERING_GLOFFSCREENTARGET_H
6 #define BALL_VIEW_RENDERING_GLOFFSCREENTARGET_H
8 #ifndef BALL_COMMON_GLOBAL_H
12 #ifndef BALL_VIEW_RENDERING_RENDERWINDOW_H
16 #ifndef BALL_VIEW_RENDERING_GLRENDERWINDOW_H
21 #include <QtGui/QPaintDevice>
23 #include <boost/shared_ptr.hpp>
48 virtual bool resize(
const unsigned int width,
const unsigned int height);
57 virtual int metric(PaintDeviceMetric metric)
const;
void tryUsePixelBuffer(bool use_pbo=true)
virtual bool resize(const unsigned int width, const unsigned int height)
boost::shared_ptr< QGLPixelBuffer > pixel_buffer_
virtual void prepareUpscaling(Size final_width, Size final_height)
virtual QPaintEngine * paintEngine() const
virtual void prepareRendering()
void updateImageTile(Size x_lower, Size y_lower, Size x_upper, Size y_upper)
GLRenderWindow * share_from_
virtual int metric(PaintDeviceMetric metric) const
GLOffscreenTarget(GLRenderWindow *share_from, const String &filename)