|
@@ -72,6 +72,17 @@ public:
|
|
|
virtual ~GraphicsStateGuardian();
|
|
virtual ~GraphicsStateGuardian();
|
|
|
|
|
|
|
|
PUBLISHED:
|
|
PUBLISHED:
|
|
|
|
|
+
|
|
|
|
|
+ enum ShaderModel
|
|
|
|
|
+ {
|
|
|
|
|
+ SM_00,
|
|
|
|
|
+ SM_11,
|
|
|
|
|
+ SM_20,
|
|
|
|
|
+ SM_2X,
|
|
|
|
|
+ SM_30,
|
|
|
|
|
+ SM_40,
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
INLINE void release_all();
|
|
INLINE void release_all();
|
|
|
INLINE int release_all_textures();
|
|
INLINE int release_all_textures();
|
|
|
INLINE int release_all_geoms();
|
|
INLINE int release_all_geoms();
|
|
@@ -122,6 +133,9 @@ PUBLISHED:
|
|
|
INLINE bool get_supports_basic_shaders() const;
|
|
INLINE bool get_supports_basic_shaders() const;
|
|
|
INLINE bool get_supports_two_sided_stencil() const;
|
|
INLINE bool get_supports_two_sided_stencil() const;
|
|
|
|
|
|
|
|
|
|
+ INLINE int get_shader_model() const;
|
|
|
|
|
+ INLINE void set_shader_model(int shader_model);
|
|
|
|
|
+
|
|
|
virtual int get_supported_geom_rendering() const;
|
|
virtual int get_supported_geom_rendering() const;
|
|
|
|
|
|
|
|
INLINE bool get_color_scale_via_lighting() const;
|
|
INLINE bool get_color_scale_via_lighting() const;
|
|
@@ -374,6 +388,9 @@ protected:
|
|
|
|
|
|
|
|
StencilRenderStates *_stencil_render_states;
|
|
StencilRenderStates *_stencil_render_states;
|
|
|
|
|
|
|
|
|
|
+ int _auto_detect_shader_model;
|
|
|
|
|
+ int _shader_model;
|
|
|
|
|
+
|
|
|
public:
|
|
public:
|
|
|
// Statistics
|
|
// Statistics
|
|
|
static PStatCollector _vertex_buffer_switch_pcollector;
|
|
static PStatCollector _vertex_buffer_switch_pcollector;
|