VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtIndirectGeometryInitMainThreadJob.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2020 VT-MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 
14 #include <osg/OperationThread>
15 #include <osg/observer_ptr>
16 
17 #include <tbb/atomic.h>
18 
19 namespace osg
20 {
21  class Object;
22 }
23 
24 namespace makVrv
25 {
26  class DtIndirectGeometry;
27 
30  class DT_DLL_VRVOSG DtIndirectGeometryInitMainThreadJob : public osg::Operation
31  {
32  public:
35 
38 
39  private:
46 
47  public:
49  virtual void operator() (osg::Object* sv);
50 
52  virtual bool jobIsDone();
53 
55  virtual void stop();
56  protected:
57  osg::observer_ptr< DtIndirectGeometry >myGeometry;
58  tbb::atomic<bool> myJobIsDone;
59  };
60 }
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
tbb::atomic< bool > myJobIsDone
Definition: DtIndirectGeometryInitMainThreadJob.h:58
osg::observer_ptr< DtIndirectGeometry > myGeometry
Definition: DtIndirectGeometryInitMainThreadJob.h:57
This class inherits from osg::Drawable, which allows us to hook into our indirect engine to render us...
Definition: DtIndirectGeometry.h:69
responsible for initializing the indirect buffers in the main thread
Definition: DtIndirectGeometryInitMainThreadJob.h:30
Contains DLL export macros.

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)