File: context.h

package info (click to toggle)
nageru 2.3.2-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 3,120 kB
  • sloc: cpp: 39,131; perl: 94; sh: 18; makefile: 4
file content (17 lines) | stat: -rw-r--r-- 569 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

// Needs to be in its own file because Qt and libepoxy seemingly don't coexist well
// within the same file.

class QSurface;
class QOpenGLContext;
class QSurfaceFormat;
class QGLWidget;

extern bool using_egl;
extern QGLWidget *global_share_widget;
QSurface *create_surface();
QSurface *create_surface(const QSurfaceFormat &format);
QSurface *create_surface_with_same_format(const QSurface *surface);
QOpenGLContext *create_context(const QSurface *surface);
bool make_current(QOpenGLContext *context, QSurface *surface);
void delete_context(QOpenGLContext *context);