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 \*---------------------------------------------------------------------------*/
39 #ifndef _OSGRENDERACTIONTASK_H_
40 #define _OSGRENDERACTIONTASK_H_
46 #include "OSGDrawTask.h"
47 #include "OSGBarrier.h"
53 /*! \ingroup GrpSystemRenderAction
54 \ingroup GrpLibOSGSystem
57 class RenderActionTask
: public DrawTask
59 /*========================== PUBLIC =================================*/
63 static const UInt32 HandleGLFinish
= Inherited::LastType
+ 1;
64 static const UInt32 HandleGLFinishNoWait
= Inherited::LastType
+ 2;
65 static const UInt32 LastType
= HandleGLFinishNoWait
;
67 typedef DrawTask Inherited
;
69 /*---------------------------------------------------------------------*/
70 /*! \name Statistic */
73 RenderActionTask(UInt32 uiType
);
76 /*---------------------------------------------------------------------*/
80 virtual void execute(HardwareContext
*pContext
, DrawEnv
*pEnv
);
83 /*---------------------------------------------------------------------*/
87 void waitForBarrier (void);
90 /*---------------------------------------------------------------------*/
95 /*---------------------------------------------------------------------*/
99 virtual void dump(UInt32 uiIndent
);
102 /*========================= PROTECTED ===============================*/
106 /*---------------------------------------------------------------------*/
110 BarrierRefPtr _pBarrier
;
113 /*---------------------------------------------------------------------*/
114 /*! \name Destructor */
117 virtual ~RenderActionTask(void);
120 /*========================== PRIVATE ================================*/
124 /*! \brief prohibit default function (move to 'public' if needed) */
125 RenderActionTask(const RenderActionTask
&source
);
126 /*! \brief prohibit default function (move to 'public' if needed) */
127 void operator =(const RenderActionTask
&source
);
130 typedef RefCountPtr
<RenderActionTask
,
131 MemObjRefCountPolicy
> RenderActionTaskRefPtr
;
136 #include "OSGRenderActionTask.inl"
138 #endif /* _OSGRENDERACTIONTASK_H_ */