Review and recompile web examples

This commit is contained in:
raysan5 2017-04-17 16:42:01 +02:00
parent 3e082f1d62
commit 881f134f4d
194 changed files with 272938 additions and 52659 deletions

View file

@ -21,7 +21,6 @@
int screenWidth = 800;
int screenHeight = 450;
//----------------------------------------------------------------------------------
// Module Functions Declaration
//----------------------------------------------------------------------------------

View file

@ -7404,6 +7404,56 @@ function _UpdateDrawFrame() {
_EndDrawing();
STACKTOP = sp;return;
}
function _Vector2Distance($0,$1) {
$0 = $0|0;
$1 = $1|0;
var $10 = 0.0, $11 = 0.0, $12 = 0.0, $13 = 0.0, $2 = 0.0, $3 = 0.0, $4 = 0.0, $5 = 0.0, $6 = 0, $7 = 0.0, $8 = 0, $9 = 0.0, label = 0, sp = 0;
sp = STACKTOP;
$2 = +HEAPF32[$0>>2];
$3 = +HEAPF32[$1>>2];
$4 = $2 - $3;
$5 = $4 * $4;
$6 = ((($0)) + 4|0);
$7 = +HEAPF32[$6>>2];
$8 = ((($1)) + 4|0);
$9 = +HEAPF32[$8>>2];
$10 = $7 - $9;
$11 = $10 * $10;
$12 = $5 + $11;
$13 = (+Math_sqrt((+$12)));
return (+$13);
}
function _Vector2Angle($0,$1) {
$0 = $0|0;
$1 = $1|0;
var $$0 = 0.0, $10 = 0.0, $11 = 0.0, $12 = 0, $13 = 0.0, $2 = 0, $3 = 0.0, $4 = 0, $5 = 0.0, $6 = 0.0, $7 = 0.0, $8 = 0.0, $9 = 0.0, label = 0, sp = 0;
sp = STACKTOP;
$2 = ((($1)) + 4|0);
$3 = +HEAPF32[$2>>2];
$4 = ((($0)) + 4|0);
$5 = +HEAPF32[$4>>2];
$6 = $3 - $5;
$7 = +HEAPF32[$1>>2];
$8 = +HEAPF32[$0>>2];
$9 = $7 - $8;
$10 = (+Math_atan2((+$6),(+$9)));
$11 = $10 * 57.2957763671875;
$12 = $11 < 0.0;
$13 = $11 + 360.0;
$$0 = $12 ? $13 : $11;
return (+$$0);
}
function _VectorZero($0) {
$0 = $0|0;
var $1 = 0, $2 = 0, label = 0, sp = 0;
sp = STACKTOP;
HEAPF32[$0>>2] = 0.0;
$1 = ((($0)) + 4|0);
HEAPF32[$1>>2] = 0.0;
$2 = ((($0)) + 8|0);
HEAPF32[$2>>2] = 0.0;
return;
}
function _VectorLength($0) {
$0 = $0|0;
var $1 = 0.0, $10 = 0.0, $11 = 0.0, $2 = 0.0, $3 = 0, $4 = 0.0, $5 = 0.0, $6 = 0.0, $7 = 0, $8 = 0.0, $9 = 0.0, label = 0, sp = 0;
@ -7503,13 +7553,6 @@ function _VectorTransform($0,$1) {
HEAPF32[$5>>2] = $47;
return;
}
function _VectorZero($0) {
$0 = $0|0;
var label = 0, sp = 0;
sp = STACKTOP;
;HEAP32[$0>>2]=0|0;HEAP32[$0+4>>2]=0|0;HEAP32[$0+8>>2]=0|0;
return;
}
function _MatrixTranspose($0) {
$0 = $0|0;
var $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $3 = 0, $4 = 0, $5 = 0;
@ -8460,45 +8503,6 @@ function _ProcessGestureEvent($0) {
}
}
}
function _Vector2Distance($0,$1) {
$0 = $0|0;
$1 = $1|0;
var $10 = 0.0, $11 = 0.0, $12 = 0.0, $2 = 0.0, $3 = 0.0, $4 = 0.0, $5 = 0, $6 = 0.0, $7 = 0, $8 = 0.0, $9 = 0.0, $sqrtf = 0.0, label = 0, sp = 0;
sp = STACKTOP;
$2 = +HEAPF32[$1>>2];
$3 = +HEAPF32[$0>>2];
$4 = $2 - $3;
$5 = ((($1)) + 4|0);
$6 = +HEAPF32[$5>>2];
$7 = ((($0)) + 4|0);
$8 = +HEAPF32[$7>>2];
$9 = $6 - $8;
$10 = $4 * $4;
$11 = $9 * $9;
$12 = $10 + $11;
$sqrtf = (+Math_sqrt((+$12)));
return (+$sqrtf);
}
function _Vector2Angle($0,$1) {
$0 = $0|0;
$1 = $1|0;
var $$0 = 0.0, $10 = 0.0, $11 = 0.0, $12 = 0, $13 = 0.0, $2 = 0, $3 = 0.0, $4 = 0, $5 = 0.0, $6 = 0.0, $7 = 0.0, $8 = 0.0, $9 = 0.0, label = 0, sp = 0;
sp = STACKTOP;
$2 = ((($1)) + 4|0);
$3 = +HEAPF32[$2>>2];
$4 = ((($0)) + 4|0);
$5 = +HEAPF32[$4>>2];
$6 = $3 - $5;
$7 = +HEAPF32[$1>>2];
$8 = +HEAPF32[$0>>2];
$9 = $7 - $8;
$10 = (+Math_atan2((+$6),(+$9)));
$11 = $10 * 57.2957763671875;
$12 = $11 < 0.0;
$13 = $11 + 360.0;
$$0 = $12 ? $13 : $11;
return (+$$0);
}
function _UpdateGestures() {
var $$off = 0, $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $or$cond3 = 0, label = 0, sp = 0;
sp = STACKTOP;

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

View file

@ -7618,6 +7618,56 @@ function _UpdateDrawFrame() {
_EndDrawing();
STACKTOP = sp;return;
}
function _Vector2Distance($0,$1) {
$0 = $0|0;
$1 = $1|0;
var $10 = 0.0, $11 = 0.0, $12 = 0.0, $13 = 0.0, $2 = 0.0, $3 = 0.0, $4 = 0.0, $5 = 0.0, $6 = 0, $7 = 0.0, $8 = 0, $9 = 0.0, label = 0, sp = 0;
sp = STACKTOP;
$2 = +HEAPF32[$0>>2];
$3 = +HEAPF32[$1>>2];
$4 = $2 - $3;
$5 = $4 * $4;
$6 = ((($0)) + 4|0);
$7 = +HEAPF32[$6>>2];
$8 = ((($1)) + 4|0);
$9 = +HEAPF32[$8>>2];
$10 = $7 - $9;
$11 = $10 * $10;
$12 = $5 + $11;
$13 = (+Math_sqrt((+$12)));
return (+$13);
}
function _Vector2Angle($0,$1) {
$0 = $0|0;
$1 = $1|0;
var $$0 = 0.0, $10 = 0.0, $11 = 0.0, $12 = 0, $13 = 0.0, $2 = 0, $3 = 0.0, $4 = 0, $5 = 0.0, $6 = 0.0, $7 = 0.0, $8 = 0.0, $9 = 0.0, label = 0, sp = 0;
sp = STACKTOP;
$2 = ((($1)) + 4|0);
$3 = +HEAPF32[$2>>2];
$4 = ((($0)) + 4|0);
$5 = +HEAPF32[$4>>2];
$6 = $3 - $5;
$7 = +HEAPF32[$1>>2];
$8 = +HEAPF32[$0>>2];
$9 = $7 - $8;
$10 = (+Math_atan2((+$6),(+$9)));
$11 = $10 * 57.2957763671875;
$12 = $11 < 0.0;
$13 = $11 + 360.0;
$$0 = $12 ? $13 : $11;
return (+$$0);
}
function _VectorZero($0) {
$0 = $0|0;
var $1 = 0, $2 = 0, label = 0, sp = 0;
sp = STACKTOP;
HEAPF32[$0>>2] = 0.0;
$1 = ((($0)) + 4|0);
HEAPF32[$1>>2] = 0.0;
$2 = ((($0)) + 8|0);
HEAPF32[$2>>2] = 0.0;
return;
}
function _VectorLength($0) {
$0 = $0|0;
var $1 = 0.0, $10 = 0.0, $11 = 0.0, $2 = 0.0, $3 = 0, $4 = 0.0, $5 = 0.0, $6 = 0.0, $7 = 0, $8 = 0.0, $9 = 0.0, label = 0, sp = 0;
@ -7717,13 +7767,6 @@ function _VectorTransform($0,$1) {
HEAPF32[$5>>2] = $47;
return;
}
function _VectorZero($0) {
$0 = $0|0;
var label = 0, sp = 0;
sp = STACKTOP;
;HEAP32[$0>>2]=0|0;HEAP32[$0+4>>2]=0|0;HEAP32[$0+8>>2]=0|0;
return;
}
function _MatrixTranspose($0) {
$0 = $0|0;
var $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $3 = 0, $4 = 0, $5 = 0;
@ -8674,45 +8717,6 @@ function _ProcessGestureEvent($0) {
}
}
}
function _Vector2Distance($0,$1) {
$0 = $0|0;
$1 = $1|0;
var $10 = 0.0, $11 = 0.0, $12 = 0.0, $2 = 0.0, $3 = 0.0, $4 = 0.0, $5 = 0, $6 = 0.0, $7 = 0, $8 = 0.0, $9 = 0.0, $sqrtf = 0.0, label = 0, sp = 0;
sp = STACKTOP;
$2 = +HEAPF32[$1>>2];
$3 = +HEAPF32[$0>>2];
$4 = $2 - $3;
$5 = ((($1)) + 4|0);
$6 = +HEAPF32[$5>>2];
$7 = ((($0)) + 4|0);
$8 = +HEAPF32[$7>>2];
$9 = $6 - $8;
$10 = $4 * $4;
$11 = $9 * $9;
$12 = $10 + $11;
$sqrtf = (+Math_sqrt((+$12)));
return (+$sqrtf);
}
function _Vector2Angle($0,$1) {
$0 = $0|0;
$1 = $1|0;
var $$0 = 0.0, $10 = 0.0, $11 = 0.0, $12 = 0, $13 = 0.0, $2 = 0, $3 = 0.0, $4 = 0, $5 = 0.0, $6 = 0.0, $7 = 0.0, $8 = 0.0, $9 = 0.0, label = 0, sp = 0;
sp = STACKTOP;
$2 = ((($1)) + 4|0);
$3 = +HEAPF32[$2>>2];
$4 = ((($0)) + 4|0);
$5 = +HEAPF32[$4>>2];
$6 = $3 - $5;
$7 = +HEAPF32[$1>>2];
$8 = +HEAPF32[$0>>2];
$9 = $7 - $8;
$10 = (+Math_atan2((+$6),(+$9)));
$11 = $10 * 57.2957763671875;
$12 = $11 < 0.0;
$13 = $11 + 360.0;
$$0 = $12 ? $13 : $11;
return (+$$0);
}
function _UpdateGestures() {
var $$off = 0, $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $or$cond3 = 0, label = 0, sp = 0;
sp = STACKTOP;

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

View file

@ -0,0 +1,88 @@
/*******************************************************************************************
*
* raylib [shapes] example - Cubic-bezier lines
*
* This example has been created using raylib 1.7 (www.raylib.com)
* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
*
* Copyright (c) 2017 Ramon Santamaria (@raysan5)
*
********************************************************************************************/
#include "raylib.h"
#if defined(PLATFORM_WEB)
#include <emscripten/emscripten.h>
#endif
//----------------------------------------------------------------------------------
// Global Variables Definition
//----------------------------------------------------------------------------------
int screenWidth = 800;
int screenHeight = 450;
Vector2 start = { 0, 0 };
Vector2 end = { 0, 0 };
//----------------------------------------------------------------------------------
// Module Functions Declaration
//----------------------------------------------------------------------------------
void UpdateDrawFrame(void); // Update and Draw one frame
//----------------------------------------------------------------------------------
// Main Enry Point
//----------------------------------------------------------------------------------
int main()
{
// Initialization
//--------------------------------------------------------------------------------------
SetConfigFlags(FLAG_MSAA_4X_HINT);
InitWindow(screenWidth, screenHeight, "raylib [shapes] example - cubic-bezier lines");
end = (Vector2){ screenWidth, screenHeight };
#if defined(PLATFORM_WEB)
emscripten_set_main_loop(UpdateDrawFrame, 0, 1);
#else
SetTargetFPS(60); // Set our game to run at 60 frames-per-second
//--------------------------------------------------------------------------------------
// Main game loop
while (!WindowShouldClose()) // Detect window close button or ESC key
{
UpdateDrawFrame();
}
#endif
// De-Initialization
//--------------------------------------------------------------------------------------
CloseWindow(); // Close window and OpenGL context
//--------------------------------------------------------------------------------------
return 0;
}
//----------------------------------------------------------------------------------
// Module Functions Definition
//----------------------------------------------------------------------------------
void UpdateDrawFrame(void)
{
// Update
//----------------------------------------------------------------------------------
if (IsMouseButtonDown(MOUSE_LEFT_BUTTON)) start = GetMousePosition();
else if (IsMouseButtonDown(MOUSE_RIGHT_BUTTON)) end = GetMousePosition();
//----------------------------------------------------------------------------------
// Draw
//----------------------------------------------------------------------------------
BeginDrawing();
ClearBackground(RAYWHITE);
DrawText("USE MOUSE LEFT-RIGHT CLICK to DEFINE LINE START and END POINTS", 15, 20, 20, GRAY);
DrawLineBezier(start, end, 2.0f, RED);
EndDrawing();
//----------------------------------------------------------------------------------
}

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View file

@ -7240,6 +7240,56 @@ function _UpdateDrawFrame() {
_EndDrawing();
STACKTOP = sp;return;
}
function _Vector2Distance($0,$1) {
$0 = $0|0;
$1 = $1|0;
var $10 = 0.0, $11 = 0.0, $12 = 0.0, $13 = 0.0, $2 = 0.0, $3 = 0.0, $4 = 0.0, $5 = 0.0, $6 = 0, $7 = 0.0, $8 = 0, $9 = 0.0, label = 0, sp = 0;
sp = STACKTOP;
$2 = +HEAPF32[$0>>2];
$3 = +HEAPF32[$1>>2];
$4 = $2 - $3;
$5 = $4 * $4;
$6 = ((($0)) + 4|0);
$7 = +HEAPF32[$6>>2];
$8 = ((($1)) + 4|0);
$9 = +HEAPF32[$8>>2];
$10 = $7 - $9;
$11 = $10 * $10;
$12 = $5 + $11;
$13 = (+Math_sqrt((+$12)));
return (+$13);
}
function _Vector2Angle($0,$1) {
$0 = $0|0;
$1 = $1|0;
var $$0 = 0.0, $10 = 0.0, $11 = 0.0, $12 = 0, $13 = 0.0, $2 = 0, $3 = 0.0, $4 = 0, $5 = 0.0, $6 = 0.0, $7 = 0.0, $8 = 0.0, $9 = 0.0, label = 0, sp = 0;
sp = STACKTOP;
$2 = ((($1)) + 4|0);
$3 = +HEAPF32[$2>>2];
$4 = ((($0)) + 4|0);
$5 = +HEAPF32[$4>>2];
$6 = $3 - $5;
$7 = +HEAPF32[$1>>2];
$8 = +HEAPF32[$0>>2];
$9 = $7 - $8;
$10 = (+Math_atan2((+$6),(+$9)));
$11 = $10 * 57.2957763671875;
$12 = $11 < 0.0;
$13 = $11 + 360.0;
$$0 = $12 ? $13 : $11;
return (+$$0);
}
function _VectorZero($0) {
$0 = $0|0;
var $1 = 0, $2 = 0, label = 0, sp = 0;
sp = STACKTOP;
HEAPF32[$0>>2] = 0.0;
$1 = ((($0)) + 4|0);
HEAPF32[$1>>2] = 0.0;
$2 = ((($0)) + 8|0);
HEAPF32[$2>>2] = 0.0;
return;
}
function _VectorLength($0) {
$0 = $0|0;
var $1 = 0.0, $10 = 0.0, $11 = 0.0, $2 = 0.0, $3 = 0, $4 = 0.0, $5 = 0.0, $6 = 0.0, $7 = 0, $8 = 0.0, $9 = 0.0, label = 0, sp = 0;
@ -7339,13 +7389,6 @@ function _VectorTransform($0,$1) {
HEAPF32[$5>>2] = $47;
return;
}
function _VectorZero($0) {
$0 = $0|0;
var label = 0, sp = 0;
sp = STACKTOP;
;HEAP32[$0>>2]=0|0;HEAP32[$0+4>>2]=0|0;HEAP32[$0+8>>2]=0|0;
return;
}
function _MatrixTranspose($0) {
$0 = $0|0;
var $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $3 = 0, $4 = 0, $5 = 0;
@ -8296,45 +8339,6 @@ function _ProcessGestureEvent($0) {
}
}
}
function _Vector2Distance($0,$1) {
$0 = $0|0;
$1 = $1|0;
var $10 = 0.0, $11 = 0.0, $12 = 0.0, $2 = 0.0, $3 = 0.0, $4 = 0.0, $5 = 0, $6 = 0.0, $7 = 0, $8 = 0.0, $9 = 0.0, $sqrtf = 0.0, label = 0, sp = 0;
sp = STACKTOP;
$2 = +HEAPF32[$1>>2];
$3 = +HEAPF32[$0>>2];
$4 = $2 - $3;
$5 = ((($1)) + 4|0);
$6 = +HEAPF32[$5>>2];
$7 = ((($0)) + 4|0);
$8 = +HEAPF32[$7>>2];
$9 = $6 - $8;
$10 = $4 * $4;
$11 = $9 * $9;
$12 = $10 + $11;
$sqrtf = (+Math_sqrt((+$12)));
return (+$sqrtf);
}
function _Vector2Angle($0,$1) {
$0 = $0|0;
$1 = $1|0;
var $$0 = 0.0, $10 = 0.0, $11 = 0.0, $12 = 0, $13 = 0.0, $2 = 0, $3 = 0.0, $4 = 0, $5 = 0.0, $6 = 0.0, $7 = 0.0, $8 = 0.0, $9 = 0.0, label = 0, sp = 0;
sp = STACKTOP;
$2 = ((($1)) + 4|0);
$3 = +HEAPF32[$2>>2];
$4 = ((($0)) + 4|0);
$5 = +HEAPF32[$4>>2];
$6 = $3 - $5;
$7 = +HEAPF32[$1>>2];
$8 = +HEAPF32[$0>>2];
$9 = $7 - $8;
$10 = (+Math_atan2((+$6),(+$9)));
$11 = $10 * 57.2957763671875;
$12 = $11 < 0.0;
$13 = $11 + 360.0;
$$0 = $12 ? $13 : $11;
return (+$$0);
}
function _UpdateGestures() {
var $$off = 0, $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $or$cond3 = 0, label = 0, sp = 0;
sp = STACKTOP;

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View file

@ -7537,6 +7537,56 @@ function _UpdateDrawFrame() {
}
}
}
function _Vector2Distance($0,$1) {
$0 = $0|0;
$1 = $1|0;
var $10 = 0.0, $11 = 0.0, $12 = 0.0, $13 = 0.0, $2 = 0.0, $3 = 0.0, $4 = 0.0, $5 = 0.0, $6 = 0, $7 = 0.0, $8 = 0, $9 = 0.0, label = 0, sp = 0;
sp = STACKTOP;
$2 = +HEAPF32[$0>>2];
$3 = +HEAPF32[$1>>2];
$4 = $2 - $3;
$5 = $4 * $4;
$6 = ((($0)) + 4|0);
$7 = +HEAPF32[$6>>2];
$8 = ((($1)) + 4|0);
$9 = +HEAPF32[$8>>2];
$10 = $7 - $9;
$11 = $10 * $10;
$12 = $5 + $11;
$13 = (+Math_sqrt((+$12)));
return (+$13);
}
function _Vector2Angle($0,$1) {
$0 = $0|0;
$1 = $1|0;
var $$0 = 0.0, $10 = 0.0, $11 = 0.0, $12 = 0, $13 = 0.0, $2 = 0, $3 = 0.0, $4 = 0, $5 = 0.0, $6 = 0.0, $7 = 0.0, $8 = 0.0, $9 = 0.0, label = 0, sp = 0;
sp = STACKTOP;
$2 = ((($1)) + 4|0);
$3 = +HEAPF32[$2>>2];
$4 = ((($0)) + 4|0);
$5 = +HEAPF32[$4>>2];
$6 = $3 - $5;
$7 = +HEAPF32[$1>>2];
$8 = +HEAPF32[$0>>2];
$9 = $7 - $8;
$10 = (+Math_atan2((+$6),(+$9)));
$11 = $10 * 57.2957763671875;
$12 = $11 < 0.0;
$13 = $11 + 360.0;
$$0 = $12 ? $13 : $11;
return (+$$0);
}
function _VectorZero($0) {
$0 = $0|0;
var $1 = 0, $2 = 0, label = 0, sp = 0;
sp = STACKTOP;
HEAPF32[$0>>2] = 0.0;
$1 = ((($0)) + 4|0);
HEAPF32[$1>>2] = 0.0;
$2 = ((($0)) + 8|0);
HEAPF32[$2>>2] = 0.0;
return;
}
function _VectorLength($0) {
$0 = $0|0;
var $1 = 0.0, $10 = 0.0, $11 = 0.0, $2 = 0.0, $3 = 0, $4 = 0.0, $5 = 0.0, $6 = 0.0, $7 = 0, $8 = 0.0, $9 = 0.0, label = 0, sp = 0;
@ -7636,13 +7686,6 @@ function _VectorTransform($0,$1) {
HEAPF32[$5>>2] = $47;
return;
}
function _VectorZero($0) {
$0 = $0|0;
var label = 0, sp = 0;
sp = STACKTOP;
;HEAP32[$0>>2]=0|0;HEAP32[$0+4>>2]=0|0;HEAP32[$0+8>>2]=0|0;
return;
}
function _MatrixTranspose($0) {
$0 = $0|0;
var $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $3 = 0, $4 = 0, $5 = 0;
@ -8593,45 +8636,6 @@ function _ProcessGestureEvent($0) {
}
}
}
function _Vector2Distance($0,$1) {
$0 = $0|0;
$1 = $1|0;
var $10 = 0.0, $11 = 0.0, $12 = 0.0, $2 = 0.0, $3 = 0.0, $4 = 0.0, $5 = 0, $6 = 0.0, $7 = 0, $8 = 0.0, $9 = 0.0, $sqrtf = 0.0, label = 0, sp = 0;
sp = STACKTOP;
$2 = +HEAPF32[$1>>2];
$3 = +HEAPF32[$0>>2];
$4 = $2 - $3;
$5 = ((($1)) + 4|0);
$6 = +HEAPF32[$5>>2];
$7 = ((($0)) + 4|0);
$8 = +HEAPF32[$7>>2];
$9 = $6 - $8;
$10 = $4 * $4;
$11 = $9 * $9;
$12 = $10 + $11;
$sqrtf = (+Math_sqrt((+$12)));
return (+$sqrtf);
}
function _Vector2Angle($0,$1) {
$0 = $0|0;
$1 = $1|0;
var $$0 = 0.0, $10 = 0.0, $11 = 0.0, $12 = 0, $13 = 0.0, $2 = 0, $3 = 0.0, $4 = 0, $5 = 0.0, $6 = 0.0, $7 = 0.0, $8 = 0.0, $9 = 0.0, label = 0, sp = 0;
sp = STACKTOP;
$2 = ((($1)) + 4|0);
$3 = +HEAPF32[$2>>2];
$4 = ((($0)) + 4|0);
$5 = +HEAPF32[$4>>2];
$6 = $3 - $5;
$7 = +HEAPF32[$1>>2];
$8 = +HEAPF32[$0>>2];
$9 = $7 - $8;
$10 = (+Math_atan2((+$6),(+$9)));
$11 = $10 * 57.2957763671875;
$12 = $11 < 0.0;
$13 = $11 + 360.0;
$$0 = $12 ? $13 : $11;
return (+$$0);
}
function _UpdateGestures() {
var $$off = 0, $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $or$cond3 = 0, label = 0, sp = 0;
sp = STACKTOP;

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB