Skip to content

Instantly share code, notes, and snippets.

View bigalex95's full-sized avatar
🐢
slowly but surely to my dream be PRO

bigalex95

🐢
slowly but surely to my dream be PRO
View GitHub Profile
This file has been truncated, but you can view the full file.
var A={Image:1,QRCode:2,Surface:3},I={OnDetected:1,OnPose:2,OnLost:3,OnResize:4,OnTouch:5,OnHitTestResult:6,OnKeyFrame:7,OnStatusChange:8,OnSessionEnd:9,OnFrame:10},g={useVocabulary:!1,forceCompatWorldTracking:!1,forceRotationOnlyTracking:!1};function C(A,I){A.prototype=Object.create(I.prototype),A.prototype.constructor=A,Q(A,I)}function B(A){return B=Object.setPrototypeOf?Object.getPrototypeOf:function(A){return A.__proto__||Object.getPrototypeOf(A)},B(A)}function Q(A,I){return Q=Object.setPrototypeOf||function(A,I){return A.__proto__=I,A},Q(A,I)}function E(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(A){return!1}}function i(A,I,g){return i=E()?Reflect.construct:function(A,I,g){var C=[null];C.push.apply(C,I);var B=new(Function.bind.apply(A,C));return g&&Q(B,g.prototype),B},i.apply(null,arguments)}function D(A){var I="function"=
#include <emscripten.h>
#include <iostream>
#include <string>
#include <GLES2/gl2.h>
#include <EGL/egl.h>
extern "C"
{
#include "emscripten/html5.h"
}
width = 256;
height = 256;
let dst = new Uint8Array(Module.HEAPU8.buffer, dst_ptr, width * height);
canvasResultsLenna.width = width;
canvasResultsLenna.height = height;
var imgData = ctxResultsLenna.createImageData(width, height);
for (var i = 0; i < dst.length; i++) {
imgData.data[i * 4] = dst[i];
@bigalex95
bigalex95 / index.css
Created December 8, 2021 10:54 — forked from greggman/index.css
Slime Simulation - WebGL1
body {
margin: 0;
font-family: monospace;
background: #444;
}
canvas {
display: block;
width: 100vw;
height: 100vh;
}