UNPKG

wonder.js

Version:
60 lines (48 loc) 1.37 kB
'use strict'; var Caml_int32 = require("bs-platform/lib/js/caml_int32.js"); var BufferSizeTextureService$Wonderjs = require("./BufferSizeTextureService.js"); function getNeedUpdate(param) { return /* NeedUpdate */1; } function getNotNeedUpdate(param) { return /* Not_needUpdate */0; } function getDefaultIsNeedUpdate(param) { return /* NeedUpdate */1; } function getFlipY(param) { return /* Flipy */1; } function getNotFlipY(param) { return /* Not_flipy */0; } function getFlipYTypeArrayValue(isFlipY) { if (isFlipY) { return /* Flipy */1; } else { return /* Not_flipy */0; } } function getFlipYFromTypeArrayValue(isFlipY) { if (isFlipY) { return true; } else { return false; } } function getDefaultFlipY(param) { return /* Flipy */1; } function getIsNeedUpdateIndex(index) { return Caml_int32.imul(index, BufferSizeTextureService$Wonderjs.getIsNeedUpdatesSize(/* () */0)); } exports.getNeedUpdate = getNeedUpdate; exports.getNotNeedUpdate = getNotNeedUpdate; exports.getDefaultIsNeedUpdate = getDefaultIsNeedUpdate; exports.getFlipY = getFlipY; exports.getNotFlipY = getNotFlipY; exports.getFlipYTypeArrayValue = getFlipYTypeArrayValue; exports.getFlipYFromTypeArrayValue = getFlipYFromTypeArrayValue; exports.getDefaultFlipY = getDefaultFlipY; exports.getIsNeedUpdateIndex = getIsNeedUpdateIndex; /* No side effect */