00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef GRAPHICSTHREADINGMODEL_H
00016 #define GRAPHICSTHREADINGMODEL_H
00017
00018 #include "pandabase.h"
00019
00020
00021
00022
00023
00024
00025 class EXPCL_PANDA_DISPLAY GraphicsThreadingModel {
00026 PUBLISHED:
00027 GraphicsThreadingModel(const string &model = string());
00028 INLINE GraphicsThreadingModel(const GraphicsThreadingModel ©);
00029 INLINE void operator = (const GraphicsThreadingModel ©);
00030
00031 string get_model() const;
00032 INLINE const string &get_cull_name() const;
00033 INLINE void set_cull_name(const string &cull_name);
00034 INLINE int get_cull_stage() const;
00035
00036 INLINE const string &get_draw_name() const;
00037 INLINE void set_draw_name(const string &cull_name);
00038 INLINE int get_draw_stage() const;
00039
00040 INLINE bool get_cull_sorting() const;
00041 INLINE void set_cull_sorting(bool cull_sorting);
00042
00043 INLINE bool is_single_threaded() const;
00044 INLINE bool is_default() const;
00045 INLINE void output(ostream &out) const;
00046
00047 private:
00048 void update_stages();
00049
00050 private:
00051 string _cull_name;
00052 int _cull_stage;
00053 string _draw_name;
00054 int _draw_stage;
00055 bool _cull_sorting;
00056 };
00057
00058 INLINE ostream &operator << (ostream &out, const GraphicsThreadingModel &threading_model);
00059
00060 #include "graphicsThreadingModel.I"
00061
00062 #endif