|
|
@@ -97,20 +97,27 @@ PUBLISHED:
|
|
|
INLINE bool is_active() const;
|
|
|
INLINE bool is_valid() const;
|
|
|
INLINE bool needs_reset() const;
|
|
|
+ MAKE_PROPERTY(active, is_active, set_active);
|
|
|
+ MAKE_PROPERTY(valid, is_valid);
|
|
|
|
|
|
INLINE void set_incomplete_render(bool incomplete_render);
|
|
|
virtual INLINE bool get_incomplete_render() const;
|
|
|
virtual INLINE bool get_effective_incomplete_render() const;
|
|
|
+ MAKE_PROPERTY(incomplete_render, get_incomplete_render, set_incomplete_render);
|
|
|
+ MAKE_PROPERTY(effective_incomplete_render, get_effective_incomplete_render);
|
|
|
|
|
|
INLINE void set_loader(Loader *loader);
|
|
|
INLINE Loader *get_loader() const;
|
|
|
+ MAKE_PROPERTY(loader, get_loader, set_loader);
|
|
|
|
|
|
INLINE void set_shader_generator(ShaderGenerator *shader_generator);
|
|
|
INLINE ShaderGenerator *get_shader_generator() const;
|
|
|
+ MAKE_PROPERTY(shader_generator, get_shader_generator, set_shader_generator);
|
|
|
|
|
|
INLINE GraphicsPipe *get_pipe() const;
|
|
|
GraphicsEngine *get_engine() const;
|
|
|
INLINE const GraphicsThreadingModel &get_threading_model() const;
|
|
|
+ MAKE_PROPERTY(pipe, get_pipe);
|
|
|
|
|
|
INLINE bool is_hardware() const;
|
|
|
virtual INLINE bool prefers_triangle_strips() const;
|
|
|
@@ -170,8 +177,54 @@ PUBLISHED:
|
|
|
INLINE int get_max_color_targets() const;
|
|
|
INLINE int get_maximum_simultaneous_render_targets() const;
|
|
|
|
|
|
+ MAKE_PROPERTY(max_vertices_per_array, get_max_vertices_per_array);
|
|
|
+ MAKE_PROPERTY(max_vertices_per_primitive, get_max_vertices_per_primitive);
|
|
|
+ MAKE_PROPERTY(max_texture_stages, get_max_texture_stages);
|
|
|
+ MAKE_PROPERTY(max_texture_dimension, get_max_texture_dimension);
|
|
|
+ MAKE_PROPERTY(max_3d_texture_dimension, get_max_3d_texture_dimension);
|
|
|
+ MAKE_PROPERTY(max_2d_texture_array_layers, get_max_2d_texture_array_layers);
|
|
|
+ MAKE_PROPERTY(max_cube_map_dimension, get_max_cube_map_dimension);
|
|
|
+ MAKE_PROPERTY(max_buffer_texture_size, get_max_buffer_texture_size);
|
|
|
+ MAKE_PROPERTY(supports_texture_combine, get_supports_texture_combine);
|
|
|
+ MAKE_PROPERTY(supports_texture_saved_result, get_supports_texture_saved_result);
|
|
|
+ MAKE_PROPERTY(supports_texture_dot3, get_supports_texture_dot3);
|
|
|
+ MAKE_PROPERTY(supports_3d_texture, get_supports_3d_texture);
|
|
|
+ MAKE_PROPERTY(supports_2d_texture_array, get_supports_2d_texture_array);
|
|
|
+ MAKE_PROPERTY(supports_cube_map, get_supports_cube_map);
|
|
|
+ MAKE_PROPERTY(supports_buffer_texture, get_supports_buffer_texture);
|
|
|
+ MAKE_PROPERTY(supports_cube_map_array, get_supports_cube_map_array);
|
|
|
+ MAKE_PROPERTY(supports_tex_non_pow2, get_supports_tex_non_pow2);
|
|
|
+ MAKE_PROPERTY(supports_texture_srgb, get_supports_texture_srgb);
|
|
|
+ MAKE_PROPERTY(supports_compressed_texture, get_supports_compressed_texture);
|
|
|
+ MAKE_PROPERTY(max_lights, get_max_lights);
|
|
|
+ MAKE_PROPERTY(max_clip_planes, get_max_clip_planes);
|
|
|
+ MAKE_PROPERTY(max_vertex_transforms, get_max_vertex_transforms);
|
|
|
+ MAKE_PROPERTY(max_vertex_transform_indices, get_max_vertex_transform_indices);
|
|
|
+ MAKE_PROPERTY(copy_texture_inverted, get_copy_texture_inverted);
|
|
|
+ MAKE_PROPERTY(supports_multisample, get_supports_multisample);
|
|
|
+ MAKE_PROPERTY(supports_generate_mipmap, get_supports_generate_mipmap);
|
|
|
+ MAKE_PROPERTY(supports_depth_texture, get_supports_depth_texture);
|
|
|
+ MAKE_PROPERTY(supports_depth_stencil, get_supports_depth_stencil);
|
|
|
+ MAKE_PROPERTY(supports_shadow_filter, get_supports_shadow_filter);
|
|
|
+ MAKE_PROPERTY(supports_sampler_objects, get_supports_sampler_objects);
|
|
|
+ MAKE_PROPERTY(supports_basic_shaders, get_supports_basic_shaders);
|
|
|
+ MAKE_PROPERTY(supports_geometry_shaders, get_supports_geometry_shaders);
|
|
|
+ MAKE_PROPERTY(supports_tessellation_shaders, get_supports_tessellation_shaders);
|
|
|
+ MAKE_PROPERTY(supports_compute_shaders, get_supports_compute_shaders);
|
|
|
+ MAKE_PROPERTY(supports_glsl, get_supports_glsl);
|
|
|
+ MAKE_PROPERTY(supports_hlsl, get_supports_hlsl);
|
|
|
+ MAKE_PROPERTY(supports_stencil, get_supports_stencil);
|
|
|
+ MAKE_PROPERTY(supports_two_sided_stencil, get_supports_two_sided_stencil);
|
|
|
+ MAKE_PROPERTY(supports_geometry_instancing, get_supports_geometry_instancing);
|
|
|
+ MAKE_PROPERTY(supports_indirect_draw, get_supports_indirect_draw);
|
|
|
+ MAKE_PROPERTY(supports_occlusion_query, get_supports_occlusion_query);
|
|
|
+ MAKE_PROPERTY(supports_timer_query, get_supports_timer_query);
|
|
|
+ MAKE_PROPERTY(timer_queries_active, get_timer_queries_active);
|
|
|
+ MAKE_PROPERTY(max_color_targets, get_max_color_targets);
|
|
|
+
|
|
|
INLINE ShaderModel get_shader_model() const;
|
|
|
INLINE void set_shader_model(ShaderModel shader_model);
|
|
|
+ MAKE_PROPERTY(shader_model, get_shader_model, set_shader_model);
|
|
|
|
|
|
virtual int get_supported_geom_rendering() const;
|
|
|
virtual bool get_supports_cg_profile(const string &name) const;
|
|
|
@@ -186,15 +239,20 @@ PUBLISHED:
|
|
|
void set_coordinate_system(CoordinateSystem cs);
|
|
|
INLINE CoordinateSystem get_coordinate_system() const;
|
|
|
virtual CoordinateSystem get_internal_coordinate_system() const;
|
|
|
+ MAKE_PROPERTY(coordinate_system, get_coordinate_system, set_coordinate_system);
|
|
|
|
|
|
virtual PreparedGraphicsObjects *get_prepared_objects();
|
|
|
+ MAKE_PROPERTY(prepared_objects, get_prepared_objects);
|
|
|
|
|
|
virtual bool set_gamma(PN_stdfloat gamma);
|
|
|
PN_stdfloat get_gamma(PN_stdfloat gamma);
|
|
|
virtual void restore_gamma();
|
|
|
+ MAKE_PROPERTY(get_gamma, set_gamma);
|
|
|
|
|
|
INLINE void set_texture_quality_override(Texture::QualityLevel quality_level);
|
|
|
INLINE Texture::QualityLevel get_texture_quality_override() const;
|
|
|
+ MAKE_PROPERTY(texture_quality_override, get_texture_quality_override,
|
|
|
+ set_texture_quality_override);
|
|
|
|
|
|
EXTENSION(PyObject *get_prepared_textures() const);
|
|
|
typedef bool TextureCallback(TextureContext *tc, void *callback_arg);
|
|
|
@@ -204,6 +262,7 @@ PUBLISHED:
|
|
|
void set_flash_texture(Texture *tex);
|
|
|
void clear_flash_texture();
|
|
|
Texture *get_flash_texture() const;
|
|
|
+ MAKE_PROPERTY(flash_texture, get_flash_texture, set_flash_texture);
|
|
|
#endif
|
|
|
|
|
|
PUBLISHED:
|
|
|
@@ -217,8 +276,17 @@ PUBLISHED:
|
|
|
virtual int get_driver_shader_version_major();
|
|
|
virtual int get_driver_shader_version_minor();
|
|
|
|
|
|
+ MAKE_PROPERTY(driver_vendor, get_driver_vendor);
|
|
|
+ MAKE_PROPERTY(driver_renderer, get_driver_renderer);
|
|
|
+ MAKE_PROPERTY(driver_version, get_driver_version);
|
|
|
+ MAKE_PROPERTY(driver_version_major, get_driver_version_major);
|
|
|
+ MAKE_PROPERTY(driver_version_minor, get_driver_version_minor);
|
|
|
+ MAKE_PROPERTY(driver_shader_version_major, get_driver_shader_version_major);
|
|
|
+ MAKE_PROPERTY(driver_shader_version_minor, get_driver_shader_version_minor);
|
|
|
+
|
|
|
bool set_scene(SceneSetup *scene_setup);
|
|
|
virtual SceneSetup *get_scene() const;
|
|
|
+ MAKE_PROPERTY(scene, get_scene, set_scene);
|
|
|
|
|
|
public:
|
|
|
virtual TextureContext *prepare_texture(Texture *tex);
|