Files
FEX-Emu--FEX/ThunkLibs/libGL/libGL_Host.cpp
T

35 lines
591 B
C++

/*
$info$
tags: thunklibs|GL
desc: Uses glXGetProcAddress instead of dlsym
$end_info$
*/
#include <cstdio>
#include <dlfcn.h>
#define GL_GLEXT_PROTOTYPES 1
#define GLX_GLXEXT_PROTOTYPES 1
#include "glcorearb.h"
#include <GL/glx.h>
#include <GL/glxext.h>
#include <GL/gl.h>
#include <GL/glext.h>
#define dlsym(so, name) (void*)glXGetProcAddress((const GLubyte*)name)
#include "common/Host.h"
#include "ldr_ptrs.inl"
#include "function_unpacks.inl"
static ExportEntry exports[] = {
#include "tab_function_unpacks.inl"
{ nullptr, nullptr }
};
#include "ldr.inl"
EXPORTS(libGL)