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

Function resizeTexture

docs/app/js/sanddance-app.js:99396–99410  ·  view source on GitHub ↗
(gl, texture, width, height)

Source from the content-addressed store, hash-verified

99394 return icon && (icon.id || icon.url);
99395}
99396function resizeTexture(gl, texture, width, height) {
99397 var oldWidth = texture.width;
99398 var oldHeight = texture.height;
99399 var newTexture = (0, _core.cloneTextureFrom)(texture, {
99400 width: width,
99401 height: height
99402 });
99403 (0, _core.copyToTexture)(texture, newTexture, {
99404 targetY: 0,
99405 width: oldWidth,
99406 height: oldHeight
99407 });
99408 texture["delete"]();
99409 return newTexture;
99410}
99411function buildRowMapping(mapping, columns, yOffset) {
99412 for(var i = 0; i < columns.length; i++){
99413 var _columns$i = columns[i], icon = _columns$i.icon, xOffset = _columns$i.xOffset;

Callers 1

sanddance-app.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected