Page 1 of 1

Visual Studio - Missing OGLES Headers

Posted: Tue Oct 20, 2015 2:40 pm
by IrrlichtForiOS
Checked out the OGLES Development brach and opened an VS Example. getting errors that, for example, "GLES/egl.h" can not be found.

What is to do to solve this? Thanks!

Re: Visual Studio - Missing OGLES Headers

Posted: Tue Oct 20, 2015 5:01 pm
by Nadro
Which OGL SDK dou you use on Windows? In upcoming days I'll merge ogl-es branch with trunk with a lot of improvements for OGL driver - eg. shared OpenGL driver code partially available in trunk now. After that I'll be able to finally send a commit with the new iOS/OSX projects.

Re: Visual Studio - Missing OGLES Headers

Posted: Wed Oct 21, 2015 9:18 am
by IrrlichtForiOS
We are trying to use Open GL 2, but we don't know how to embed Open GL into the VS project

Re: Visual Studio - Missing OGLES Headers

Posted: Wed Oct 21, 2015 9:28 am
by AReichl
I also have a problem with the latest trunk and gcc/MinGW:

In the new file COGLCoreCacheHandler.h the function call glUseProgram(programID)
seems not to be known to the compiler.

Re: Visual Studio - Missing OGLES Headers

Posted: Wed Oct 21, 2015 9:34 am
by IrrlichtForiOS
We are getting > 300 Errors with missing functions... What would we have to do?

Re: Visual Studio - Missing OGLES Headers

Posted: Wed Oct 21, 2015 11:53 am
by Nadro
@IrrlichtForiOS
If you want to use just OpenGL in ogl-es branch, please comment following definitions: _IRR_COMPILE_WITH_OGLES1_ and _IRR_COMPILE_WITH_OGLES2_ in irrCompileConfig.h.

@AReichl
Thanks for information, I'll fix it today.

Re: Visual Studio - Missing OGLES Headers

Posted: Wed Oct 21, 2015 12:35 pm
by IrrlichtForiOS
It's Irrlicht 1.9.0 ole-es branch.

getting this error now..

Code: Select all

Error   1   error LNK2019: unresolved external symbol "public: __thiscall irr::video::CWGLManager::CWGLManager(void)" (??0CWGLManager@video@irr@@QAE@XZ) referenced in function "private: void __thiscall irr::CIrrDeviceWin32::createDriver(void)" (?createDriver@CIrrDeviceWin32@irr@@AAEXXZ) C:\Users\nbong\Documents\Irrlicht\source\Irrlicht\CIrrDeviceWin32.obj   Irrlicht
 

Re: Visual Studio - Missing OGLES Headers

Posted: Wed Oct 21, 2015 6:27 pm
by Nadro
Please add CWGLManager.cpp (it exists in source/Irrlicht/) to project. This issue will be fixed after the upcoming merge.

Re: Visual Studio - Missing OGLES Headers

Posted: Thu Oct 22, 2015 11:13 am
by AReichl
Only a question out of curiosity:

Why did you (have to) change the name extGlUseProgram to irrGlUseProgram (to get it to compile) ?

Re: Visual Studio - Missing OGLES Headers

Posted: Thu Oct 22, 2015 2:27 pm
by Nadro
I replaced from:

Code: Select all

glUseProgram(programID);
to:

Code: Select all

Driver->irrGlUseProgram(programID);
"irr" vs "ext" don't matter here. I choosed "irr" prefix instead of "ext" prefix, because "ext - extension" isn't good in some cases (eg. when we use Core functionality), thats why "irr" prefix is better IMHO and will be used in all methods related to OGL in future.