fixed: auto_ptr -> unique_ptr
[opensg.git] / Source / System / Action / RenderAction / OSGRenderActionTask.h
blob43e3faddb9208913b1fb40597e737a5a13123fde
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 \*---------------------------------------------------------------------------*/
39 #ifndef _OSGRENDERACTIONTASK_H_
40 #define _OSGRENDERACTIONTASK_H_
42 #ifdef __sgi
43 #pragma once
44 #endif
46 #include "OSGDrawTask.h"
47 #include "OSGBarrier.h"
49 OSG_BEGIN_NAMESPACE
51 class RenderOptions;
53 /*! \ingroup GrpSystemRenderAction
54 \ingroup GrpLibOSGSystem
57 class RenderActionTask : public DrawTask
59 /*========================== PUBLIC =================================*/
61 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 */
71 /*! \{ */
73 RenderActionTask(UInt32 uiType);
75 /*! \} */
76 /*---------------------------------------------------------------------*/
77 /*! \name Access */
78 /*! \{ */
80 virtual void execute(HardwareContext *pContext, DrawEnv *pEnv);
82 /*! \} */
83 /*---------------------------------------------------------------------*/
84 /*! \name Access */
85 /*! \{ */
87 void waitForBarrier (void);
89 /*! \} */
90 /*---------------------------------------------------------------------*/
91 /*! \name Access */
92 /*! \{ */
94 /*! \} */
95 /*---------------------------------------------------------------------*/
96 /*! \name Access */
97 /*! \{ */
99 virtual void dump(UInt32 uiIndent);
101 /*! \} */
102 /*========================= PROTECTED ===============================*/
104 protected:
106 /*---------------------------------------------------------------------*/
107 /*! \name Member */
108 /*! \{ */
110 BarrierRefPtr _pBarrier;
112 /*! \} */
113 /*---------------------------------------------------------------------*/
114 /*! \name Destructor */
115 /*! \{ */
117 virtual ~RenderActionTask(void);
119 /*! \} */
120 /*========================== PRIVATE ================================*/
122 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;
134 OSG_END_NAMESPACE
136 #include "OSGRenderActionTask.inl"
138 #endif /* _OSGRENDERACTIONTASK_H_ */