Files
Linux-VR-Compositor-Dev/src/context.h

27 lines
479 B
C

#ifndef LINUX_VR_COMPOSITOR_CONTEXT_H
#define LINUX_VR_COMPOSITOR_CONTEXT_H
#include <openhmd.h>
#include "swapChain.h"
#include <EGL/egl.h>
typedef struct
{
SwapChain * swapChain;
// EGL
EGLDisplay display;
EGLSurface surface;
EGLContext context;
} lvrc_contextGL;
lvrc_contextGL * CreateContext(ohmd_device * octx, EGLenum API);
void DestroyContext(lvrc_contextGL * context);
void ContextSwapBuffers(lvrc_contextGL * ctx);
#endif // LINUX_VR_COMPOSITOR_CONTEXT_H