1 /*---------------------------------------------------------------------------*\
5 * Copyright (C) 2000-2002 by the OpenSG Forum *
9 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de *
11 \*---------------------------------------------------------------------------*/
12 /*---------------------------------------------------------------------------*\
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. *
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. *
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. *
28 \*---------------------------------------------------------------------------*/
29 /*---------------------------------------------------------------------------*\
37 \*---------------------------------------------------------------------------*/
40 #ifndef _OSGPASSIVEBACKGROUND_H_
41 #define _OSGPASSIVEBACKGROUND_H_
46 #include "OSGPassiveBackgroundBase.h"
52 /*! \brief Passive Background class. See \ref
53 PageSystemWindowBackgroundPassive for a description.
54 \ingroup GrpWindowPassiveObj
55 \ingroup GrpLibOSGWindow
59 class OSG_WINDOW_DLLMAPPING PassiveBackground
:
60 public PassiveBackgroundBase
62 /*========================== PUBLIC =================================*/
66 typedef PassiveBackgroundBase Inherited
;
68 /*---------------------------------------------------------------------*/
69 /*! \name your_category */
72 void clear(DrawEnv
*pEnv
);
75 /*---------------------------------------------------------------------*/
76 /*! \name transformation */
79 void setClearCallback(RenderFunctor func
,
80 std::string createSymbol
);
83 /*---------------------------------------------------------------------*/
84 /*! \name transformation */
87 virtual void changed(ConstFieldMaskArg whichField
,
91 /*---------------------------------------------------------------------*/
95 virtual void dump( UInt32 uiIndent
= 0,
96 const BitVector bvFlags
= 0) const;
99 /*========================= PROTECTED ===============================*/
103 static UInt32 _uiFramebufferObjectExt
;
104 static UInt32 _uiFramebufferBlitExt
;
106 static UInt32 _uiFuncBindFramebuffer
;
107 static UInt32 _uiFuncBlitFramebuffer
;
109 /*---------------------------------------------------------------------*/
110 /*! \name Constructors */
113 PassiveBackground(void);
115 PassiveBackground(const PassiveBackground
&source
);
118 /*---------------------------------------------------------------------*/
119 /*! \name Destructors */
123 /*---------------------------------------------------------------------*/
124 /*! \name Destructors */
127 virtual ~PassiveBackground(void);
130 static void initMethod( InitPhase ePhase
);
133 /*========================= PRIVATE =================================*/
137 friend class FieldContainer
;
138 friend class PassiveBackgroundBase
;
140 void operator =(const PassiveBackground
&source
);
143 //---------------------------------------------------------------------------
145 //---------------------------------------------------------------------------
148 /** \brief class pointer
150 typedef PassiveBackground
*PassiveBackgroundP
;
154 #include "OSGPassiveBackgroundBase.inl"
155 #include "OSGPassiveBackground.inl"
157 #endif /* _OSGPASSIVEBACKGROUND_H_ */