First development release - WIP

This commit is contained in:
2018-09-18 20:00:49 +02:00
parent 9d8cc24939
commit a839879baa
13 changed files with 1080 additions and 1 deletions

26
src/context.h Normal file
View File

@@ -0,0 +1,26 @@
#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