action w/ direction, and mapgen ctd fix
This commit is contained in:
parent
030bda215a
commit
093f9df86e
8 changed files with 3995 additions and 3552 deletions
6772
resources/td.json
6772
resources/td.json
File diff suppressed because it is too large
Load diff
BIN
resources/td.png
BIN
resources/td.png
Binary file not shown.
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
|
|
@ -732,58 +732,46 @@ pub fn draw_ui(ecs: &World, ctx: &mut BTerm) {
|
||||||
|
|
||||||
pub fn get_input_direction(
|
pub fn get_input_direction(
|
||||||
ecs: &mut World,
|
ecs: &mut World,
|
||||||
ctx: &mut BTerm,
|
ctx: &mut App,
|
||||||
function: fn(i: i32, j: i32, ecs: &mut World) -> RunState
|
function: fn(i: i32, j: i32, ecs: &mut World) -> RunState
|
||||||
) -> RunState {
|
) -> RunState {
|
||||||
let offsets = camera::get_offset();
|
let key = &ctx.keyboard;
|
||||||
|
for keycode in key.pressed.iter() {
|
||||||
ctx.print_color(
|
match *keycode {
|
||||||
1 + offsets.x,
|
KeyCode::Escape => {
|
||||||
1 + offsets.y,
|
|
||||||
RGB::named(WHITE),
|
|
||||||
RGB::named(BLACK),
|
|
||||||
"In what direction? [0-9]/[YUHJKLBN]"
|
|
||||||
);
|
|
||||||
match ctx.key {
|
|
||||||
None => {
|
|
||||||
return RunState::ActionWithDirection { function };
|
|
||||||
}
|
|
||||||
Some(key) =>
|
|
||||||
match key {
|
|
||||||
VirtualKeyCode::Escape => {
|
|
||||||
return RunState::AwaitingInput;
|
return RunState::AwaitingInput;
|
||||||
}
|
}
|
||||||
// Cardinals
|
KeyCode::Numpad1 | KeyCode::B => {
|
||||||
VirtualKeyCode::Left | VirtualKeyCode::Numpad4 | VirtualKeyCode::H => {
|
|
||||||
return function(-1, 0, ecs);
|
|
||||||
}
|
|
||||||
VirtualKeyCode::Right | VirtualKeyCode::Numpad6 | VirtualKeyCode::L => {
|
|
||||||
return function(1, 0, ecs);
|
|
||||||
}
|
|
||||||
VirtualKeyCode::Up | VirtualKeyCode::Numpad8 | VirtualKeyCode::K => {
|
|
||||||
return function(0, -1, ecs);
|
|
||||||
}
|
|
||||||
VirtualKeyCode::Down | VirtualKeyCode::Numpad2 | VirtualKeyCode::J => {
|
|
||||||
return function(0, 1, ecs);
|
|
||||||
}
|
|
||||||
// Diagonals
|
|
||||||
VirtualKeyCode::Numpad9 | VirtualKeyCode::U => {
|
|
||||||
return function(1, -1, ecs);
|
|
||||||
}
|
|
||||||
VirtualKeyCode::Numpad7 | VirtualKeyCode::Y => {
|
|
||||||
return function(-1, -1, ecs);
|
|
||||||
}
|
|
||||||
VirtualKeyCode::Numpad3 | VirtualKeyCode::N => {
|
|
||||||
return function(1, 1, ecs);
|
|
||||||
}
|
|
||||||
VirtualKeyCode::Numpad1 | VirtualKeyCode::B => {
|
|
||||||
return function(-1, 1, ecs);
|
return function(-1, 1, ecs);
|
||||||
}
|
}
|
||||||
_ => {
|
KeyCode::Numpad2 | KeyCode::J | KeyCode::Down => {
|
||||||
return RunState::ActionWithDirection { function };
|
return function(0, 1, ecs);
|
||||||
}
|
}
|
||||||
|
KeyCode::Numpad3 | KeyCode::N => {
|
||||||
|
return function(1, 1, ecs);
|
||||||
|
}
|
||||||
|
KeyCode::Numpad4 | KeyCode::H | KeyCode::Left => {
|
||||||
|
return function(-1, 0, ecs);
|
||||||
|
}
|
||||||
|
KeyCode::Numpad5 | KeyCode::Period => {
|
||||||
|
return function(0, 0, ecs);
|
||||||
|
}
|
||||||
|
KeyCode::Numpad6 | KeyCode::L | KeyCode::Right => {
|
||||||
|
return function(1, 0, ecs);
|
||||||
|
}
|
||||||
|
KeyCode::Numpad7 | KeyCode::Y => {
|
||||||
|
return function(-1, -1, ecs);
|
||||||
|
}
|
||||||
|
KeyCode::Numpad8 | KeyCode::K | KeyCode::Up => {
|
||||||
|
return function(0, -1, ecs);
|
||||||
|
}
|
||||||
|
KeyCode::Numpad9 | KeyCode::U => {
|
||||||
|
return function(1, -1, ecs);
|
||||||
|
}
|
||||||
|
_ => {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
RunState::ActionWithDirection { function }
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(PartialEq, Copy, Clone)]
|
#[derive(PartialEq, Copy, Clone)]
|
||||||
|
|
|
||||||
12
src/main.rs
12
src/main.rs
|
|
@ -440,6 +440,7 @@ fn draw(app: &mut App, gfx: &mut Graphics, gs: &mut State) {
|
||||||
| RunState::PreRun { .. } => {}
|
| RunState::PreRun { .. } => {}
|
||||||
RunState::MapGeneration => {
|
RunState::MapGeneration => {
|
||||||
draw_bg(&gs.ecs, &mut draw, &gs.atlas);
|
draw_bg(&gs.ecs, &mut draw, &gs.atlas);
|
||||||
|
if config::CONFIG.logging.show_mapgen {
|
||||||
render_map_in_view(
|
render_map_in_view(
|
||||||
&gs.mapgen_history[gs.mapgen_index],
|
&gs.mapgen_history[gs.mapgen_index],
|
||||||
&gs.ecs,
|
&gs.ecs,
|
||||||
|
|
@ -448,6 +449,7 @@ fn draw(app: &mut App, gfx: &mut Graphics, gs: &mut State) {
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
_ => {
|
_ => {
|
||||||
draw_bg(&gs.ecs, &mut draw, &gs.atlas);
|
draw_bg(&gs.ecs, &mut draw, &gs.atlas);
|
||||||
draw_camera(&gs.ecs, &mut draw, &gs.atlas, &gs.font);
|
draw_camera(&gs.ecs, &mut draw, &gs.atlas, &gs.font);
|
||||||
|
|
@ -457,18 +459,20 @@ fn draw(app: &mut App, gfx: &mut Graphics, gs: &mut State) {
|
||||||
}
|
}
|
||||||
match *gs.ecs.fetch::<RunState>() {
|
match *gs.ecs.fetch::<RunState>() {
|
||||||
RunState::Farlook { x, y } => {
|
RunState::Farlook { x, y } => {
|
||||||
draw.text(&gs.font, "RunState::Farlook")
|
|
||||||
.position(((x + 2) as f32) * TILESIZE, (y as f32) * TILESIZE)
|
|
||||||
.size(FONTSIZE);
|
|
||||||
gui::draw_farlook(x, y, &mut draw, &gs.atlas);
|
gui::draw_farlook(x, y, &mut draw, &gs.atlas);
|
||||||
//draw_tooltips(&gs.ecs, ctx, Some((x, y))); TODO: Put this in draw loop
|
//draw_tooltips(&gs.ecs, ctx, Some((x, y))); TODO: Put this in draw loop
|
||||||
}
|
}
|
||||||
RunState::ShowCheatMenu => {
|
RunState::ShowCheatMenu => {
|
||||||
gui::draw_cheat_menu(&mut draw, &gs.atlas, &gs.font);
|
gui::draw_cheat_menu(&mut draw, &gs.atlas, &gs.font);
|
||||||
}
|
}
|
||||||
|
RunState::ActionWithDirection { .. } => {
|
||||||
|
let offset = crate::camera::get_offset();
|
||||||
|
draw.text(&gs.font, "In what direction? [0-9]/[YUHJKLBN]")
|
||||||
|
.position(((offset.x + 1) as f32) * TILESIZE, ((offset.y + 1) as f32) * TILESIZE)
|
||||||
|
.size(TILESIZE);
|
||||||
|
}
|
||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
// Render batch
|
|
||||||
gfx.render(&draw);
|
gfx.render(&draw);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -279,7 +279,9 @@ impl State {
|
||||||
// RunState::ShowTargeting
|
// RunState::ShowTargeting
|
||||||
// RunState::ShowRemoveCurse
|
// RunState::ShowRemoveCurse
|
||||||
// RunState::ShowIdentify
|
// RunState::ShowIdentify
|
||||||
// RunState::ActionWithDirection
|
RunState::ActionWithDirection { function } => {
|
||||||
|
new_runstate = gui::get_input_direction(&mut self.ecs, ctx, function);
|
||||||
|
}
|
||||||
// RunState::MainMenu
|
// RunState::MainMenu
|
||||||
// RunState::CharacterCreation
|
// RunState::CharacterCreation
|
||||||
RunState::SaveGame => {
|
RunState::SaveGame => {
|
||||||
|
|
@ -645,7 +647,7 @@ impl State {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
RunState::ActionWithDirection { function } => {
|
RunState::ActionWithDirection { function } => {
|
||||||
new_runstate = gui::get_input_direction(&mut self.ecs, ctx, function);
|
new_runstate = RunState::AwaitingInput; //gui::get_input_direction(&mut self.ecs, ctx, function);
|
||||||
}
|
}
|
||||||
RunState::MainMenu { .. } => {
|
RunState::MainMenu { .. } => {
|
||||||
let result = gui::main_menu(self, ctx);
|
let result = gui::main_menu(self, ctx);
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -27,6 +27,24 @@ function takeObject(idx) {
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
||||||
|
|
||||||
|
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
||||||
|
|
||||||
|
let cachedUint8Memory0 = null;
|
||||||
|
|
||||||
|
function getUint8Memory0() {
|
||||||
|
if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
|
||||||
|
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
|
||||||
|
}
|
||||||
|
return cachedUint8Memory0;
|
||||||
|
}
|
||||||
|
|
||||||
|
function getStringFromWasm0(ptr, len) {
|
||||||
|
ptr = ptr >>> 0;
|
||||||
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
||||||
|
}
|
||||||
|
|
||||||
function addHeapObject(obj) {
|
function addHeapObject(obj) {
|
||||||
if (heap_next === heap.length) heap.push(heap.length + 1);
|
if (heap_next === heap.length) heap.push(heap.length + 1);
|
||||||
const idx = heap_next;
|
const idx = heap_next;
|
||||||
|
|
@ -38,15 +56,6 @@ function addHeapObject(obj) {
|
||||||
|
|
||||||
let WASM_VECTOR_LEN = 0;
|
let WASM_VECTOR_LEN = 0;
|
||||||
|
|
||||||
let cachedUint8Memory0 = null;
|
|
||||||
|
|
||||||
function getUint8Memory0() {
|
|
||||||
if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
|
|
||||||
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
|
|
||||||
}
|
|
||||||
return cachedUint8Memory0;
|
|
||||||
}
|
|
||||||
|
|
||||||
const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
|
const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
|
||||||
|
|
||||||
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
||||||
|
|
@ -113,6 +122,15 @@ function getInt32Memory0() {
|
||||||
return cachedInt32Memory0;
|
return cachedInt32Memory0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let cachedFloat64Memory0 = null;
|
||||||
|
|
||||||
|
function getFloat64Memory0() {
|
||||||
|
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
||||||
|
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
||||||
|
}
|
||||||
|
return cachedFloat64Memory0;
|
||||||
|
}
|
||||||
|
|
||||||
function debugString(val) {
|
function debugString(val) {
|
||||||
// primitive types
|
// primitive types
|
||||||
const type = typeof val;
|
const type = typeof val;
|
||||||
|
|
@ -178,15 +196,6 @@ function debugString(val) {
|
||||||
return className;
|
return className;
|
||||||
}
|
}
|
||||||
|
|
||||||
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
||||||
|
|
||||||
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
|
||||||
|
|
||||||
function getStringFromWasm0(ptr, len) {
|
|
||||||
ptr = ptr >>> 0;
|
|
||||||
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
||||||
}
|
|
||||||
|
|
||||||
function makeMutClosure(arg0, arg1, dtor, f) {
|
function makeMutClosure(arg0, arg1, dtor, f) {
|
||||||
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
||||||
const real = (...args) => {
|
const real = (...args) => {
|
||||||
|
|
@ -211,12 +220,12 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
||||||
|
|
||||||
return real;
|
return real;
|
||||||
}
|
}
|
||||||
function __wbg_adapter_20(arg0, arg1) {
|
function __wbg_adapter_24(arg0, arg1) {
|
||||||
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h66b665bcfa5ccc10(arg0, arg1);
|
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1d5c38b17c68cbf8(arg0, arg1);
|
||||||
}
|
}
|
||||||
|
|
||||||
function __wbg_adapter_23(arg0, arg1, arg2) {
|
function __wbg_adapter_27(arg0, arg1, arg2) {
|
||||||
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7f980deb71f217f3(arg0, arg1, addHeapObject(arg2));
|
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h21def532cde51782(arg0, arg1, addHeapObject(arg2));
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleError(f, args) {
|
function handleError(f, args) {
|
||||||
|
|
@ -278,13 +287,39 @@ function __wbg_get_imports() {
|
||||||
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
||||||
takeObject(arg0);
|
takeObject(arg0);
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_log_0e24d345b14995ec = function(arg0, arg1) {
|
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
||||||
console.log(getStringFromWasm0(arg0, arg1));
|
const ret = getStringFromWasm0(arg0, arg1);
|
||||||
|
return addHeapObject(ret);
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_error_407831efd36ed4ad = function(arg0, arg1) {
|
||||||
|
console.error(getStringFromWasm0(arg0, arg1));
|
||||||
};
|
};
|
||||||
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
|
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
|
||||||
const ret = getObject(arg0);
|
const ret = getObject(arg0);
|
||||||
return addHeapObject(ret);
|
return addHeapObject(ret);
|
||||||
};
|
};
|
||||||
|
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
||||||
|
const obj = getObject(arg1);
|
||||||
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
||||||
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
||||||
|
var len1 = WASM_VECTOR_LEN;
|
||||||
|
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
||||||
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
||||||
|
const v = getObject(arg0);
|
||||||
|
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
||||||
|
return ret;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
||||||
|
const obj = getObject(arg1);
|
||||||
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
||||||
|
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
||||||
|
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_log_0e24d345b14995ec = function(arg0, arg1) {
|
||||||
|
console.log(getStringFromWasm0(arg0, arg1));
|
||||||
|
};
|
||||||
imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
|
imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
|
||||||
const ret = new Error();
|
const ret = new Error();
|
||||||
return addHeapObject(ret);
|
return addHeapObject(ret);
|
||||||
|
|
@ -307,19 +342,6 @@ function __wbg_get_imports() {
|
||||||
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
||||||
const obj = getObject(arg1);
|
|
||||||
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
||||||
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
||||||
var len1 = WASM_VECTOR_LEN;
|
|
||||||
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
||||||
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
||||||
};
|
|
||||||
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
||||||
const v = getObject(arg0);
|
|
||||||
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
||||||
return ret;
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_instanceof_WebGl2RenderingContext_f921526c513bf717 = function(arg0) {
|
imports.wbg.__wbg_instanceof_WebGl2RenderingContext_f921526c513bf717 = function(arg0) {
|
||||||
let result;
|
let result;
|
||||||
try {
|
try {
|
||||||
|
|
@ -330,19 +352,59 @@ function __wbg_get_imports() {
|
||||||
const ret = result;
|
const ret = result;
|
||||||
return ret;
|
return ret;
|
||||||
};
|
};
|
||||||
|
imports.wbg.__wbg_bindBufferBase_2f6265b5bd82a1f2 = function(arg0, arg1, arg2, arg3) {
|
||||||
|
getObject(arg0).bindBufferBase(arg1 >>> 0, arg2 >>> 0, getObject(arg3));
|
||||||
|
};
|
||||||
imports.wbg.__wbg_bindVertexArray_8863a216d7b0a339 = function(arg0, arg1) {
|
imports.wbg.__wbg_bindVertexArray_8863a216d7b0a339 = function(arg0, arg1) {
|
||||||
getObject(arg0).bindVertexArray(getObject(arg1));
|
getObject(arg0).bindVertexArray(getObject(arg1));
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_bufferData_21334671c4ba6004 = function(arg0, arg1, arg2, arg3) {
|
imports.wbg.__wbg_bufferData_21334671c4ba6004 = function(arg0, arg1, arg2, arg3) {
|
||||||
getObject(arg0).bufferData(arg1 >>> 0, getObject(arg2), arg3 >>> 0);
|
getObject(arg0).bufferData(arg1 >>> 0, getObject(arg2), arg3 >>> 0);
|
||||||
};
|
};
|
||||||
|
imports.wbg.__wbg_bufferSubData_c472b93c9e272eac = function(arg0, arg1, arg2, arg3) {
|
||||||
|
getObject(arg0).bufferSubData(arg1 >>> 0, arg2, getObject(arg3));
|
||||||
|
};
|
||||||
imports.wbg.__wbg_createVertexArray_51d51e1e1e13e9f6 = function(arg0) {
|
imports.wbg.__wbg_createVertexArray_51d51e1e1e13e9f6 = function(arg0) {
|
||||||
const ret = getObject(arg0).createVertexArray();
|
const ret = getObject(arg0).createVertexArray();
|
||||||
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
||||||
};
|
};
|
||||||
|
imports.wbg.__wbg_deleteVertexArray_3e4f2e2ff7f05a19 = function(arg0, arg1) {
|
||||||
|
getObject(arg0).deleteVertexArray(getObject(arg1));
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_drawArraysInstanced_8fb13fe9faf95212 = function(arg0, arg1, arg2, arg3, arg4) {
|
||||||
|
getObject(arg0).drawArraysInstanced(arg1 >>> 0, arg2, arg3, arg4);
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_drawElementsInstanced_dcf53461a977d44c = function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
||||||
|
getObject(arg0).drawElementsInstanced(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_getUniformBlockIndex_99c15053c9a87c73 = function(arg0, arg1, arg2, arg3) {
|
||||||
|
const ret = getObject(arg0).getUniformBlockIndex(getObject(arg1), getStringFromWasm0(arg2, arg3));
|
||||||
|
return ret;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_readPixels_99fda83f6ca7ec72 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
||||||
|
getObject(arg0).readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, getObject(arg7));
|
||||||
|
}, arguments) };
|
||||||
|
imports.wbg.__wbg_readPixels_9634f0dcfb54667c = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
||||||
|
getObject(arg0).readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7);
|
||||||
|
}, arguments) };
|
||||||
imports.wbg.__wbg_texImage2D_07240affd06971e9 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
imports.wbg.__wbg_texImage2D_07240affd06971e9 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
||||||
getObject(arg0).texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, getObject(arg9));
|
getObject(arg0).texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, getObject(arg9));
|
||||||
}, arguments) };
|
}, arguments) };
|
||||||
|
imports.wbg.__wbg_texSubImage2D_d2841ded12a8aa66 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
||||||
|
getObject(arg0).texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, getObject(arg9));
|
||||||
|
}, arguments) };
|
||||||
|
imports.wbg.__wbg_texSubImage2D_bccf4e250f1ce1b8 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
||||||
|
getObject(arg0).texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
|
||||||
|
}, arguments) };
|
||||||
|
imports.wbg.__wbg_uniformBlockBinding_0dc4bd81bb4ccb6a = function(arg0, arg1, arg2, arg3) {
|
||||||
|
getObject(arg0).uniformBlockBinding(getObject(arg1), arg2 >>> 0, arg3 >>> 0);
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_vertexAttribDivisor_197e2e23e3fbde7f = function(arg0, arg1, arg2) {
|
||||||
|
getObject(arg0).vertexAttribDivisor(arg1 >>> 0, arg2 >>> 0);
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_activeTexture_799bf1387e911c27 = function(arg0, arg1) {
|
||||||
|
getObject(arg0).activeTexture(arg1 >>> 0);
|
||||||
|
};
|
||||||
imports.wbg.__wbg_attachShader_47256b6b3d42a22e = function(arg0, arg1, arg2) {
|
imports.wbg.__wbg_attachShader_47256b6b3d42a22e = function(arg0, arg1, arg2) {
|
||||||
getObject(arg0).attachShader(getObject(arg1), getObject(arg2));
|
getObject(arg0).attachShader(getObject(arg1), getObject(arg2));
|
||||||
};
|
};
|
||||||
|
|
@ -355,15 +417,37 @@ function __wbg_get_imports() {
|
||||||
imports.wbg.__wbg_bindTexture_92d6d7f8bff9531e = function(arg0, arg1, arg2) {
|
imports.wbg.__wbg_bindTexture_92d6d7f8bff9531e = function(arg0, arg1, arg2) {
|
||||||
getObject(arg0).bindTexture(arg1 >>> 0, getObject(arg2));
|
getObject(arg0).bindTexture(arg1 >>> 0, getObject(arg2));
|
||||||
};
|
};
|
||||||
|
imports.wbg.__wbg_blendEquation_12146cb96dc1bcd9 = function(arg0, arg1) {
|
||||||
|
getObject(arg0).blendEquation(arg1 >>> 0);
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_blendEquationSeparate_205526dad772d160 = function(arg0, arg1, arg2) {
|
||||||
|
getObject(arg0).blendEquationSeparate(arg1 >>> 0, arg2 >>> 0);
|
||||||
|
};
|
||||||
imports.wbg.__wbg_blendFunc_533de6de45b80a09 = function(arg0, arg1, arg2) {
|
imports.wbg.__wbg_blendFunc_533de6de45b80a09 = function(arg0, arg1, arg2) {
|
||||||
getObject(arg0).blendFunc(arg1 >>> 0, arg2 >>> 0);
|
getObject(arg0).blendFunc(arg1 >>> 0, arg2 >>> 0);
|
||||||
};
|
};
|
||||||
|
imports.wbg.__wbg_blendFuncSeparate_fbf93dee3e5ce456 = function(arg0, arg1, arg2, arg3, arg4) {
|
||||||
|
getObject(arg0).blendFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_checkFramebufferStatus_d5eaeabeb7ea0712 = function(arg0, arg1) {
|
||||||
|
const ret = getObject(arg0).checkFramebufferStatus(arg1 >>> 0);
|
||||||
|
return ret;
|
||||||
|
};
|
||||||
imports.wbg.__wbg_clear_2db2efe323bfdf68 = function(arg0, arg1) {
|
imports.wbg.__wbg_clear_2db2efe323bfdf68 = function(arg0, arg1) {
|
||||||
getObject(arg0).clear(arg1 >>> 0);
|
getObject(arg0).clear(arg1 >>> 0);
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_clearColor_7a7d04702f7e38e5 = function(arg0, arg1, arg2, arg3, arg4) {
|
imports.wbg.__wbg_clearColor_7a7d04702f7e38e5 = function(arg0, arg1, arg2, arg3, arg4) {
|
||||||
getObject(arg0).clearColor(arg1, arg2, arg3, arg4);
|
getObject(arg0).clearColor(arg1, arg2, arg3, arg4);
|
||||||
};
|
};
|
||||||
|
imports.wbg.__wbg_clearDepth_eb4660e1a89df604 = function(arg0, arg1) {
|
||||||
|
getObject(arg0).clearDepth(arg1);
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_clearStencil_6f88ec46b2f75316 = function(arg0, arg1) {
|
||||||
|
getObject(arg0).clearStencil(arg1);
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_colorMask_fba1e2efd891e2ac = function(arg0, arg1, arg2, arg3, arg4) {
|
||||||
|
getObject(arg0).colorMask(arg1 !== 0, arg2 !== 0, arg3 !== 0, arg4 !== 0);
|
||||||
|
};
|
||||||
imports.wbg.__wbg_compileShader_6bf78b425d5c98e1 = function(arg0, arg1) {
|
imports.wbg.__wbg_compileShader_6bf78b425d5c98e1 = function(arg0, arg1) {
|
||||||
getObject(arg0).compileShader(getObject(arg1));
|
getObject(arg0).compileShader(getObject(arg1));
|
||||||
};
|
};
|
||||||
|
|
@ -387,6 +471,30 @@ function __wbg_get_imports() {
|
||||||
const ret = getObject(arg0).createTexture();
|
const ret = getObject(arg0).createTexture();
|
||||||
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
||||||
};
|
};
|
||||||
|
imports.wbg.__wbg_cullFace_6daa9f2aa42b4620 = function(arg0, arg1) {
|
||||||
|
getObject(arg0).cullFace(arg1 >>> 0);
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_deleteBuffer_2c09d03fa4b0bd08 = function(arg0, arg1) {
|
||||||
|
getObject(arg0).deleteBuffer(getObject(arg1));
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_deleteFramebuffer_edd16bb8df6a8e0d = function(arg0, arg1) {
|
||||||
|
getObject(arg0).deleteFramebuffer(getObject(arg1));
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_deleteProgram_53a32852f245b839 = function(arg0, arg1) {
|
||||||
|
getObject(arg0).deleteProgram(getObject(arg1));
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_deleteShader_7c1222349324b5e2 = function(arg0, arg1) {
|
||||||
|
getObject(arg0).deleteShader(getObject(arg1));
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_deleteTexture_4fcfea73cd8f6214 = function(arg0, arg1) {
|
||||||
|
getObject(arg0).deleteTexture(getObject(arg1));
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_depthFunc_fb41ad353d07948d = function(arg0, arg1) {
|
||||||
|
getObject(arg0).depthFunc(arg1 >>> 0);
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_depthMask_6a4ff02cd2a2702e = function(arg0, arg1) {
|
||||||
|
getObject(arg0).depthMask(arg1 !== 0);
|
||||||
|
};
|
||||||
imports.wbg.__wbg_disable_e02106ca6c7002d6 = function(arg0, arg1) {
|
imports.wbg.__wbg_disable_e02106ca6c7002d6 = function(arg0, arg1) {
|
||||||
getObject(arg0).disable(arg1 >>> 0);
|
getObject(arg0).disable(arg1 >>> 0);
|
||||||
};
|
};
|
||||||
|
|
@ -405,9 +513,12 @@ function __wbg_get_imports() {
|
||||||
imports.wbg.__wbg_framebufferTexture2D_e88fcbd7f8523bb8 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
imports.wbg.__wbg_framebufferTexture2D_e88fcbd7f8523bb8 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
||||||
getObject(arg0).framebufferTexture2D(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, getObject(arg4), arg5);
|
getObject(arg0).framebufferTexture2D(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, getObject(arg4), arg5);
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_getError_7191ad6ea53607fe = function(arg0) {
|
imports.wbg.__wbg_generateMipmap_96d73b7b931b4cbf = function(arg0, arg1) {
|
||||||
const ret = getObject(arg0).getError();
|
getObject(arg0).generateMipmap(arg1 >>> 0);
|
||||||
return ret;
|
};
|
||||||
|
imports.wbg.__wbg_getActiveUniform_78367ddc7339640b = function(arg0, arg1, arg2) {
|
||||||
|
const ret = getObject(arg0).getActiveUniform(getObject(arg1), arg2 >>> 0);
|
||||||
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_getExtension_77909f6d51d49d4d = function() { return handleError(function (arg0, arg1, arg2) {
|
imports.wbg.__wbg_getExtension_77909f6d51d49d4d = function() { return handleError(function (arg0, arg1, arg2) {
|
||||||
const ret = getObject(arg0).getExtension(getStringFromWasm0(arg1, arg2));
|
const ret = getObject(arg0).getExtension(getStringFromWasm0(arg1, arg2));
|
||||||
|
|
@ -450,28 +561,102 @@ function __wbg_get_imports() {
|
||||||
imports.wbg.__wbg_linkProgram_33998194075d71fb = function(arg0, arg1) {
|
imports.wbg.__wbg_linkProgram_33998194075d71fb = function(arg0, arg1) {
|
||||||
getObject(arg0).linkProgram(getObject(arg1));
|
getObject(arg0).linkProgram(getObject(arg1));
|
||||||
};
|
};
|
||||||
|
imports.wbg.__wbg_pixelStorei_f3a24990aa352fc7 = function(arg0, arg1, arg2) {
|
||||||
|
getObject(arg0).pixelStorei(arg1 >>> 0, arg2);
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_scissor_e8e41e1c0a9817c8 = function(arg0, arg1, arg2, arg3, arg4) {
|
||||||
|
getObject(arg0).scissor(arg1, arg2, arg3, arg4);
|
||||||
|
};
|
||||||
imports.wbg.__wbg_shaderSource_1cb7c64dc7d1a500 = function(arg0, arg1, arg2, arg3) {
|
imports.wbg.__wbg_shaderSource_1cb7c64dc7d1a500 = function(arg0, arg1, arg2, arg3) {
|
||||||
getObject(arg0).shaderSource(getObject(arg1), getStringFromWasm0(arg2, arg3));
|
getObject(arg0).shaderSource(getObject(arg1), getStringFromWasm0(arg2, arg3));
|
||||||
};
|
};
|
||||||
|
imports.wbg.__wbg_stencilFunc_fc72a03857442e32 = function(arg0, arg1, arg2, arg3) {
|
||||||
|
getObject(arg0).stencilFunc(arg1 >>> 0, arg2, arg3 >>> 0);
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_stencilMask_641f92999dd3c3de = function(arg0, arg1) {
|
||||||
|
getObject(arg0).stencilMask(arg1 >>> 0);
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_stencilOp_8f363ce325dcedb3 = function(arg0, arg1, arg2, arg3) {
|
||||||
|
getObject(arg0).stencilOp(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0);
|
||||||
|
};
|
||||||
imports.wbg.__wbg_texParameteri_85dad939f62a15aa = function(arg0, arg1, arg2, arg3) {
|
imports.wbg.__wbg_texParameteri_85dad939f62a15aa = function(arg0, arg1, arg2, arg3) {
|
||||||
getObject(arg0).texParameteri(arg1 >>> 0, arg2 >>> 0, arg3);
|
getObject(arg0).texParameteri(arg1 >>> 0, arg2 >>> 0, arg3);
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_uniform1i_d2e61a6a43889648 = function(arg0, arg1, arg2) {
|
imports.wbg.__wbg_uniform1i_d2e61a6a43889648 = function(arg0, arg1, arg2) {
|
||||||
getObject(arg0).uniform1i(getObject(arg1), arg2);
|
getObject(arg0).uniform1i(getObject(arg1), arg2);
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_uniform3f_8364a0959b6c1570 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
||||||
getObject(arg0).uniform3f(getObject(arg1), arg2, arg3, arg4);
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_useProgram_3683cf6f60939dcd = function(arg0, arg1) {
|
imports.wbg.__wbg_useProgram_3683cf6f60939dcd = function(arg0, arg1) {
|
||||||
getObject(arg0).useProgram(getObject(arg1));
|
getObject(arg0).useProgram(getObject(arg1));
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_vertexAttribPointer_316ffe2f0458fde7 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
imports.wbg.__wbg_vertexAttribPointer_316ffe2f0458fde7 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
||||||
getObject(arg0).vertexAttribPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4 !== 0, arg5, arg6);
|
getObject(arg0).vertexAttribPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4 !== 0, arg5, arg6);
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_getElementById_cc0e0d931b0d9a28 = function(arg0, arg1, arg2) {
|
imports.wbg.__wbg_viewport_fad1ce9e18f741c0 = function(arg0, arg1, arg2, arg3, arg4) {
|
||||||
const ret = getObject(arg0).getElementById(getStringFromWasm0(arg1, arg2));
|
getObject(arg0).viewport(arg1, arg2, arg3, arg4);
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_instanceof_Window_9029196b662bc42a = function(arg0) {
|
||||||
|
let result;
|
||||||
|
try {
|
||||||
|
result = getObject(arg0) instanceof Window;
|
||||||
|
} catch {
|
||||||
|
result = false;
|
||||||
|
}
|
||||||
|
const ret = result;
|
||||||
|
return ret;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_document_f7ace2b956f30a4f = function(arg0) {
|
||||||
|
const ret = getObject(arg0).document;
|
||||||
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
||||||
};
|
};
|
||||||
|
imports.wbg.__wbg_screen_452da8d1ab76046e = function() { return handleError(function (arg0) {
|
||||||
|
const ret = getObject(arg0).screen;
|
||||||
|
return addHeapObject(ret);
|
||||||
|
}, arguments) };
|
||||||
|
imports.wbg.__wbg_devicePixelRatio_f9de7bddca0eaf20 = function(arg0) {
|
||||||
|
const ret = getObject(arg0).devicePixelRatio;
|
||||||
|
return ret;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_open_7a2a86bf6285507d = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
||||||
|
const ret = getObject(arg0).open(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
||||||
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
||||||
|
}, arguments) };
|
||||||
|
imports.wbg.__wbg_requestAnimationFrame_d082200514b6674d = function() { return handleError(function (arg0, arg1) {
|
||||||
|
const ret = getObject(arg0).requestAnimationFrame(getObject(arg1));
|
||||||
|
return ret;
|
||||||
|
}, arguments) };
|
||||||
|
imports.wbg.__wbg_bindVertexArrayOES_b7d9da7e073aa6b5 = function(arg0, arg1) {
|
||||||
|
getObject(arg0).bindVertexArrayOES(getObject(arg1));
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_createVertexArrayOES_6a3c3a5a68201f8f = function(arg0) {
|
||||||
|
const ret = getObject(arg0).createVertexArrayOES();
|
||||||
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_deleteVertexArrayOES_7bf4589e63d84df6 = function(arg0, arg1) {
|
||||||
|
getObject(arg0).deleteVertexArrayOES(getObject(arg1));
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_pointerId_701aab7b4fb073ff = function(arg0) {
|
||||||
|
const ret = getObject(arg0).pointerId;
|
||||||
|
return ret;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_pointerType_0009b1e4e6b0f428 = function(arg0, arg1) {
|
||||||
|
const ret = getObject(arg1).pointerType;
|
||||||
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
||||||
|
const len1 = WASM_VECTOR_LEN;
|
||||||
|
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
||||||
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_deltaX_84508d00a1050e70 = function(arg0) {
|
||||||
|
const ret = getObject(arg0).deltaX;
|
||||||
|
return ret;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_deltaY_64823169afb0335d = function(arg0) {
|
||||||
|
const ret = getObject(arg0).deltaY;
|
||||||
|
return ret;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_now_0cfdc90c97d0c24b = function(arg0) {
|
||||||
|
const ret = getObject(arg0).now();
|
||||||
|
return ret;
|
||||||
|
};
|
||||||
imports.wbg.__wbg_instanceof_HtmlCanvasElement_da5f9efa0688cf6d = function(arg0) {
|
imports.wbg.__wbg_instanceof_HtmlCanvasElement_da5f9efa0688cf6d = function(arg0) {
|
||||||
let result;
|
let result;
|
||||||
try {
|
try {
|
||||||
|
|
@ -488,39 +673,43 @@ function __wbg_get_imports() {
|
||||||
imports.wbg.__wbg_setheight_a747d440760fe5aa = function(arg0, arg1) {
|
imports.wbg.__wbg_setheight_a747d440760fe5aa = function(arg0, arg1) {
|
||||||
getObject(arg0).height = arg1 >>> 0;
|
getObject(arg0).height = arg1 >>> 0;
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_getContext_7c5944ea807bf5d3 = function() { return handleError(function (arg0, arg1, arg2) {
|
imports.wbg.__wbg_getContext_6d1f155bb5c1096a = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
||||||
const ret = getObject(arg0).getContext(getStringFromWasm0(arg1, arg2));
|
const ret = getObject(arg0).getContext(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
||||||
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
||||||
}, arguments) };
|
}, arguments) };
|
||||||
imports.wbg.__wbg_offsetX_5a58f16f6c3a41b6 = function(arg0) {
|
imports.wbg.__wbg_debug_9a6b3243fbbebb61 = function(arg0) {
|
||||||
const ret = getObject(arg0).offsetX;
|
console.debug(getObject(arg0));
|
||||||
return ret;
|
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_offsetY_c45b4956f6429a95 = function(arg0) {
|
imports.wbg.__wbg_error_788ae33f81d3b84b = function(arg0) {
|
||||||
const ret = getObject(arg0).offsetY;
|
console.error(getObject(arg0));
|
||||||
return ret;
|
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_now_0cfdc90c97d0c24b = function(arg0) {
|
imports.wbg.__wbg_info_2e30e8204b29d91d = function(arg0) {
|
||||||
const ret = getObject(arg0).now();
|
console.info(getObject(arg0));
|
||||||
return ret;
|
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_instanceof_Window_9029196b662bc42a = function(arg0) {
|
imports.wbg.__wbg_log_1d3ae0273d8f4f8a = function(arg0) {
|
||||||
let result;
|
console.log(getObject(arg0));
|
||||||
try {
|
|
||||||
result = getObject(arg0) instanceof Window;
|
|
||||||
} catch {
|
|
||||||
result = false;
|
|
||||||
}
|
|
||||||
const ret = result;
|
|
||||||
return ret;
|
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_charCode_75cea1a3a6d66388 = function(arg0) {
|
imports.wbg.__wbg_warn_d60e832f9882c1b2 = function(arg0) {
|
||||||
const ret = getObject(arg0).charCode;
|
console.warn(getObject(arg0));
|
||||||
return ret;
|
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_keyCode_dfa86be31f5ef90c = function(arg0) {
|
imports.wbg.__wbg_drawArraysInstancedANGLE_01b862ba133350a3 = function(arg0, arg1, arg2, arg3, arg4) {
|
||||||
const ret = getObject(arg0).keyCode;
|
getObject(arg0).drawArraysInstancedANGLE(arg1 >>> 0, arg2, arg3, arg4);
|
||||||
return ret;
|
};
|
||||||
|
imports.wbg.__wbg_drawElementsInstancedANGLE_ea6343af8bf9c9f8 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
||||||
|
getObject(arg0).drawElementsInstancedANGLE(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_vertexAttribDivisorANGLE_a8476eb778e16c70 = function(arg0, arg1, arg2) {
|
||||||
|
getObject(arg0).vertexAttribDivisorANGLE(arg1 >>> 0, arg2 >>> 0);
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_setProperty_b95ef63ab852879e = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
||||||
|
getObject(arg0).setProperty(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
||||||
|
}, arguments) };
|
||||||
|
imports.wbg.__wbg_key_8aeaa079126a9cc7 = function(arg0, arg1) {
|
||||||
|
const ret = getObject(arg1).key;
|
||||||
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
||||||
|
const len1 = WASM_VECTOR_LEN;
|
||||||
|
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
||||||
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_code_96d6322b968b2d17 = function(arg0, arg1) {
|
imports.wbg.__wbg_code_96d6322b968b2d17 = function(arg0, arg1) {
|
||||||
const ret = getObject(arg1).code;
|
const ret = getObject(arg1).code;
|
||||||
|
|
@ -529,43 +718,133 @@ function __wbg_get_imports() {
|
||||||
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
||||||
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_getModifierState_5102ee8843516d2f = function(arg0, arg1, arg2) {
|
imports.wbg.__wbg_clientX_1a480606ab0cabaa = function(arg0) {
|
||||||
const ret = getObject(arg0).getModifierState(getStringFromWasm0(arg1, arg2));
|
const ret = getObject(arg0).clientX;
|
||||||
return ret;
|
return ret;
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_document_f7ace2b956f30a4f = function(arg0) {
|
imports.wbg.__wbg_clientY_9c7878f7faf3900f = function(arg0) {
|
||||||
const ret = getObject(arg0).document;
|
const ret = getObject(arg0).clientY;
|
||||||
|
return ret;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_button_7a095234b69de930 = function(arg0) {
|
||||||
|
const ret = getObject(arg0).button;
|
||||||
|
return ret;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_movementX_966ec323c169d1a6 = function(arg0) {
|
||||||
|
const ret = getObject(arg0).movementX;
|
||||||
|
return ret;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_movementY_b14b3bc8e1b31f23 = function(arg0) {
|
||||||
|
const ret = getObject(arg0).movementY;
|
||||||
|
return ret;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_body_674aec4c1c0910cd = function(arg0) {
|
||||||
|
const ret = getObject(arg0).body;
|
||||||
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_performance_2c295061c8b01e0b = function(arg0) {
|
imports.wbg.__wbg_fullscreen_6e5ea390ffad3838 = function(arg0) {
|
||||||
const ret = getObject(arg0).performance;
|
const ret = getObject(arg0).fullscreen;
|
||||||
|
return ret;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_activeElement_2cf540415b6fcd5c = function(arg0) {
|
||||||
|
const ret = getObject(arg0).activeElement;
|
||||||
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_setonkeydown_933cca3c9000a932 = function(arg0, arg1) {
|
imports.wbg.__wbg_pointerLockElement_a9be188f5b57ae68 = function(arg0) {
|
||||||
getObject(arg0).onkeydown = getObject(arg1);
|
const ret = getObject(arg0).pointerLockElement;
|
||||||
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_setonkeyup_0dfb23e81d0afdde = function(arg0, arg1) {
|
imports.wbg.__wbg_createElement_4891554b28d3388b = function() { return handleError(function (arg0, arg1, arg2) {
|
||||||
getObject(arg0).onkeyup = getObject(arg1);
|
const ret = getObject(arg0).createElement(getStringFromWasm0(arg1, arg2));
|
||||||
|
return addHeapObject(ret);
|
||||||
|
}, arguments) };
|
||||||
|
imports.wbg.__wbg_exitFullscreen_5fada21e8623256e = function(arg0) {
|
||||||
|
getObject(arg0).exitFullscreen();
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_requestAnimationFrame_d082200514b6674d = function() { return handleError(function (arg0, arg1) {
|
imports.wbg.__wbg_exitPointerLock_bf425ac90f055faa = function(arg0) {
|
||||||
const ret = getObject(arg0).requestAnimationFrame(getObject(arg1));
|
getObject(arg0).exitPointerLock();
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_getElementById_cc0e0d931b0d9a28 = function(arg0, arg1, arg2) {
|
||||||
|
const ret = getObject(arg0).getElementById(getStringFromWasm0(arg1, arg2));
|
||||||
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_hasFocus_2b48e9e2604cbbca = function() { return handleError(function (arg0) {
|
||||||
|
const ret = getObject(arg0).hasFocus();
|
||||||
return ret;
|
return ret;
|
||||||
}, arguments) };
|
}, arguments) };
|
||||||
imports.wbg.__wbg_setonmousedown_4f38d9c057bbfcbd = function(arg0, arg1) {
|
imports.wbg.__wbg_id_0626af592e3fcac5 = function(arg0, arg1) {
|
||||||
getObject(arg0).onmousedown = getObject(arg1);
|
const ret = getObject(arg1).id;
|
||||||
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
||||||
|
const len1 = WASM_VECTOR_LEN;
|
||||||
|
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
||||||
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_setonmousemove_c0b17753786f3544 = function(arg0, arg1) {
|
imports.wbg.__wbg_setid_1984ee27e5075311 = function(arg0, arg1, arg2) {
|
||||||
getObject(arg0).onmousemove = getObject(arg1);
|
getObject(arg0).id = getStringFromWasm0(arg1, arg2);
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_setonmouseup_4b447fa380e33802 = function(arg0, arg1) {
|
imports.wbg.__wbg_clientWidth_51ec21e3189f5656 = function(arg0) {
|
||||||
getObject(arg0).onmouseup = getObject(arg1);
|
const ret = getObject(arg0).clientWidth;
|
||||||
|
return ret;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_clientHeight_09ec0b524d59c367 = function(arg0) {
|
||||||
|
const ret = getObject(arg0).clientHeight;
|
||||||
|
return ret;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_getAttribute_3d8fcc9eaea35a17 = function(arg0, arg1, arg2, arg3) {
|
||||||
|
const ret = getObject(arg1).getAttribute(getStringFromWasm0(arg2, arg3));
|
||||||
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
||||||
|
var len1 = WASM_VECTOR_LEN;
|
||||||
|
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
||||||
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_getBoundingClientRect_ac9db8cf97ca8083 = function(arg0) {
|
||||||
|
const ret = getObject(arg0).getBoundingClientRect();
|
||||||
|
return addHeapObject(ret);
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_requestFullscreen_3545278bcd44910c = function() { return handleError(function (arg0) {
|
||||||
|
getObject(arg0).requestFullscreen();
|
||||||
|
}, arguments) };
|
||||||
|
imports.wbg.__wbg_requestPointerLock_368c5cc6c3ddd339 = function(arg0) {
|
||||||
|
getObject(arg0).requestPointerLock();
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_setAttribute_e7e80b478b7b8b2f = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
||||||
|
getObject(arg0).setAttribute(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
||||||
|
}, arguments) };
|
||||||
|
imports.wbg.__wbg_style_3801009b2339aa94 = function(arg0) {
|
||||||
|
const ret = getObject(arg0).style;
|
||||||
|
return addHeapObject(ret);
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_focus_dbcbbbb2a04c0e1f = function() { return handleError(function (arg0) {
|
||||||
|
getObject(arg0).focus();
|
||||||
|
}, arguments) };
|
||||||
|
imports.wbg.__wbg_instanceof_WebGlRenderingContext_ea632546035eecb1 = function(arg0) {
|
||||||
|
let result;
|
||||||
|
try {
|
||||||
|
result = getObject(arg0) instanceof WebGLRenderingContext;
|
||||||
|
} catch {
|
||||||
|
result = false;
|
||||||
|
}
|
||||||
|
const ret = result;
|
||||||
|
return ret;
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_bufferData_a11a9f65f31e7256 = function(arg0, arg1, arg2, arg3) {
|
imports.wbg.__wbg_bufferData_a11a9f65f31e7256 = function(arg0, arg1, arg2, arg3) {
|
||||||
getObject(arg0).bufferData(arg1 >>> 0, getObject(arg2), arg3 >>> 0);
|
getObject(arg0).bufferData(arg1 >>> 0, getObject(arg2), arg3 >>> 0);
|
||||||
};
|
};
|
||||||
|
imports.wbg.__wbg_bufferSubData_fca6f1c10273be21 = function(arg0, arg1, arg2, arg3) {
|
||||||
|
getObject(arg0).bufferSubData(arg1 >>> 0, arg2, getObject(arg3));
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_readPixels_91b0d8854de90477 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
||||||
|
getObject(arg0).readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, getObject(arg7));
|
||||||
|
}, arguments) };
|
||||||
imports.wbg.__wbg_texImage2D_6175916e58c59bc7 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
imports.wbg.__wbg_texImage2D_6175916e58c59bc7 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
||||||
getObject(arg0).texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, getObject(arg9));
|
getObject(arg0).texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, getObject(arg9));
|
||||||
}, arguments) };
|
}, arguments) };
|
||||||
|
imports.wbg.__wbg_texSubImage2D_f1a31f8045b7f831 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
||||||
|
getObject(arg0).texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, getObject(arg9));
|
||||||
|
}, arguments) };
|
||||||
|
imports.wbg.__wbg_activeTexture_93b4de60af07da9c = function(arg0, arg1) {
|
||||||
|
getObject(arg0).activeTexture(arg1 >>> 0);
|
||||||
|
};
|
||||||
imports.wbg.__wbg_attachShader_b65b695055670cb5 = function(arg0, arg1, arg2) {
|
imports.wbg.__wbg_attachShader_b65b695055670cb5 = function(arg0, arg1, arg2) {
|
||||||
getObject(arg0).attachShader(getObject(arg1), getObject(arg2));
|
getObject(arg0).attachShader(getObject(arg1), getObject(arg2));
|
||||||
};
|
};
|
||||||
|
|
@ -578,15 +857,37 @@ function __wbg_get_imports() {
|
||||||
imports.wbg.__wbg_bindTexture_9cb5c770d1ba2cca = function(arg0, arg1, arg2) {
|
imports.wbg.__wbg_bindTexture_9cb5c770d1ba2cca = function(arg0, arg1, arg2) {
|
||||||
getObject(arg0).bindTexture(arg1 >>> 0, getObject(arg2));
|
getObject(arg0).bindTexture(arg1 >>> 0, getObject(arg2));
|
||||||
};
|
};
|
||||||
|
imports.wbg.__wbg_blendEquation_f31ce08020786a09 = function(arg0, arg1) {
|
||||||
|
getObject(arg0).blendEquation(arg1 >>> 0);
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_blendEquationSeparate_7ec5e34f066e44f8 = function(arg0, arg1, arg2) {
|
||||||
|
getObject(arg0).blendEquationSeparate(arg1 >>> 0, arg2 >>> 0);
|
||||||
|
};
|
||||||
imports.wbg.__wbg_blendFunc_fbe9d3a688fe71c3 = function(arg0, arg1, arg2) {
|
imports.wbg.__wbg_blendFunc_fbe9d3a688fe71c3 = function(arg0, arg1, arg2) {
|
||||||
getObject(arg0).blendFunc(arg1 >>> 0, arg2 >>> 0);
|
getObject(arg0).blendFunc(arg1 >>> 0, arg2 >>> 0);
|
||||||
};
|
};
|
||||||
|
imports.wbg.__wbg_blendFuncSeparate_7547ade0a7dfade2 = function(arg0, arg1, arg2, arg3, arg4) {
|
||||||
|
getObject(arg0).blendFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_checkFramebufferStatus_16ff70667a5f6e18 = function(arg0, arg1) {
|
||||||
|
const ret = getObject(arg0).checkFramebufferStatus(arg1 >>> 0);
|
||||||
|
return ret;
|
||||||
|
};
|
||||||
imports.wbg.__wbg_clear_2ccea1f65b510c97 = function(arg0, arg1) {
|
imports.wbg.__wbg_clear_2ccea1f65b510c97 = function(arg0, arg1) {
|
||||||
getObject(arg0).clear(arg1 >>> 0);
|
getObject(arg0).clear(arg1 >>> 0);
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_clearColor_de587608b28bc7ed = function(arg0, arg1, arg2, arg3, arg4) {
|
imports.wbg.__wbg_clearColor_de587608b28bc7ed = function(arg0, arg1, arg2, arg3, arg4) {
|
||||||
getObject(arg0).clearColor(arg1, arg2, arg3, arg4);
|
getObject(arg0).clearColor(arg1, arg2, arg3, arg4);
|
||||||
};
|
};
|
||||||
|
imports.wbg.__wbg_clearDepth_de473665af3545ff = function(arg0, arg1) {
|
||||||
|
getObject(arg0).clearDepth(arg1);
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_clearStencil_68147b3b4a196080 = function(arg0, arg1) {
|
||||||
|
getObject(arg0).clearStencil(arg1);
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_colorMask_7cbd7a102954ede9 = function(arg0, arg1, arg2, arg3, arg4) {
|
||||||
|
getObject(arg0).colorMask(arg1 !== 0, arg2 !== 0, arg3 !== 0, arg4 !== 0);
|
||||||
|
};
|
||||||
imports.wbg.__wbg_compileShader_d88d0a8cd9b72b4d = function(arg0, arg1) {
|
imports.wbg.__wbg_compileShader_d88d0a8cd9b72b4d = function(arg0, arg1) {
|
||||||
getObject(arg0).compileShader(getObject(arg1));
|
getObject(arg0).compileShader(getObject(arg1));
|
||||||
};
|
};
|
||||||
|
|
@ -610,6 +911,30 @@ function __wbg_get_imports() {
|
||||||
const ret = getObject(arg0).createTexture();
|
const ret = getObject(arg0).createTexture();
|
||||||
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
||||||
};
|
};
|
||||||
|
imports.wbg.__wbg_cullFace_4c086dc1d86a19b5 = function(arg0, arg1) {
|
||||||
|
getObject(arg0).cullFace(arg1 >>> 0);
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_deleteBuffer_cdc6b9c73f54aff7 = function(arg0, arg1) {
|
||||||
|
getObject(arg0).deleteBuffer(getObject(arg1));
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_deleteFramebuffer_fcc10cb143c6573d = function(arg0, arg1) {
|
||||||
|
getObject(arg0).deleteFramebuffer(getObject(arg1));
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_deleteProgram_d8d7fc79ba83b256 = function(arg0, arg1) {
|
||||||
|
getObject(arg0).deleteProgram(getObject(arg1));
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_deleteShader_9a2f85efe5cb3706 = function(arg0, arg1) {
|
||||||
|
getObject(arg0).deleteShader(getObject(arg1));
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_deleteTexture_a883356c5034d482 = function(arg0, arg1) {
|
||||||
|
getObject(arg0).deleteTexture(getObject(arg1));
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_depthFunc_4eda7b4e682acbad = function(arg0, arg1) {
|
||||||
|
getObject(arg0).depthFunc(arg1 >>> 0);
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_depthMask_a3071e13bb087102 = function(arg0, arg1) {
|
||||||
|
getObject(arg0).depthMask(arg1 !== 0);
|
||||||
|
};
|
||||||
imports.wbg.__wbg_disable_5cf2070641fa2ed7 = function(arg0, arg1) {
|
imports.wbg.__wbg_disable_5cf2070641fa2ed7 = function(arg0, arg1) {
|
||||||
getObject(arg0).disable(arg1 >>> 0);
|
getObject(arg0).disable(arg1 >>> 0);
|
||||||
};
|
};
|
||||||
|
|
@ -628,10 +953,21 @@ function __wbg_get_imports() {
|
||||||
imports.wbg.__wbg_framebufferTexture2D_953e69a8bec22fa9 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
imports.wbg.__wbg_framebufferTexture2D_953e69a8bec22fa9 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
||||||
getObject(arg0).framebufferTexture2D(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, getObject(arg4), arg5);
|
getObject(arg0).framebufferTexture2D(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, getObject(arg4), arg5);
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_getError_1e5ec1ec9e58b323 = function(arg0) {
|
imports.wbg.__wbg_generateMipmap_99a56abf170def20 = function(arg0, arg1) {
|
||||||
const ret = getObject(arg0).getError();
|
getObject(arg0).generateMipmap(arg1 >>> 0);
|
||||||
return ret;
|
|
||||||
};
|
};
|
||||||
|
imports.wbg.__wbg_getActiveUniform_87df972e841afed2 = function(arg0, arg1, arg2) {
|
||||||
|
const ret = getObject(arg0).getActiveUniform(getObject(arg1), arg2 >>> 0);
|
||||||
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_getExtension_088d115a16ecbd7d = function() { return handleError(function (arg0, arg1, arg2) {
|
||||||
|
const ret = getObject(arg0).getExtension(getStringFromWasm0(arg1, arg2));
|
||||||
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
||||||
|
}, arguments) };
|
||||||
|
imports.wbg.__wbg_getParameter_bfab7f0b00c9d7fb = function() { return handleError(function (arg0, arg1) {
|
||||||
|
const ret = getObject(arg0).getParameter(arg1 >>> 0);
|
||||||
|
return addHeapObject(ret);
|
||||||
|
}, arguments) };
|
||||||
imports.wbg.__wbg_getProgramInfoLog_0b7af4ad85fa52a4 = function(arg0, arg1, arg2) {
|
imports.wbg.__wbg_getProgramInfoLog_0b7af4ad85fa52a4 = function(arg0, arg1, arg2) {
|
||||||
const ret = getObject(arg1).getProgramInfoLog(getObject(arg2));
|
const ret = getObject(arg1).getProgramInfoLog(getObject(arg2));
|
||||||
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
||||||
|
|
@ -654,6 +990,10 @@ function __wbg_get_imports() {
|
||||||
const ret = getObject(arg0).getShaderParameter(getObject(arg1), arg2 >>> 0);
|
const ret = getObject(arg0).getShaderParameter(getObject(arg1), arg2 >>> 0);
|
||||||
return addHeapObject(ret);
|
return addHeapObject(ret);
|
||||||
};
|
};
|
||||||
|
imports.wbg.__wbg_getSupportedExtensions_4eb3a5f14f552ce5 = function(arg0) {
|
||||||
|
const ret = getObject(arg0).getSupportedExtensions();
|
||||||
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
||||||
|
};
|
||||||
imports.wbg.__wbg_getUniformLocation_688976233799a45a = function(arg0, arg1, arg2, arg3) {
|
imports.wbg.__wbg_getUniformLocation_688976233799a45a = function(arg0, arg1, arg2, arg3) {
|
||||||
const ret = getObject(arg0).getUniformLocation(getObject(arg1), getStringFromWasm0(arg2, arg3));
|
const ret = getObject(arg0).getUniformLocation(getObject(arg1), getStringFromWasm0(arg2, arg3));
|
||||||
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
||||||
|
|
@ -661,31 +1001,87 @@ function __wbg_get_imports() {
|
||||||
imports.wbg.__wbg_linkProgram_9a2d12d120d99917 = function(arg0, arg1) {
|
imports.wbg.__wbg_linkProgram_9a2d12d120d99917 = function(arg0, arg1) {
|
||||||
getObject(arg0).linkProgram(getObject(arg1));
|
getObject(arg0).linkProgram(getObject(arg1));
|
||||||
};
|
};
|
||||||
|
imports.wbg.__wbg_pixelStorei_5ec932ebefd00149 = function(arg0, arg1, arg2) {
|
||||||
|
getObject(arg0).pixelStorei(arg1 >>> 0, arg2);
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_scissor_c8ec3b1e053f3756 = function(arg0, arg1, arg2, arg3, arg4) {
|
||||||
|
getObject(arg0).scissor(arg1, arg2, arg3, arg4);
|
||||||
|
};
|
||||||
imports.wbg.__wbg_shaderSource_f435f9b74440bb54 = function(arg0, arg1, arg2, arg3) {
|
imports.wbg.__wbg_shaderSource_f435f9b74440bb54 = function(arg0, arg1, arg2, arg3) {
|
||||||
getObject(arg0).shaderSource(getObject(arg1), getStringFromWasm0(arg2, arg3));
|
getObject(arg0).shaderSource(getObject(arg1), getStringFromWasm0(arg2, arg3));
|
||||||
};
|
};
|
||||||
|
imports.wbg.__wbg_stencilFunc_11e7ac2d45aa66c7 = function(arg0, arg1, arg2, arg3) {
|
||||||
|
getObject(arg0).stencilFunc(arg1 >>> 0, arg2, arg3 >>> 0);
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_stencilMask_79416c29ac1ce3a4 = function(arg0, arg1) {
|
||||||
|
getObject(arg0).stencilMask(arg1 >>> 0);
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_stencilOp_398dc625213ddfed = function(arg0, arg1, arg2, arg3) {
|
||||||
|
getObject(arg0).stencilOp(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0);
|
||||||
|
};
|
||||||
imports.wbg.__wbg_texParameteri_1f17358e51eb8069 = function(arg0, arg1, arg2, arg3) {
|
imports.wbg.__wbg_texParameteri_1f17358e51eb8069 = function(arg0, arg1, arg2, arg3) {
|
||||||
getObject(arg0).texParameteri(arg1 >>> 0, arg2 >>> 0, arg3);
|
getObject(arg0).texParameteri(arg1 >>> 0, arg2 >>> 0, arg3);
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_uniform1i_9f94ef0ba6b3cc66 = function(arg0, arg1, arg2) {
|
imports.wbg.__wbg_uniform1i_9f94ef0ba6b3cc66 = function(arg0, arg1, arg2) {
|
||||||
getObject(arg0).uniform1i(getObject(arg1), arg2);
|
getObject(arg0).uniform1i(getObject(arg1), arg2);
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_uniform3f_c682f4b32f713d1a = function(arg0, arg1, arg2, arg3, arg4) {
|
|
||||||
getObject(arg0).uniform3f(getObject(arg1), arg2, arg3, arg4);
|
|
||||||
};
|
|
||||||
imports.wbg.__wbg_useProgram_019eb6df066fabf5 = function(arg0, arg1) {
|
imports.wbg.__wbg_useProgram_019eb6df066fabf5 = function(arg0, arg1) {
|
||||||
getObject(arg0).useProgram(getObject(arg1));
|
getObject(arg0).useProgram(getObject(arg1));
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_vertexAttribPointer_ca11984ee8843c0a = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
imports.wbg.__wbg_vertexAttribPointer_ca11984ee8843c0a = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
||||||
getObject(arg0).vertexAttribPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4 !== 0, arg5, arg6);
|
getObject(arg0).vertexAttribPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4 !== 0, arg5, arg6);
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_bindVertexArrayOES_b7d9da7e073aa6b5 = function(arg0, arg1) {
|
imports.wbg.__wbg_viewport_6ebef187c89e2616 = function(arg0, arg1, arg2, arg3, arg4) {
|
||||||
getObject(arg0).bindVertexArrayOES(getObject(arg1));
|
getObject(arg0).viewport(arg1, arg2, arg3, arg4);
|
||||||
};
|
};
|
||||||
imports.wbg.__wbg_createVertexArrayOES_6a3c3a5a68201f8f = function(arg0) {
|
imports.wbg.__wbg_preventDefault_24104f3f0a54546a = function(arg0) {
|
||||||
const ret = getObject(arg0).createVertexArrayOES();
|
getObject(arg0).preventDefault();
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_stopPropagation_55539cfa2506c867 = function(arg0) {
|
||||||
|
getObject(arg0).stopPropagation();
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_parentElement_c75962bc9997ea5f = function(arg0) {
|
||||||
|
const ret = getObject(arg0).parentElement;
|
||||||
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
||||||
};
|
};
|
||||||
|
imports.wbg.__wbg_appendChild_51339d4cde00ee22 = function() { return handleError(function (arg0, arg1) {
|
||||||
|
const ret = getObject(arg0).appendChild(getObject(arg1));
|
||||||
|
return addHeapObject(ret);
|
||||||
|
}, arguments) };
|
||||||
|
imports.wbg.__wbg_size_6eb4aa794f6bf220 = function(arg0) {
|
||||||
|
const ret = getObject(arg0).size;
|
||||||
|
return ret;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_type_37bb6b4936b5e027 = function(arg0) {
|
||||||
|
const ret = getObject(arg0).type;
|
||||||
|
return ret;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_name_ebae3a7e89367611 = function(arg0, arg1) {
|
||||||
|
const ret = getObject(arg1).name;
|
||||||
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
||||||
|
const len1 = WASM_VECTOR_LEN;
|
||||||
|
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
||||||
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_top_98ff0408c018d25e = function(arg0) {
|
||||||
|
const ret = getObject(arg0).top;
|
||||||
|
return ret;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_left_23a613d619fb4206 = function(arg0) {
|
||||||
|
const ret = getObject(arg0).left;
|
||||||
|
return ret;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_addEventListener_5651108fc3ffeb6e = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
||||||
|
getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
||||||
|
}, arguments) };
|
||||||
|
imports.wbg.__wbg_width_07fc222a210e15f1 = function() { return handleError(function (arg0) {
|
||||||
|
const ret = getObject(arg0).width;
|
||||||
|
return ret;
|
||||||
|
}, arguments) };
|
||||||
|
imports.wbg.__wbg_height_6fa226ea329cffc1 = function() { return handleError(function (arg0) {
|
||||||
|
const ret = getObject(arg0).height;
|
||||||
|
return ret;
|
||||||
|
}, arguments) };
|
||||||
imports.wbg.__wbg_self_1c2814d86e6e51e3 = function() { return handleError(function () {
|
imports.wbg.__wbg_self_1c2814d86e6e51e3 = function() { return handleError(function () {
|
||||||
const ret = self.self;
|
const ret = self.self;
|
||||||
return addHeapObject(ret);
|
return addHeapObject(ret);
|
||||||
|
|
@ -728,10 +1124,18 @@ function __wbg_get_imports() {
|
||||||
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
||||||
return addHeapObject(ret);
|
return addHeapObject(ret);
|
||||||
};
|
};
|
||||||
|
imports.wbg.__wbg_get_97b561fb56f034b5 = function() { return handleError(function (arg0, arg1) {
|
||||||
|
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
||||||
|
return addHeapObject(ret);
|
||||||
|
}, arguments) };
|
||||||
imports.wbg.__wbg_call_cb65541d95d71282 = function() { return handleError(function (arg0, arg1) {
|
imports.wbg.__wbg_call_cb65541d95d71282 = function() { return handleError(function (arg0, arg1) {
|
||||||
const ret = getObject(arg0).call(getObject(arg1));
|
const ret = getObject(arg0).call(getObject(arg1));
|
||||||
return addHeapObject(ret);
|
return addHeapObject(ret);
|
||||||
}, arguments) };
|
}, arguments) };
|
||||||
|
imports.wbg.__wbg_new_b51585de1b234aff = function() {
|
||||||
|
const ret = new Object();
|
||||||
|
return addHeapObject(ret);
|
||||||
|
};
|
||||||
imports.wbg.__wbg_self_1ff1d729e9aae938 = function() { return handleError(function () {
|
imports.wbg.__wbg_self_1ff1d729e9aae938 = function() { return handleError(function () {
|
||||||
const ret = self.self;
|
const ret = self.self;
|
||||||
return addHeapObject(ret);
|
return addHeapObject(ret);
|
||||||
|
|
@ -748,6 +1152,34 @@ function __wbg_get_imports() {
|
||||||
const ret = global.global;
|
const ret = global.global;
|
||||||
return addHeapObject(ret);
|
return addHeapObject(ret);
|
||||||
}, arguments) };
|
}, arguments) };
|
||||||
|
imports.wbg.__wbg_getUTCDay_4cf4be86a2d32954 = function(arg0) {
|
||||||
|
const ret = getObject(arg0).getUTCDay();
|
||||||
|
return ret;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_getUTCFullYear_ae4f7c4a60c441d1 = function(arg0) {
|
||||||
|
const ret = getObject(arg0).getUTCFullYear();
|
||||||
|
return ret;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_getUTCHours_ecf78a80e567729d = function(arg0) {
|
||||||
|
const ret = getObject(arg0).getUTCHours();
|
||||||
|
return ret;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_getUTCMinutes_20c281b2e442a4cb = function(arg0) {
|
||||||
|
const ret = getObject(arg0).getUTCMinutes();
|
||||||
|
return ret;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_getUTCMonth_0d50a6216b1c52ca = function(arg0) {
|
||||||
|
const ret = getObject(arg0).getUTCMonth();
|
||||||
|
return ret;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_getUTCSeconds_53990cae10d4041a = function(arg0) {
|
||||||
|
const ret = getObject(arg0).getUTCSeconds();
|
||||||
|
return ret;
|
||||||
|
};
|
||||||
|
imports.wbg.__wbg_new0_c0be7df4b6bd481f = function() {
|
||||||
|
const ret = new Date();
|
||||||
|
return addHeapObject(ret);
|
||||||
|
};
|
||||||
imports.wbg.__wbg_now_9c5990bda04c7e53 = function() {
|
imports.wbg.__wbg_now_9c5990bda04c7e53 = function() {
|
||||||
const ret = Date.now();
|
const ret = Date.now();
|
||||||
return ret;
|
return ret;
|
||||||
|
|
@ -803,6 +1235,10 @@ function __wbg_get_imports() {
|
||||||
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
||||||
return addHeapObject(ret);
|
return addHeapObject(ret);
|
||||||
};
|
};
|
||||||
|
imports.wbg.__wbg_set_092e06b0f9d71865 = function() { return handleError(function (arg0, arg1, arg2) {
|
||||||
|
const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
|
||||||
|
return ret;
|
||||||
|
}, arguments) };
|
||||||
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
||||||
const ret = debugString(getObject(arg1));
|
const ret = debugString(getObject(arg1));
|
||||||
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
||||||
|
|
@ -817,16 +1253,28 @@ function __wbg_get_imports() {
|
||||||
const ret = wasm.memory;
|
const ret = wasm.memory;
|
||||||
return addHeapObject(ret);
|
return addHeapObject(ret);
|
||||||
};
|
};
|
||||||
imports.wbg.__wbindgen_closure_wrapper257 = function(arg0, arg1, arg2) {
|
imports.wbg.__wbindgen_closure_wrapper992 = function(arg0, arg1, arg2) {
|
||||||
const ret = makeMutClosure(arg0, arg1, 14, __wbg_adapter_20);
|
const ret = makeMutClosure(arg0, arg1, 277, __wbg_adapter_24);
|
||||||
return addHeapObject(ret);
|
return addHeapObject(ret);
|
||||||
};
|
};
|
||||||
imports.wbg.__wbindgen_closure_wrapper2960 = function(arg0, arg1, arg2) {
|
imports.wbg.__wbindgen_closure_wrapper2867 = function(arg0, arg1, arg2) {
|
||||||
const ret = makeMutClosure(arg0, arg1, 698, __wbg_adapter_23);
|
const ret = makeMutClosure(arg0, arg1, 707, __wbg_adapter_27);
|
||||||
return addHeapObject(ret);
|
return addHeapObject(ret);
|
||||||
};
|
};
|
||||||
imports.wbg.__wbindgen_closure_wrapper2962 = function(arg0, arg1, arg2) {
|
imports.wbg.__wbindgen_closure_wrapper2869 = function(arg0, arg1, arg2) {
|
||||||
const ret = makeMutClosure(arg0, arg1, 698, __wbg_adapter_23);
|
const ret = makeMutClosure(arg0, arg1, 707, __wbg_adapter_27);
|
||||||
|
return addHeapObject(ret);
|
||||||
|
};
|
||||||
|
imports.wbg.__wbindgen_closure_wrapper2871 = function(arg0, arg1, arg2) {
|
||||||
|
const ret = makeMutClosure(arg0, arg1, 707, __wbg_adapter_27);
|
||||||
|
return addHeapObject(ret);
|
||||||
|
};
|
||||||
|
imports.wbg.__wbindgen_closure_wrapper2873 = function(arg0, arg1, arg2) {
|
||||||
|
const ret = makeMutClosure(arg0, arg1, 707, __wbg_adapter_27);
|
||||||
|
return addHeapObject(ret);
|
||||||
|
};
|
||||||
|
imports.wbg.__wbindgen_closure_wrapper2875 = function(arg0, arg1, arg2) {
|
||||||
|
const ret = makeMutClosure(arg0, arg1, 707, __wbg_adapter_27);
|
||||||
return addHeapObject(ret);
|
return addHeapObject(ret);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -840,6 +1288,7 @@ function __wbg_init_memory(imports, maybe_memory) {
|
||||||
function __wbg_finalize_init(instance, module) {
|
function __wbg_finalize_init(instance, module) {
|
||||||
wasm = instance.exports;
|
wasm = instance.exports;
|
||||||
__wbg_init.__wbindgen_wasm_module = module;
|
__wbg_init.__wbindgen_wasm_module = module;
|
||||||
|
cachedFloat64Memory0 = null;
|
||||||
cachedInt32Memory0 = null;
|
cachedInt32Memory0 = null;
|
||||||
cachedUint8Memory0 = null;
|
cachedUint8Memory0 = null;
|
||||||
|
|
||||||
BIN
wasm/rust/rust-rl_bg.wasm
Normal file
BIN
wasm/rust/rust-rl_bg.wasm
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue