changed: gcc8 base update
[opensg.git] / Source / System / Window / Background / OSGFBOBackground.h
blobdd30b5e598fb8cf66bc83e1990498e813a8bc785
1 /*---------------------------------------------------------------------------*\
2 * OpenSG *
3 * *
4 * *
5 * Copyright (C) 2000-2002 by the OpenSG Forum *
6 * *
7 * www.opensg.org *
8 * *
9 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de *
10 * *
11 \*---------------------------------------------------------------------------*/
12 /*---------------------------------------------------------------------------*\
13 * License *
14 * *
15 * This library is free software; you can redistribute it and/or modify it *
16 * under the terms of the GNU Library General Public License as published *
17 * by the Free Software Foundation, version 2. *
18 * *
19 * This library is distributed in the hope that it will be useful, but *
20 * WITHOUT ANY WARRANTY; without even the implied warranty of *
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
22 * Library General Public License for more details. *
23 * *
24 * You should have received a copy of the GNU Library General Public *
25 * License along with this library; if not, write to the Free Software *
26 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
27 * *
28 \*---------------------------------------------------------------------------*/
29 /*---------------------------------------------------------------------------*\
30 * Changes *
31 * *
32 * *
33 * *
34 * *
35 * *
36 * *
37 \*---------------------------------------------------------------------------*/
40 #ifndef _OSGFBOBACKGROUND_H_
41 #define _OSGFBOBACKGROUND_H_
42 #ifdef __sgi
43 #pragma once
44 #endif
46 #include "OSGFBOBackgroundBase.h"
48 OSG_BEGIN_NAMESPACE
50 class Viewport;
52 /*! \brief FBO Background class. See \ref
53 PageSystemWindowBackgroundFBO for a description.
54 \ingroup GrpWindowBackground
55 \ingroup GrpLibOSGWindow
56 \includebasedoc
59 class OSG_WINDOW_DLLMAPPING FBOBackground :
60 public FBOBackgroundBase
62 /*========================== PUBLIC =================================*/
64 public:
66 typedef FBOBackgroundBase Inherited;
68 /*---------------------------------------------------------------------*/
69 /*! \name your_category */
70 /*! \{ */
72 void clear(DrawEnv *pEnv);
74 /*! \} */
75 /*---------------------------------------------------------------------*/
76 /*! \name transformation */
77 /*! \{ */
79 /*! \} */
80 /*---------------------------------------------------------------------*/
81 /*! \name transformation */
82 /*! \{ */
84 virtual void changed(ConstFieldMaskArg whichField,
85 UInt32 origin,
86 BitVector detail);
87 /*! \} */
88 /*---------------------------------------------------------------------*/
89 /*! \name dump */
90 /*! \{ */
92 virtual void dump( UInt32 uiIndent = 0,
93 const BitVector bvFlags = 0) const;
95 /*! \} */
96 /*========================= PROTECTED ===============================*/
98 protected:
100 static UInt32 _uiFramebufferObjectExt;
101 static UInt32 _uiFramebufferBlitExt;
103 static UInt32 _uiFuncBindFramebuffer;
104 static UInt32 _uiFuncBlitFramebuffer;
106 /*---------------------------------------------------------------------*/
107 /*! \name Constructors */
108 /*! \{ */
110 FBOBackground(void);
112 FBOBackground(const FBOBackground &source);
114 /*! \} */
115 /*---------------------------------------------------------------------*/
116 /*! \name Destructors */
117 /*! \{ */
119 /*! \} */
120 /*---------------------------------------------------------------------*/
121 /*! \name Destructors */
122 /*! \{ */
124 virtual ~FBOBackground(void);
127 static void initMethod( InitPhase ePhase );
129 /*! \} */
130 /*========================= PRIVATE =================================*/
132 private:
134 friend class FieldContainer;
135 friend class FBOBackgroundBase;
137 void operator =(const FBOBackground &source);
140 //---------------------------------------------------------------------------
141 // Exported Types
142 //---------------------------------------------------------------------------
145 /** \brief class pointer
147 typedef FBOBackground *FBOBackgroundP;
149 OSG_END_NAMESPACE
151 #include "OSGFBOBackgroundBase.inl"
152 #include "OSGFBOBackground.inl"
154 #endif /* _OSGFBOBACKGROUND_H_ */