wonder.js
Version:
61 lines (56 loc) • 3.08 kB
JavaScript
'use strict';
var Sinon = require("sinon");
var Caml_option = require("bs-platform/lib/js/caml_option.js");
function buildInitRenderData($staropt$star, $staropt$star$1, $staropt$star$2, $staropt$star$3, $staropt$star$4, $staropt$star$5, $staropt$star$6, $staropt$star$7, param) {
var isDebug = $staropt$star !== undefined ? $staropt$star : true;
var viewportData = $staropt$star$1 !== undefined ? Caml_option.valFromOption($staropt$star$1) : Sinon.match.any;
var workerDetectData = $staropt$star$2 !== undefined ? Caml_option.valFromOption($staropt$star$2) : Sinon.match.any;
var browserDetectData = $staropt$star$3 !== undefined ? Caml_option.valFromOption($staropt$star$3) : Sinon.match.any;
var textureData = $staropt$star$4 !== undefined ? Caml_option.valFromOption($staropt$star$4) : Sinon.match.any;
var imguiData = $staropt$star$5 !== undefined ? Caml_option.valFromOption($staropt$star$5) : Sinon.match.any;
if ($staropt$star$6 !== undefined) {
Caml_option.valFromOption($staropt$star$6);
} else {
Sinon.match.any;
}
var geometryData = $staropt$star$7 !== undefined ? Caml_option.valFromOption($staropt$star$7) : Sinon.match.any;
return {
operateType: "INIT_RENDER",
canvas: Sinon.match.any,
contextConfig: Sinon.match.any,
bufferData: Sinon.match.any,
instanceBufferData: Sinon.match.any,
isDebug: isDebug,
viewportData: viewportData,
gpuData: Sinon.match.any,
memoryData: Sinon.match.any,
renderConfigData: Sinon.match.any,
workerDetectData: workerDetectData,
browserDetectData: browserDetectData,
textureData: textureData,
imguiData: imguiData,
transformData: Sinon.match.any,
basicMaterialData: Sinon.match.any,
lightMaterialData: Sinon.match.any,
meshRendererData: Sinon.match.any,
geometryData: geometryData,
directionLightData: Sinon.match.any,
pointLightData: Sinon.match.any,
sourceInstanceData: Sinon.match.any
};
}
function buildTextureData($staropt$star, $staropt$star$1, $staropt$star$2, $staropt$star$3, param) {
var sourceTextureBuffer = $staropt$star !== undefined ? Caml_option.valFromOption($staropt$star) : Sinon.match.any;
var basicSourceTextureData = $staropt$star$1 !== undefined ? Caml_option.valFromOption($staropt$star$1) : Sinon.match.any;
var arrayBufferViewSourceTextureData = $staropt$star$2 !== undefined ? Caml_option.valFromOption($staropt$star$2) : Sinon.match.any;
var cubemapTextureData = $staropt$star$3 !== undefined ? Caml_option.valFromOption($staropt$star$3) : Sinon.match.any;
return {
sourceTextureBuffer: sourceTextureBuffer,
basicSourceTextureData: basicSourceTextureData,
arrayBufferViewSourceTextureData: arrayBufferViewSourceTextureData,
cubemapTextureData: cubemapTextureData
};
}
exports.buildInitRenderData = buildInitRenderData;
exports.buildTextureData = buildTextureData;
/* sinon Not a pure module */