mirror of
https://github.com/nicbarker/clay.git
synced 2026-02-06 12:48:49 +00:00
Updates and remove console logs
This commit is contained in:
parent
a75860ca57
commit
902487638c
3 changed files with 42 additions and 44 deletions
|
|
@ -271,10 +271,8 @@
|
|||
if (event.key === "ArrowUp") {
|
||||
window.arrowKeyUpPressedThisFrame = true;
|
||||
}
|
||||
console.log(event.key);
|
||||
if (event.key === "d") {
|
||||
window.dKeyPressedThisFrame = true;
|
||||
console.log('test');
|
||||
}
|
||||
});
|
||||
|
||||
|
|
@ -653,13 +651,6 @@
|
|||
break;
|
||||
}
|
||||
case (CLAY_RENDER_COMMAND_TYPE_SCISSOR_START): {
|
||||
if (!window.configs) {
|
||||
window.configs = {}
|
||||
}
|
||||
if (!window.configs[renderCommand.id.value]) {
|
||||
window.configs[renderCommand.id.value] = true;
|
||||
console.log('scissor', boundingBox.x.value * scale, boundingBox.y.value * scale, boundingBox.width.value * scale, boundingBox.height.value * scale);
|
||||
}
|
||||
window.canvasContext.save();
|
||||
window.canvasContext.beginPath();
|
||||
window.canvasContext.rect(boundingBox.x.value * scale, boundingBox.y.value * scale, boundingBox.width.value * scale, boundingBox.height.value * scale);
|
||||
|
|
@ -669,13 +660,6 @@
|
|||
}
|
||||
case (CLAY_RENDER_COMMAND_TYPE_SCISSOR_END): {
|
||||
window.canvasContext.restore();
|
||||
if (!window.configs) {
|
||||
window.configs = {}
|
||||
}
|
||||
if (!window.configs[renderCommand.id.value]) {
|
||||
window.configs[renderCommand.id.value] = true;
|
||||
console.log('end scissor');
|
||||
}
|
||||
break;
|
||||
}
|
||||
case (CLAY_RENDER_COMMAND_TYPE_IMAGE): {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue