Abstract selector of translator or host GL libs a bit more
This commit is contained in:
parent
d12aad5c01
commit
30c2186826
13 changed files with 130 additions and 57 deletions
|
|
@ -42,12 +42,13 @@ LIST_RENDER_EGL_EXTENSIONS_FUNCTIONS(RENDER_EGL_DEFINE_TYPE)
|
|||
|
||||
// Define EGLDispatch structure.
|
||||
struct EGLDispatch {
|
||||
bool initialized = false;
|
||||
LIST_RENDER_EGL_FUNCTIONS(RENDER_EGL_DECLARE_MEMBER)
|
||||
LIST_RENDER_EGL_EXTENSIONS_FUNCTIONS(RENDER_EGL_DECLARE_MEMBER)
|
||||
};
|
||||
|
||||
// Initialize EGLDispatch function. Return true on success, false on failure.
|
||||
bool init_egl_dispatch();
|
||||
bool init_egl_dispatch(const char *path);
|
||||
|
||||
// Global EGLDispatch instance. Call init_egl_dispatch() before using it.
|
||||
extern EGLDispatch s_egl;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue