LibreOffice Module vcl (master)  1
framebuffer.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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  */
9 
10 #ifndef INCLUDED_VCL_INC_OPENGL_FRAMEBUFFER_H
11 #define INCLUDED_VCL_INC_OPENGL_FRAMEBUFFER_H
12 
13 #include <vcl/dllapi.h>
14 
15 #include <opengl/texture.hxx>
16 
18 {
19 private:
20  GLuint mnId;
21  int mnWidth;
22  int mnHeight;
24 
25 public:
28 
29  int GetWidth() const { return mnWidth; };
30  int GetHeight() const { return mnHeight; };
31 
32  void Bind(GLenum eTarget = GL_FRAMEBUFFER);
33 
34  static void Unbind(GLenum eTarget = GL_FRAMEBUFFER);
35 
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();
41 
42 public:
44 };
45 
46 #endif // INCLUDED_VCL_INC_OPENGL_FRAMEBUFFER_H
47 
48 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
int GetHeight() const
Definition: framebuffer.hxx:30
#define VCL_DLLPUBLIC
Definition: dllapi.h:29
GLuint mnAttachedTexture
Definition: framebuffer.hxx:23
int GetWidth() const
Definition: framebuffer.hxx:29
OpenGLFramebuffer * mpPrevFramebuffer
Definition: framebuffer.hxx:43