mirror of
https://gitlab.com/shinovon/re3-symbian.git
synced 2026-05-23 01:57:21 +03:00
Something partially working
This commit is contained in:
parent
9c3f9b9ed6
commit
52e1b18729
6 changed files with 243 additions and 274 deletions
|
|
@ -339,7 +339,9 @@ public:
|
|||
CreateWindowL();
|
||||
iAppUi->SetOrientationL(CAknAppUiBase::EAppUiOrientationLandscape);
|
||||
SetExtentToWholeScreen();
|
||||
#ifdef RW_GL3
|
||||
Window().EnableAdvancedPointers();
|
||||
#endif
|
||||
EnableDragEvents();
|
||||
ActivateL();
|
||||
|
||||
|
|
@ -353,13 +355,13 @@ public:
|
|||
RsGlobal.height = size.iHeight;
|
||||
|
||||
EGLint attribs[] = {
|
||||
EGL_BUFFER_SIZE, 16,
|
||||
EGL_BUFFER_SIZE, 24,
|
||||
EGL_DEPTH_SIZE, 16,
|
||||
EGL_STENCIL_SIZE, 0,
|
||||
EGL_SURFACE_TYPE, EGL_WINDOW_BIT,
|
||||
#ifdef RW_GL3
|
||||
EGL_SAMPLES, 0,
|
||||
EGL_COLOR_BUFFER_TYPE, EGL_RGB_BUFFER,
|
||||
EGL_SURFACE_TYPE, EGL_WINDOW_BIT,
|
||||
#ifdef SYMBIAN3
|
||||
EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT,
|
||||
#endif
|
||||
EGL_NONE
|
||||
|
|
@ -367,15 +369,19 @@ public:
|
|||
|
||||
eglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY);
|
||||
eglInitialize(eglDisplay, NULL, NULL);
|
||||
#ifdef SYMBIAN3
|
||||
#ifdef RW_GL3
|
||||
eglBindAPI(EGL_OPENGL_ES_API);
|
||||
#endif
|
||||
|
||||
EGLint numConfigs;
|
||||
eglChooseConfig(eglDisplay, attribs, &eglConfig, 1, &numConfigs);
|
||||
|
||||
#ifdef RW_GL3
|
||||
EGLint contextAttribs[ 3 ] = { EGL_CONTEXT_CLIENT_VERSION, 2, EGL_NONE };
|
||||
eglContext = eglCreateContext(eglDisplay, eglConfig, EGL_NO_CONTEXT, contextAttribs);
|
||||
#else
|
||||
eglContext = eglCreateContext(eglDisplay, eglConfig, EGL_NO_CONTEXT, NULL);
|
||||
#endif
|
||||
|
||||
RWindow& window = Window();
|
||||
eglSurface = eglCreateWindowSurface(eglDisplay, eglConfig, &window, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue