Panda3D
graphicsThreadingModel.h
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file graphicsThreadingModel.h
10  * @author drose
11  * @date 2003-01-27
12  */
13 
14 #ifndef GRAPHICSTHREADINGMODEL_H
15 #define GRAPHICSTHREADINGMODEL_H
16 
17 #include "pandabase.h"
18 
19 /**
20  * This represents the user's specification of how a particular frame is
21  * handled by the various threads.
22  */
23 class EXPCL_PANDA_DISPLAY GraphicsThreadingModel {
24 PUBLISHED:
25  GraphicsThreadingModel(const std::string &model = std::string());
27  INLINE void operator = (const GraphicsThreadingModel &copy);
28 
29  std::string get_model() const;
30  INLINE const std::string &get_cull_name() const;
31  INLINE void set_cull_name(const std::string &cull_name);
32  INLINE int get_cull_stage() const;
33 
34  INLINE const std::string &get_draw_name() const;
35  INLINE void set_draw_name(const std::string &cull_name);
36  INLINE int get_draw_stage() const;
37 
38  INLINE bool get_cull_sorting() const;
39  INLINE void set_cull_sorting(bool cull_sorting);
40 
41  INLINE bool is_single_threaded() const;
42  INLINE bool is_default() const;
43  INLINE void output(std::ostream &out) const;
44 
45 private:
46  void update_stages();
47 
48 private:
49  std::string _cull_name;
50  int _cull_stage;
51  std::string _draw_name;
52  int _draw_stage;
53  bool _cull_sorting;
54 };
55 
56 INLINE std::ostream &operator << (std::ostream &out, const GraphicsThreadingModel &threading_model);
57 
58 #include "graphicsThreadingModel.I"
59 
60 #endif
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This represents the user's specification of how a particular frame is handled by the various threads.