84 static void initStatic();
104 static bool blitSupported();
119 void blitFromFramebuffer(
const QRect &source = QRect(),
const QRect &destination = QRect(), GLenum filter = GL_LINEAR,
bool flipX =
false,
bool flipY =
false);
125 bool blitFromRenderTarget(
const RenderTarget &sourceRenderTarget,
const RenderViewport &sourceViewport,
const QRect &source,
const QRect &destination);
133 void initColorAttachment(
GLTexture *colorAttachment);
134 void initDepthStencilAttachment();
140 static void cleanup();
141 inline static bool s_supported =
false;
142 inline static bool s_supportsPackedDepthStencil =
false;
143 inline static bool s_supportsDepth24 =
false;
144 inline static bool s_blitSupported =
false;
145 inline static QStack<GLFramebuffer *> s_fbos;
148 GLuint m_depthBuffer = 0;
149 GLuint m_stencilBuffer = 0;
151 bool m_valid =
false;
152 bool m_foreign =
false;