Skip to content

Commit 1235e14

Browse files
committed
change primitive constant values
1 parent a2b3d8c commit 1235e14

File tree

2 files changed

+16
-9
lines changed

2 files changed

+16
-9
lines changed

glutil-mesh.js

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -966,8 +966,9 @@ Mesh.POINTS_BIT = 512;
966966
Primitive mode for rendering triangles, made up
967967
of 3 vertices each.
968968
@const
969+
@default
969970
*/
970-
Mesh.TRIANGLES = 0;
971+
Mesh.TRIANGLES = 4;
971972
/**
972973
Primitive mode for rendering a strip of quadrilaterals (quads).
973974
The first 4 vertices make up the first quad, and each additional
@@ -977,31 +978,34 @@ triangle consists of the first, second, and third vertices, in that order,
977978
and the second triangle consists of the third, second, and fourth
978979
vertices, in that order.
979980
@const
981+
@default
980982
*/
981-
Mesh.QUAD_STRIP = 1;
983+
Mesh.QUAD_STRIP = 8;
982984
/**
983985
Primitive mode for rendering quadrilaterals, made up
984986
of 4 vertices each. Each quadrilateral is broken into two triangles: the first
985987
triangle consists of the first, second, and third vertices, in that order,
986988
and the second triangle consists of the first, third, and fourth
987989
vertices, in that order.
988990
@const
989-
*/
990-
Mesh.QUADS = 2;
991+
@default
992+
*/
993+
Mesh.QUADS = 7;
991994
/**
992995
Primitive mode for rendering line segments, made up
993996
of 2 vertices each.
994997
@const
995998
*/
996-
Mesh.LINES = 3;
999+
Mesh.LINES = 1;
9971000
/**
9981001
Primitive mode for rendering a triangle fan. The first 3
9991002
vertices make up the first triangle, and each additional
10001003
triangle is made up of the first vertex of the first triangle,
10011004
the previous vertex, and 1 new vertex.
10021005
@const
1006+
@default
10031007
*/
1004-
Mesh.TRIANGLE_FAN = 4;
1008+
Mesh.TRIANGLE_FAN = 6;
10051009
/**
10061010
Primitive mode for rendering a triangle strip. The first 3
10071011
vertices make up the first triangle, and each additional
@@ -1010,20 +1014,23 @@ new vertex. For the second triangle in the strip, and
10101014
every other triangle after that, the first and second
10111015
vertices are swapped when generating that triangle.
10121016
@const
1017+
@default
10131018
*/
10141019
Mesh.TRIANGLE_STRIP = 5;
10151020
/**
10161021
Primitive mode for rendering connected line segments.
10171022
The first 2 vertices make up the first line, and each additional
10181023
line is made up of the last vertex and 1 new vertex.
10191024
@const
1025+
@default
10201026
*/
1021-
Mesh.LINE_STRIP = 6;
1027+
Mesh.LINE_STRIP = 3;
10221028
/**
10231029
Primitive mode for rendering points, made up
10241030
of 1 vertex each.
10251031
@const
1032+
@default
10261033
*/
1027-
Mesh.POINTS = 7;
1034+
Mesh.POINTS = 0;
10281035

10291036
this["Mesh"]=Mesh;

glutil_min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)