UNPKG

wonder.js

Version:
21 lines (17 loc) 751 B
'use strict'; var SendGLSLDataService$Wonderjs = require("../../../../record/all/sender/SendGLSLDataService.js"); var AllGLSLLocationService$Wonderjs = require("../../../../record/all/location/AllGLSLLocationService.js"); function sendBuffer(gl, param, buffer, state) { var pos = param[1]; var match = AllGLSLLocationService$Wonderjs.isAttributeLocationExist(pos); if (match) { gl.bindBuffer(gl.ARRAY_BUFFER, buffer); gl.vertexAttribPointer(pos, param[0], gl.FLOAT, false, 0, 0); SendGLSLDataService$Wonderjs.enableVertexAttribArray(gl, pos, state[/* vertexAttribHistoryArray */0]); return /* () */0; } else { return /* () */0; } } exports.sendBuffer = sendBuffer; /* SendGLSLDataService-Wonderjs Not a pure module */