Fix bugs I accidentally introduced in patching. Thanks at @labsin for going over this once more and sending me fixes again.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/branches/ogl-es@5411 dfc29bdd-3216-0410-991c-e03cc46cb475master
parent
b6c2514cfb
commit
eae3c95085
|
@ -99,7 +99,7 @@ void one_iter()
|
|||
{
|
||||
if(!device->run())
|
||||
{
|
||||
//emscripten_cancel_main_loop();
|
||||
emscripten_cancel_main_loop();
|
||||
return;
|
||||
}
|
||||
driver->beginScene(ECBF_COLOR | ECBF_DEPTH, SColor(255,100,101,140));
|
||||
|
@ -184,7 +184,7 @@ int main()
|
|||
The text is placed at the position (10,10) as top left corner and
|
||||
(260,22) as lower right corner.
|
||||
*/
|
||||
guienv->addStaticText(L"Hello World! This is the Irrlicht Software renderer!",
|
||||
guienv->addStaticText(L"Hello World! This is the Irrlicht on emscripten!",
|
||||
rect<s32>(10,10,260,22), true);
|
||||
|
||||
/*
|
||||
|
@ -234,6 +234,7 @@ int main()
|
|||
*/
|
||||
smgr->addCameraSceneNode(0, vector3df(0,30,-40), vector3df(0,5,0));
|
||||
|
||||
#ifndef __EMSCRIPTEN__
|
||||
/*
|
||||
Ok, now we have set up the scene, lets draw everything: We run the
|
||||
device in a while() loop, until the device does not want to run any
|
||||
|
@ -257,7 +258,6 @@ int main()
|
|||
driver->endScene();
|
||||
}
|
||||
|
||||
#ifndef __EMSCRIPTEN__
|
||||
/*
|
||||
After we are done with the render loop, we have to delete the Irrlicht
|
||||
Device created before with createDevice(). In the Irrlicht Engine, you
|
||||
|
|
|
@ -47,6 +47,9 @@ bool CEGLManager::initialize(const SIrrlichtCreationParameters& params, const SE
|
|||
EglWindow = (NativeWindowType)Data.OpenGLWin32.HWnd;
|
||||
Data.OpenGLWin32.HDc = GetDC((HWND)EglWindow);
|
||||
EglDisplay = eglGetDisplay((NativeDisplayType)Data.OpenGLWin32.HDc);
|
||||
#elif defined(_IRR_EMSCRIPTEN_PLATFORM_)
|
||||
EglWindow = 0;
|
||||
EglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY);
|
||||
#elif defined(_IRR_COMPILE_WITH_X11_DEVICE_)
|
||||
EglWindow = (NativeWindowType)Data.OpenGLLinux.X11Window;
|
||||
EglDisplay = eglGetDisplay((NativeDisplayType)Data.OpenGLLinux.X11Display);
|
||||
|
|
|
@ -189,7 +189,7 @@ TAGS:
|
|||
|
||||
# Create dependency files for automatic recompilation
|
||||
%.d:%.c
|
||||
$(CC) $(CPPFLAGS) -MM -MF $@ $<
|
||||
$(CC) $(CPPFLAGS) $(CFLAGS) -MM -MF $@ $<
|
||||
|
||||
# Create object files from objective-c code
|
||||
%.o:%.mm
|
||||
|
|
Loading…
Reference in New Issue