]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android/external-libkmsxx.git/blob - kmscube/cube-egl.h
kmscube: quick hack for fullscreen
[android/external-libkmsxx.git] / kmscube / cube-egl.h
1 #pragma once
3 #include <EGL/egl.h>
5 class EglState
6 {
7 public:
8         EglState(void *native_display);
9         ~EglState();
11         EGLDisplay display() const { return m_display; }
12         EGLConfig config() const { return m_config; }
13         EGLContext context() const { return m_context; }
15 private:
16         EGLDisplay m_display;
17         EGLConfig m_config;
18         EGLContext m_context;
19 };
21 class EglSurface
22 {
23 public:
24         EglSurface(const EglState& egl, void *native_window);
25         ~EglSurface();
27         void make_current();
28         void swap_buffers();
30 private:
31         const EglState& egl;
33         EGLSurface esurface;
34 };