mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-12 18:38:12 +00:00
[client] opengl: implement & fix opengl support
This commit is contained in:
@@ -583,6 +583,26 @@ void app_eglSwapBuffers(EGLDisplay display, EGLSurface surface)
|
||||
}
|
||||
#endif
|
||||
|
||||
LG_DSGLContext app_glCreateContext(void)
|
||||
{
|
||||
return g_state.ds->glCreateContext();
|
||||
}
|
||||
|
||||
void app_glDeleteContext(LG_DSGLContext context)
|
||||
{
|
||||
g_state.ds->glDeleteContext(context);
|
||||
}
|
||||
|
||||
void app_glMakeCurrent(LG_DSGLContext context)
|
||||
{
|
||||
g_state.ds->glMakeCurrent(context);
|
||||
}
|
||||
|
||||
void app_glSetSwapInterval(int interval)
|
||||
{
|
||||
g_state.ds->glSetSwapInterval(interval);
|
||||
}
|
||||
|
||||
void app_glSwapBuffers(void)
|
||||
{
|
||||
g_state.ds->glSwapBuffers();
|
||||
|
@@ -722,6 +722,13 @@ static int lg_run(void)
|
||||
return -1;
|
||||
}
|
||||
|
||||
// initialize the window dimensions at init for renderers
|
||||
g_state.windowW = g_params.w;
|
||||
g_state.windowH = g_params.h;
|
||||
g_state.windowCX = g_params.w / 2;
|
||||
g_state.windowCY = g_params.h / 2;
|
||||
core_updatePositionInfo();
|
||||
|
||||
const LG_DSInitParams params =
|
||||
{
|
||||
.title = g_params.windowTitle,
|
||||
|
Reference in New Issue
Block a user