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