This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void ViewFromPositionAndOrientation( Vec3& p, Quat& q, Mat4* dst ) | |
{ | |
Vec3 negP = q.toMatrix44() * -p; | |
*dst = Mat4::createTranslation( negP ) * q.toMatrix44(); | |
} | |
---- Update Method |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum CamMoveStates | |
{ | |
CamMoveNone = 0 | |
, CamMoveForward = (1<<0) | |
, CamMoveBackwards = (1<<1) | |
, CamMoveLeft = (1<<2) | |
, CamMoveRight = (1<<3) | |
, CamMoveUp = (1<<4) | |
, CamMoveDown = (1<<5) | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#version 330 core | |
layout(location = 0) in vec4 PositionIn; | |
const vec2 verts[3] = vec2[]( vec2(-1, -1), vec2(3, -1), vec2(-1, 3) ); | |
const vec2 uvs[3] = vec2[]( vec2(0, 2), vec2(2, 2), vec2(0, 0) ); | |
out block | |
{ | |
vec2 texcoord; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# @author zfedoran / http://github.com/zfedoran | |
import os | |
import sys | |
import math | |
import operator | |
import re | |
import json | |
import types | |
import shutil |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string> | |
#include <iostream> | |
#include <emscripten/emscripten.h> | |
using namespace std; | |
void onload_cb( unsigned a2, void* userData, void* data, unsigned size ) | |
{ | |
int sss = size; | |
cout << "++++ onload: " << "size: " << sss << endl; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DEBUG root: PYTHON not defined in ~/.emscripten, using "/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python" | |
DEBUG root: JAVA not defined in ~/.emscripten, using "java" | |
mkdir -p build | |
/Users/vic/Desktop/Emscriptem/emscripten/1.25.0/em++ -std=c++11 -I../../src -I../../src/3rdparty/osc -I../../src/3rdparty -I../../src/3rdparty/jsoncpp/include -I../../src/3rdparty/assimp -I../../src/3rdparty/freetype_emscripten -Wall -Wextra -Wno-unused-parameter -Wno-reorder -Wno-unused-function -DCOCOON_EMSCRIPTEN -DCOCOON_GL_NO_ERROR_HANDLE -c -o ../../src/cocoon/app/AppBasic.o ../../src/cocoon/app/AppBasic.cpp | |
DEBUG root: PYTHON not defined in ~/.emscripten, using "/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python" | |
DEBUG root: JAVA not defined in ~/.emscripten, using "java" | |
DEBUG root: PYTHON not defined in ~/.emscripten, using "/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python" | |
DEBU |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DEBUG root: PYTHON not defined in ~/.emscripten, using "/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python" | |
DEBUG root: JAVA not defined in ~/.emscripten, using "java" | |
mkdir -p build | |
/Users/vic/Desktop/Emscriptem122/emscripten/1.22.0/em++ -std=c++11 -I../../src -I../../src/3rdparty/osc -I../../src/3rdparty -I../../src/3rdparty/jsoncpp/include -I../../src/3rdparty/assimp -I../../src/3rdparty/freetype_emscripten -Wall -Wextra -Wno-unused-parameter -Wno-reorder -Wno-unused-function -DCOCOON_EMSCRIPTEN -DCOCOON_GL_NO_ERROR_HANDLE -c -o ../../src/cocoon/app/AppBasic.o ../../src/cocoon/app/AppBasic.cpp | |
DEBUG root: PYTHON not defined in ~/.emscripten, using "/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python" | |
DEBUG root: JAVA not defined in ~/.emscripten, using "java" | |
DEBUG root: PYTHON not defined in ~/.emscripten, using "/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python" | |
D |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Missing enums from android sdk | |
enum { | |
ASENSOR_TYPE_ORIENTATION = 3, | |
ASENSOR_TYPE_ROTATION_VECTOR = 15, | |
ASENSOR_TYPE_LINEAR_ACCELERATION = 10, | |
ASENSOR_TYPE_GRAVITY = 9 | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Library/Caches/com.apple.xbs/Sources/Metal/Metal-54.26.3/ToolsLayers/Debug/MTLDebugRenderCommandEncoder.mm:520: failed assertion `Texture at depthAttachment has usage (0x01) which doesn't specify MTLTextureUsageRenderTarget (0x04)' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
timertest.html:1237 emscripten_get_now(): 19.000075 | |
timertest.html:1237 emscripten_get_now(): 16.000000 | |
timertest.html:1237 emscripten_get_now(): 22.000050 | |
timertest.html:1237 emscripten_get_now(): 29.000050 | |
timertest.html:1237 emscripten_get_now(): 26.000010 | |
timertest.html:1237 emscripten_get_now(): 23.000005 | |
timertest.html:1237 emscripten_get_now(): 29.000085 | |
timertest.html:1237 emscripten_get_now(): 25.000095 | |
timertest.html:1237 emscripten_get_now(): 32.000060 | |
timertest.html:1237 emscripten_get_now(): 39.000060 |
OlderNewer