1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 #ifndef INCLUDED_VCL_INC_OPENGL_FRAMEBUFFER_H
11 #define INCLUDED_VCL_INC_OPENGL_FRAMEBUFFER_H
13 #include <vcl/dllapi.h>
15 #include <opengl/texture.hxx>
17 class VCL_DLLPUBLIC OpenGLFramebuffer final
23 GLuint mnAttachedTexture
;
29 int GetWidth() const { return mnWidth
; };
30 int GetHeight() const { return mnHeight
; };
32 void Bind(GLenum eTarget
= GL_FRAMEBUFFER
);
34 static void Unbind(GLenum eTarget
= GL_FRAMEBUFFER
);
37 bool IsAttached( GLuint nTexture
) const;
38 bool IsAttached( const OpenGLTexture
& rTexture
) const;
39 void AttachTexture( const OpenGLTexture
& rTexture
);
43 OpenGLFramebuffer
* mpPrevFramebuffer
;
46 #endif // INCLUDED_VCL_INC_OPENGL_FRAMEBUFFER_H
48 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */