zenilib
0.5.3.0
|
#include <stdlib.h>
#include <string.h>
#include "SDL_error.h"
#include "SDL_pspvideo.h"
#include "SDL_pspgl_c.h"
Go to the source code of this file.
Macros | |
#define | EGLCHK(stmt) |
Functions | |
SDL_GLContext | PSP_GL_CreateContext (_THIS, SDL_Window *window) |
void | PSP_GL_DeleteContext (_THIS, SDL_GLContext context) |
void * | PSP_GL_GetProcAddress (_THIS, const char *proc) |
int | PSP_GL_GetSwapInterval (_THIS) |
int | PSP_GL_LoadLibrary (_THIS, const char *path) |
int | PSP_GL_MakeCurrent (_THIS, SDL_Window *window, SDL_GLContext context) |
int | PSP_GL_SetSwapInterval (_THIS, int interval) |
void | PSP_GL_SwapWindow (_THIS, SDL_Window *window) |
void | PSP_GL_UnloadLibrary (_THIS) |
Variables | |
static EGLint | height = 272 |
static EGLint | width = 480 |
#define EGLCHK | ( | stmt | ) |
Definition at line 32 of file SDL_pspgl.c.
Referenced by PSP_GL_CreateContext().
SDL_GLContext PSP_GL_CreateContext | ( | _THIS | , |
SDL_Window * | window | ||
) |
Definition at line 76 of file SDL_pspgl.c.
References _this, SDL_VideoDevice::alpha_size, SDL_VideoDevice::blue_size, SDL_GLDriverData::context, context, SDL_VideoDevice::depth_size, SDL_GLDriverData::display, display, SDL_Window::driverdata, EGL_ALPHA_SIZE, EGL_BLUE_SIZE, EGL_DEPTH_SIZE, EGL_GREEN_SIZE, EGL_HEIGHT, EGL_NONE, EGL_RED_SIZE, EGL_STENCIL_SIZE, EGL_WIDTH, EGLCHK, eglChooseConfig(), eglCreateContext(), eglCreateWindowSurface(), eglGetConfigAttrib(), eglGetDisplay(), eglInitialize(), eglMakeCurrent(), SDL_Window::flags, SDL_VideoDevice::gl_config, SDL_VideoDevice::gl_data, SDL_VideoDevice::green_size, i, NULL, SDL_VideoDevice::red_size, SDL_SetError(), SDL_TRUE, SDL_WINDOW_FULLSCREEN, SDL_VideoDevice::stencil_size, SDL_GLDriverData::surface, and SDL_WindowData::uses_gles.
void PSP_GL_DeleteContext | ( | _THIS | , |
SDL_GLContext | context | ||
) |
Definition at line 181 of file SDL_pspgl.c.
References _this, SDL_GLDriverData::display, SDL_VideoDevice::driverdata, SDL_VideoData::egl_initialized, EGL_NO_CONTEXT, EGL_NO_DISPLAY, EGL_TRUE, eglDestroyContext(), SDL_VideoDevice::gl_data, if(), SDL_SetError(), and SDL_TRUE.
Definition at line 61 of file SDL_pspgl.c.
References eglGetProcAddress().
Definition at line 169 of file SDL_pspgl.c.
References _this, SDL_VideoDevice::gl_data, and SDL_GLDriverData::swapinterval.
Definition at line 45 of file SDL_pspgl.c.
References _this, SDL_VideoDevice::driver_loaded, and SDL_VideoDevice::gl_config.
int PSP_GL_MakeCurrent | ( | _THIS | , |
SDL_Window * | window, | ||
SDL_GLContext | context | ||
) |
Definition at line 144 of file SDL_pspgl.c.
References _this, SDL_GLDriverData::context, SDL_GLDriverData::display, eglMakeCurrent(), SDL_VideoDevice::gl_data, SDL_SetError(), and SDL_GLDriverData::surface.
Definition at line 155 of file SDL_pspgl.c.
References _this, SDL_GLDriverData::display, EGL_TRUE, eglSwapInterval(), SDL_VideoDevice::gl_data, SDL_SetError(), and SDL_GLDriverData::swapinterval.
void PSP_GL_SwapWindow | ( | _THIS | , |
SDL_Window * | window | ||
) |
Definition at line 175 of file SDL_pspgl.c.
References _this, SDL_GLDriverData::display, eglSwapBuffers(), SDL_VideoDevice::gl_data, and SDL_GLDriverData::surface.
Definition at line 67 of file SDL_pspgl.c.
References _this, SDL_GLDriverData::display, eglTerminate(), and SDL_VideoDevice::gl_data.
Definition at line 73 of file SDL_pspgl.c.
Definition at line 72 of file SDL_pspgl.c.