mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 16:00:18 +02:00
These functions are annotated with fexgen::callback_stub nowadays, so they don't need custom host endpoints anymore.
40 lines
660 B
C++
40 lines
660 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>
|
|
|
|
#include <cstdlib>
|
|
|
|
#include "common/Host.h"
|
|
|
|
void* symbolFromGlXGetProcAddr(void*, const char* name) {
|
|
return (void*)glXGetProcAddress((const GLubyte*)name);
|
|
}
|
|
|
|
#include "ldr_ptrs.inl"
|
|
#include "function_unpacks.inl"
|
|
|
|
static ExportEntry exports[] = {
|
|
#include "tab_function_unpacks.inl"
|
|
{ nullptr, nullptr }
|
|
};
|
|
|
|
#include "ldr.inl"
|
|
|
|
EXPORTS(libGL)
|