Thanks for this repo.
It works but the current emcc has a issue with this line:
gRDI->setShaderConst( _defColorShader.uni_worldMat, CONST_FLOAT44, &Matrix4f().x[0] );
/Source/Horde3DEngine/egRenderer.cpp:2009:69: error: cannot take the address of an rvalue of type 'float'
I dont know why, but it doesn't like that way of sending the float array, this worked fine:
gRDI->setShaderConst( _defColorShader.uni_worldMat, CONST_FLOAT44, Matrix4f().x );
And thanks for the makefiles I was wondering how to bypass cmake, I a lot easier!
I spoke too soon, it's missing a few GL functions somewhere.
Anyway its still a good guide to h3d and emscripten.
Code:
warning: undefined symbol: glBlitFramebufferANGLE (referenced by root reference (e.g. compiled C/C++ code))
warning: undefined symbol: glCompressedTexImage3DOES (referenced by root reference (e.g. compiled C/C++ code))
warning: undefined symbol: glFramebufferTexture2DMultisampleEXT (referenced by root reference (e.g. compiled C/C++ code)
)
warning: undefined symbol: glRenderbufferStorageMultisampleANGLE (referenced by root reference (e.g. compiled C/C++ code
))
warning: undefined symbol: glRenderbufferStorageMultisampleEXT (referenced by root reference (e.g. compiled C/C++ code))
warning: undefined symbol: glTexImage3DOES (referenced by root reference (e.g. compiled C/C++ code))
emcc: warning: warnings in JS library compilation [-Wjs-compiler]