First development release - WIP
This commit is contained in:
26
src/context.h
Normal file
26
src/context.h
Normal 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
|
||||
Reference in New Issue
Block a user