1 /*---------------------------------------------------------------------------*\
5 * Copyright (C) 2000-2006 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 \*---------------------------------------------------------------------------*/
39 #ifndef _OSGRENDEROPTIONS_H_
40 #define _OSGRENDEROPTIONS_H_
42 #include "OSGRenderOptionsBase.h"
46 class RenderActionBase
;
48 /*! \brief RenderOptions class. See \ref PageSystemWindowRenderOptions
51 \ingroup GrpSystemWindowBase
52 \ingroup GrpLibOSGSystem
56 class OSG_SYSTEM_DLLMAPPING RenderOptions
: public RenderOptionsBase
58 /*========================== PUBLIC =================================*/
62 typedef RenderOptionsBase Inherited
;
64 /*---------------------------------------------------------------------*/
68 virtual void changed(ConstFieldMaskArg whichField
,
73 /*---------------------------------------------------------------------*/
77 void setWireframe (bool value
);
79 bool getWireframe (void );
80 BitVector
getChanged (void );
81 BitVector
getLastChanged (void );
84 /*---------------------------------------------------------------------*/
88 void activate (RenderActionBase
*pAction
);
89 void deactivate(RenderActionBase
*pAction
);
91 #ifdef OSG_OLD_RENDER_ACTION
92 void activateOptions(RenderAction
*action
);
96 /*========================= PROTECTED ===============================*/
100 /*---------------------------------------------------------------------*/
101 /*! \name Constructors */
105 RenderOptions(const RenderOptions
&source
);
108 /*---------------------------------------------------------------------*/
109 /*! \name Destructors */
112 virtual ~RenderOptions(void);
115 /*---------------------------------------------------------------------*/
119 static void initMethod(InitPhase ePhase
);
122 /*---------------------------------------------------------------------*/
123 /*! \name GL setup handling */
127 BitVector _last_changed
;
129 GLenum _polygon_mode
;
130 bool _backface_culling
;
131 bool _two_sided_lighting
;
132 bool _spec_tex_lighting
;
135 /*========================== PRIVATE ================================*/
139 friend class FieldContainer
;
140 friend class RenderOptionsBase
;
142 // prohibit default functions (move to 'public' if you need one)
143 void operator =(const RenderOptions
&source
);
146 typedef RenderOptions
*RenderOptionsP
;
150 #include "OSGRenderOptionsBase.inl"
152 #endif /* _OSGRENDEROPTIONS_H_ */