MCPcopy Create free account
hub / github.com/microsoft/SandDance / getPrimitiveDrawMode

Function getPrimitiveDrawMode

docs/app/js/sanddance-app.js:65246–65266  ·  view source on GitHub ↗
(drawMode)

Source from the content-addressed store, hash-verified

65244 "mat4x3"
65245]), _COMPOSITE_GL_TYPES);
65246function getPrimitiveDrawMode(drawMode) {
65247 switch(drawMode){
65248 case GL_POINTS:
65249 return GL_POINTS;
65250 case GL_LINES:
65251 return GL_LINES;
65252 case GL_LINE_STRIP:
65253 return GL_LINES;
65254 case GL_LINE_LOOP:
65255 return GL_LINES;
65256 case GL_TRIANGLES:
65257 return GL_TRIANGLES;
65258 case GL_TRIANGLE_STRIP:
65259 return GL_TRIANGLES;
65260 case GL_TRIANGLE_FAN:
65261 return GL_TRIANGLES;
65262 default:
65263 (0, _utils.assert)(false);
65264 return 0;
65265 }
65266}
65267function getPrimitiveCount(_ref) {
65268 var drawMode = _ref.drawMode, vertexCount = _ref.vertexCount;
65269 switch(drawMode){

Callers 1

getVertexCountFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected