Files
FEX-Emu--FEX/ThunkLibs/Generators/libEGL.py
T
Ryan Houdek b102714d5c Thunks: Support versioned libraries
We can't expect users to have development libraries installed.
Load the versioned libraries if they exist instead

Also load them in global namespace, which is required for getting
symbols.

Behaviour on x86-64 host seems sporatic here, not sure if unintended
feature.
Doesn't quite behave the same on AArch64 host
2021-10-08 02:41:37 -07:00

26 lines
1.0 KiB
Python

#!/usr/bin/python3
from ThunkHelpers import *
lib("libEGL", "0")
fn("EGLBoolean eglBindAPI(EGLenum)")
fn("EGLBoolean eglChooseConfig(EGLDisplay, const EGLint*, void**, EGLint, EGLint*)")
fn("EGLBoolean eglDestroyContext(EGLDisplay, EGLContext)")
fn("EGLBoolean eglDestroySurface(EGLDisplay, EGLSurface)")
fn("EGLBoolean eglInitialize(EGLDisplay, EGLint*, EGLint*)")
fn("EGLBoolean eglMakeCurrent(EGLDisplay, EGLSurface, EGLSurface, EGLContext)")
fn("EGLBoolean eglQuerySurface(EGLDisplay, EGLSurface, EGLint, EGLint*)")
fn("EGLBoolean eglSurfaceAttrib(EGLDisplay, EGLSurface, EGLint, EGLint)")
fn("EGLBoolean eglSwapBuffers(EGLDisplay, EGLSurface)")
fn("EGLBoolean eglTerminate(EGLDisplay)")
fn("EGLint eglGetError()")
fn("void* eglCreateContext(EGLDisplay, EGLConfig, EGLContext, const EGLint*)")
fn("void* eglCreateWindowSurface(EGLDisplay, EGLConfig, EGLNativeWindowType, const EGLint*)")
fn("void* eglGetCurrentContext()")
fn("void* eglGetCurrentDisplay()")
fn("void* eglGetCurrentSurface(EGLint)")
fn("void* eglGetDisplay(EGLNativeDisplayType)")
Generate()