Skip to content

Commit

Permalink
GLSupport: Android - add currentEGLSurface misc param (OGRECave#3236)
Browse files Browse the repository at this point in the history
  • Loading branch information
HadesD authored Sep 29, 2024
1 parent 185c369 commit c4328e2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions OgreMain/include/OgreRenderSystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@ namespace Ogre
| externalWlDisplay | wl_display address as an integer | 0 (none) | Wayland display connection | Linux |
| externalWlSurface | wl_surface address as an integer | 0 (none) | Wayland onscreen surface | Linux |
| currentGLContext | true, false | false | Use an externally created GL context. (Must be current) | OpenGL |
| currentEGLSurface | true, false | false | Use an externally created EGL surface. | Android |
| minColourBufferSize | Positive integer (usually 16, 32) | 16 | Min total colour buffer size. See EGL_BUFFER_SIZE | OpenGL |
| windowProc | WNDPROC | DefWindowProc | function that processes window messages | Win 32 |
| colourDepth | 16, 32 | Desktop depth | Colour depth of the resulting rendering window; only applies if fullScreen | Win32 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,12 @@ namespace Ogre {
"EGLWindow::create");
}

if((opt = miscParams->find("currentEGLSurface")) != end &&
StringConverter::parseBool(opt->second))
{
mEglSurface = eglGetCurrentSurface(EGL_DRAW);
}

mEglDisplay = eglGetCurrentDisplay();
}

Expand Down

0 comments on commit c4328e2

Please sign in to comment.