diff options
Diffstat (limited to 'scene/resources/surface_tool.h')
| -rw-r--r-- | scene/resources/surface_tool.h | 5 | 
1 files changed, 5 insertions, 0 deletions
diff --git a/scene/resources/surface_tool.h b/scene/resources/surface_tool.h index 17efdcba71..f5f3a95b14 100644 --- a/scene/resources/surface_tool.h +++ b/scene/resources/surface_tool.h @@ -78,6 +78,8 @@ public:  	static OptimizeVertexCacheFunc optimize_vertex_cache_func;  	typedef size_t (*SimplifyFunc)(unsigned int *destination, const unsigned int *indices, size_t index_count, const float *vertex_positions, size_t vertex_count, size_t vertex_positions_stride, size_t target_index_count, float target_error, float *r_error);  	static SimplifyFunc simplify_func; +	typedef size_t (*SimplifyWithAttribFunc)(unsigned int *destination, const unsigned int *indices, size_t index_count, const float *vertex_data, size_t vertex_count, size_t vertex_stride, size_t target_index_count, float target_error, float *result_error, const float *attributes, const float *attribute_weights, size_t attribute_count); +	static SimplifyWithAttribFunc simplify_with_attrib_func;  	typedef float (*SimplifyScaleFunc)(const float *vertex_positions, size_t vertex_count, size_t vertex_positions_stride);  	static SimplifyScaleFunc simplify_scale_func;  	typedef size_t (*SimplifySloppyFunc)(unsigned int *destination, const unsigned int *indices, size_t index_count, const float *vertex_positions_data, size_t vertex_count, size_t vertex_positions_stride, size_t target_index_count, float target_error, float *out_result_error); @@ -143,6 +145,8 @@ public:  	void set_custom_format(int p_index, CustomFormat p_format);  	CustomFormat get_custom_format(int p_index) const; +	Mesh::PrimitiveType get_primitive() const; +  	void begin(Mesh::PrimitiveType p_primitive);  	void set_color(Color p_color); @@ -171,6 +175,7 @@ public:  	Vector<int> generate_lod(float p_threshold, int p_target_index_count = 3);  	void set_material(const Ref<Material> &p_material); +	Ref<Material> get_material() const;  	void clear();  |