bump product version to 6.4.0.3
[LibreOffice.git] / vcl / inc / opengl / framebuffer.hxx
bloba2dbd1e632829ca5f42ee71347db824660d8b52e
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
8 */
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
19 private:
20 GLuint mnId;
21 int mnWidth;
22 int mnHeight;
23 GLuint mnAttachedTexture;
25 public:
26 OpenGLFramebuffer();
27 ~OpenGLFramebuffer();
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);
36 bool IsFree() const;
37 bool IsAttached( GLuint nTexture ) const;
38 bool IsAttached( const OpenGLTexture& rTexture ) const;
39 void AttachTexture( const OpenGLTexture& rTexture );
40 void DetachTexture();
42 public:
43 OpenGLFramebuffer* mpPrevFramebuffer;
46 #endif // INCLUDED_VCL_INC_OPENGL_FRAMEBUFFER_H
48 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */