mirror of
https://github.com/libretro/RetroArch
synced 2025-04-15 23:42:30 +00:00
(PSL1GHT) Add some GL ES 2.0 hooks
This commit is contained in:
parent
34bcb938b8
commit
2ec2b70a72
@ -35,7 +35,9 @@ ifeq ($(HAVE_FILE_LOGGER), 1)
|
||||
CFLAGS += -DHAVE_FILE_LOGGER
|
||||
endif
|
||||
|
||||
CFLAGS += -std=gnu99 -DHAVE_FILEBROWSER -DHAVE_OPENGLES20 -D__RSX__ -DHAVE_OSKUTIL -DHAVE_MOUSE -DHAVE_DEFAULT_RETROPAD_INPUT -DRARCH_CONSOLE -DHAVE_CONFIGFILE=1 -DHAVE_ZLIB -DHAVE_RARCH_MAIN_WRAP -DHAVE_GRIFFIN=1 -DPACKAGE_VERSION=\"0.9.6\" -Dmain=rarch_main -Wno-char-subscripts
|
||||
RSXGL_DEFINES = -D__RSX__ -DGL3_PROTOTYPES
|
||||
|
||||
CFLAGS += -std=gnu99 -DHAVE_FILEBROWSER -DHAVE_OPENGLES20 $(RSXGL_DEFINES) -DHAVE_OSKUTIL -DHAVE_MOUSE -DHAVE_DEFAULT_RETROPAD_INPUT -DRARCH_CONSOLE -DHAVE_CONFIGFILE=1 -DHAVE_ZLIB -DHAVE_RARCH_MAIN_WRAP -DHAVE_GRIFFIN=1 -DPACKAGE_VERSION=\"0.9.6\" -Dmain=rarch_main -Wno-char-subscripts
|
||||
|
||||
ifeq ($(DEBUG), 1)
|
||||
CFLAGS += -O0 -g
|
||||
|
@ -84,8 +84,10 @@ VIDEO IMAGE
|
||||
VIDEO DRIVER
|
||||
============================================================ */
|
||||
|
||||
#ifdef HAVE_OPENGLES11
|
||||
#if defined(HAVE_OPENGLES11)
|
||||
#include "../../gfx/gl.c"
|
||||
#elif defined(HAVE_OPENGLES20)
|
||||
#include "../../gfx/gles.c"
|
||||
#elif defined(_XBOX360)
|
||||
#include "../../360/xdk360_video.cpp"
|
||||
#elif defined(GEKKO)
|
||||
|
@ -26,16 +26,16 @@
|
||||
#if defined(__APPLE__)
|
||||
#include <OpenGL/gl.h>
|
||||
#include <OpenGL/glext.h>
|
||||
#elif defined(__CELLOS_LV2__)
|
||||
#if defined(__PSL1GHT__)
|
||||
#include <EGL/egl.h>
|
||||
#include <GL3/gl3.h>
|
||||
#include <GL3/gl3ext.h>
|
||||
#else
|
||||
#elif defined(__CELLOS_LV2__) && !defined(__PSL1GHT__)
|
||||
#include <PSGL/psgl.h>
|
||||
#include <PSGL/psglu.h>
|
||||
#include <GLES/glext.h>
|
||||
#endif
|
||||
#elif defined(__CELLOS_LV2__) && defined(__PSL1GHT__)
|
||||
#include <EGL/egl.h>
|
||||
#include <GL3/gl3.h>
|
||||
#include <GL3/gl3ext.h>
|
||||
#include <GL3/rsxgl_compatibility.h>
|
||||
#define GL_QUADS 0x0007
|
||||
#else
|
||||
#define GL_GLEXT_PROTOTYPES
|
||||
#include <GL/gl.h>
|
||||
@ -209,7 +209,7 @@ extern PFNGLACTIVETEXTUREPROC pglActiveTexture;
|
||||
#define pglActiveTexture glActiveTexture
|
||||
#endif
|
||||
|
||||
#ifdef __CELLOS_LV2__
|
||||
#if defined(__CELLOS_LV2__) && !defined(__PSL1GHT__)
|
||||
#define RARCH_GL_INTERNAL_FORMAT GL_ARGB_SCE
|
||||
#define RARCH_GL_TEXTURE_TYPE GL_ARGB_SCE
|
||||
#define RARCH_GL_FORMAT32 GL_UNSIGNED_INT_8_8_8_8
|
||||
|
Loading…
x
Reference in New Issue
Block a user