Moved binds of PRIMITIVE_* contants from ArrayMesh to Mesh
This commit is contained in:
parent
9a502d3c17
commit
bf18c35dd7
|
@ -4937,27 +4937,6 @@
|
|||
<constant name="ARRAY_FORMAT_INDEX" value="256">
|
||||
Index array will be used.
|
||||
</constant>
|
||||
<constant name="PRIMITIVE_POINTS" value="0">
|
||||
Render array as points (one vertex equals one point).
|
||||
</constant>
|
||||
<constant name="PRIMITIVE_LINES" value="1">
|
||||
Render array as lines (every two vertices a line is created).
|
||||
</constant>
|
||||
<constant name="PRIMITIVE_LINE_STRIP" value="2">
|
||||
Render array as line strip.
|
||||
</constant>
|
||||
<constant name="PRIMITIVE_LINE_LOOP" value="3">
|
||||
Render array as line loop (like line strip, but closed).
|
||||
</constant>
|
||||
<constant name="PRIMITIVE_TRIANGLES" value="4">
|
||||
Render array as triangles (every three vertices a triangle is created).
|
||||
</constant>
|
||||
<constant name="PRIMITIVE_TRIANGLE_STRIP" value="5">
|
||||
Render array as triangle strips.
|
||||
</constant>
|
||||
<constant name="PRIMITIVE_TRIANGLE_FAN" value="6">
|
||||
Render array as triangle fans.
|
||||
</constant>
|
||||
</constants>
|
||||
</class>
|
||||
<class name="AtlasTexture" inherits="Texture" category="Core">
|
||||
|
@ -23565,6 +23544,27 @@
|
|||
</method>
|
||||
</methods>
|
||||
<constants>
|
||||
<constant name="PRIMITIVE_POINTS" value="0">
|
||||
Render array as points (one vertex equals one point).
|
||||
</constant>
|
||||
<constant name="PRIMITIVE_LINES" value="1">
|
||||
Render array as lines (every two vertices a line is created).
|
||||
</constant>
|
||||
<constant name="PRIMITIVE_LINE_STRIP" value="2">
|
||||
Render array as line strip.
|
||||
</constant>
|
||||
<constant name="PRIMITIVE_LINE_LOOP" value="3">
|
||||
Render array as line loop (like line strip, but closed).
|
||||
</constant>
|
||||
<constant name="PRIMITIVE_TRIANGLES" value="4">
|
||||
Render array as triangles (every three vertices a triangle is created).
|
||||
</constant>
|
||||
<constant name="PRIMITIVE_TRIANGLE_STRIP" value="5">
|
||||
Render array as triangle strips.
|
||||
</constant>
|
||||
<constant name="PRIMITIVE_TRIANGLE_FAN" value="6">
|
||||
Render array as triangle fans.
|
||||
</constant>
|
||||
</constants>
|
||||
</class>
|
||||
<class name="MeshDataTool" inherits="Reference" category="Core">
|
||||
|
|
|
@ -413,6 +413,17 @@ Ref<Mesh> Mesh::create_outline(float p_margin) const {
|
|||
return newmesh;
|
||||
}
|
||||
|
||||
void Mesh::_bind_methods() {
|
||||
|
||||
BIND_CONSTANT(PRIMITIVE_POINTS);
|
||||
BIND_CONSTANT(PRIMITIVE_LINES);
|
||||
BIND_CONSTANT(PRIMITIVE_LINE_STRIP);
|
||||
BIND_CONSTANT(PRIMITIVE_LINE_LOOP);
|
||||
BIND_CONSTANT(PRIMITIVE_TRIANGLES);
|
||||
BIND_CONSTANT(PRIMITIVE_TRIANGLE_STRIP);
|
||||
BIND_CONSTANT(PRIMITIVE_TRIANGLE_FAN);
|
||||
}
|
||||
|
||||
Mesh::Mesh() {
|
||||
}
|
||||
|
||||
|
@ -1034,14 +1045,6 @@ void ArrayMesh::_bind_methods() {
|
|||
BIND_CONSTANT(ARRAY_FORMAT_BONES);
|
||||
BIND_CONSTANT(ARRAY_FORMAT_WEIGHTS);
|
||||
BIND_CONSTANT(ARRAY_FORMAT_INDEX);
|
||||
|
||||
BIND_CONSTANT(PRIMITIVE_POINTS);
|
||||
BIND_CONSTANT(PRIMITIVE_LINES);
|
||||
BIND_CONSTANT(PRIMITIVE_LINE_STRIP);
|
||||
BIND_CONSTANT(PRIMITIVE_LINE_LOOP);
|
||||
BIND_CONSTANT(PRIMITIVE_TRIANGLES);
|
||||
BIND_CONSTANT(PRIMITIVE_TRIANGLE_STRIP);
|
||||
BIND_CONSTANT(PRIMITIVE_TRIANGLE_FAN);
|
||||
}
|
||||
|
||||
ArrayMesh::ArrayMesh() {
|
||||
|
|
|
@ -46,6 +46,8 @@ class Mesh : public Resource {
|
|||
protected:
|
||||
void _clear_triangle_mesh();
|
||||
|
||||
static void _bind_methods();
|
||||
|
||||
public:
|
||||
enum {
|
||||
|
||||
|
|
Loading…
Reference in New Issue