mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-07 03:13:49 +00:00
Add support for odroid
This commit is contained in:
parent
6308cc2918
commit
cc3e1e6302
|
@ -6,6 +6,7 @@ endif()
|
||||||
|
|
||||||
option(EGL "Set to ON if targeting an EGL device" ${EGL})
|
option(EGL "Set to ON if targeting an EGL device" ${EGL})
|
||||||
option(PANDORA "Set to ON if targeting an OpenPandora" ${PANDORA})
|
option(PANDORA "Set to ON if targeting an OpenPandora" ${PANDORA})
|
||||||
|
option(ODROID "Set to ON if targeting an Odroid" ${ODROID})
|
||||||
option(MUPENPLUSAPI "Set to ON for Mupen64Plus plugin" ${MUPENPLUSAPI})
|
option(MUPENPLUSAPI "Set to ON for Mupen64Plus plugin" ${MUPENPLUSAPI})
|
||||||
option(MESA "Set to ON to disable Raspberry Pi autodetection" ${MESA})
|
option(MESA "Set to ON to disable Raspberry Pi autodetection" ${MESA})
|
||||||
|
|
||||||
|
@ -224,6 +225,12 @@ if(PANDORA)
|
||||||
)
|
)
|
||||||
endif(PANDORA)
|
endif(PANDORA)
|
||||||
|
|
||||||
|
if(ODROID)
|
||||||
|
add_definitions(
|
||||||
|
-DODROID
|
||||||
|
)
|
||||||
|
endif(ODROID)
|
||||||
|
|
||||||
if(UNIX OR BCMHOST)
|
if(UNIX OR BCMHOST)
|
||||||
SET( FREETYPE_INCLUDE_DIRS "/usr/include/freetype2/" )
|
SET( FREETYPE_INCLUDE_DIRS "/usr/include/freetype2/" )
|
||||||
else(UNIX OR BCMHOST)
|
else(UNIX OR BCMHOST)
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
#define glGetProcAddress wglGetProcAddress
|
#define glGetProcAddress wglGetProcAddress
|
||||||
#define GL_GET_PROC_ADR(proc_type, proc_name) g_##proc_name = (proc_type) glGetProcAddress(#proc_name)
|
#define GL_GET_PROC_ADR(proc_type, proc_name) g_##proc_name = (proc_type) glGetProcAddress(#proc_name)
|
||||||
|
|
||||||
#elif defined(VC)
|
#elif defined(ODROID) || defined(VC)
|
||||||
|
|
||||||
#define GL_GET_PROC_ADR(proc_type, proc_name) g_##proc_name = (proc_type) dlsym(gles2so, #proc_name);
|
#define GL_GET_PROC_ADR(proc_type, proc_name) g_##proc_name = (proc_type) dlsym(gles2so, #proc_name);
|
||||||
|
|
||||||
|
@ -184,6 +184,8 @@ void initGLFunctions()
|
||||||
{
|
{
|
||||||
#ifdef VC
|
#ifdef VC
|
||||||
void *gles2so = dlopen("/opt/vc/lib/libbrcmGLESv2.so", RTLD_NOW);
|
void *gles2so = dlopen("/opt/vc/lib/libbrcmGLESv2.so", RTLD_NOW);
|
||||||
|
#elif defined(ODROID)
|
||||||
|
void *gles2so = dlopen("/usr/lib/arm-linux-gnueabihf/libGLESv2.so", RTLD_NOW);
|
||||||
#endif
|
#endif
|
||||||
#ifdef OS_WINDOWS
|
#ifdef OS_WINDOWS
|
||||||
GL_GET_PROC_ADR(PFNGLACTIVETEXTUREPROC, glActiveTexture);
|
GL_GET_PROC_ADR(PFNGLACTIVETEXTUREPROC, glActiveTexture);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user