GLSupport GLES at windows "externalWindowHandle" support

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
Post Reply
longer
Kobold
Posts: 37
Joined: Tue Aug 19, 2014 10:46 am
x 5

GLSupport GLES at windows "externalWindowHandle" support

Post by longer »

RenderSystems/GLSupport/src/EGL/WIN32/OgreWin32EGLWindow.cpp confused.

I find that the RenderSystems

Code: Select all

1.GLES2 EGL Android OgreAndroidEGLWindow.cpp support :
"externalWindowHandle" for target ANativeWindow* 
for EGL init.

2.IOS EAGL OgreEAGL2Window.mm support :
"externalWindowHandle" for target UIWindow*
"externalViewHandle" for target UIView*
"externalViewControllerHandle" for target UIViewController*
for EAGL init.

3.Why GLES2 EGL Windows OgreWin32EGLWindow.cpp not support
"externalWindowHandle" for windows HWND
for EGL init?
I can only use a existed EGLContext for "currentGLContext".Or use Win32EGLWindow::create for new HWND.But most of time, I want to create a HWND externally using a localized windows api, and init EGL at ogre RenderSystem.

4.I find that RenderSystems/GLSupport/src/win32/OgreWin32Window.cpp support "externalWindowHandle" for windows HWND.

5.When i use the default CMake config build the Sample, SDL for GLES2 at windows it is create two window for me.This is strange, and his touchs point(mouse event) is wrong.I think this is also the reason.
paroj
OGRE Team Member
OGRE Team Member
Posts: 1995
Joined: Sun Mar 30, 2014 2:51 pm
x 1075
Contact:

Re: GLSupport GLES at windows "externalWindowHandle" support

Post by paroj »

you are the only user of GLES on windows as far as I am aware of. Are you actively deploying it like this or are you using it just for easier testing of an e.g. Android build?
Also do you use ANGLE for this?

Anyway feel free to implement "externalWindowHandle" for Win32EGLWindow based on the OgreWin32Window implementation and create a pull-request.
longer
Kobold
Posts: 37
Joined: Tue Aug 19, 2014 10:46 am
x 5

Re: GLSupport GLES at windows "externalWindowHandle" support

Post by longer »

Like cocos2d, I want to use the GLES2 interface to get closer to the problem on the mobile phone. Because debugging on a mobile phone is really inconvenient. So I chose to use the GLES2 renderer on the windows platform.

The materials some time different for Ogre::RenderSystem.

Yes, it is focus the testing. This will find the problem earlier.

I personally think that there are still quite a lot of users like me.
I am not use ANGLE, i prefer to use local api.
I will try for the pull-request.

But https://bitbucket.org/sinbad/ogre or https://github.com/OGRECave/ogre?
My version is fork 1.10.11 https://bitbucket.org/sinbad/ogre.
paroj
OGRE Team Member
OGRE Team Member
Posts: 1995
Joined: Sun Mar 30, 2014 2:51 pm
x 1075
Contact:

Re: GLSupport GLES at windows "externalWindowHandle" support

Post by paroj »

longer wrote: Fri Nov 08, 2019 2:04 am I personally think that there are still quite a lot of users like me.
I am not use ANGLE, i prefer to use local api.
but where do you get your EGL implementation from?

Is WGL_EXT_create_context_es2_profile available for you? Maybe telling WGL to create a GLES context would be easier.
longer wrote: Fri Nov 08, 2019 2:04 am I will try for the pull-request.

But https://bitbucket.org/sinbad/ogre or https://github.com/OGRECave/ogre?
My version is fork 1.10.11 https://bitbucket.org/sinbad/ogre.
development moved to github, so it is https://github.com/OGRECave/ogre
Post Reply