zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SDL_pspgl.c File Reference
#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)
 
voidPSP_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
 

Macro Definition Documentation

#define EGLCHK (   stmt)
Value:
do { \
EGLint err; \
\
stmt; \
err = eglGetError(); \
if (err != EGL_SUCCESS) { \
SDL_SetError("EGL error %d", err); \
return 0; \
} \
} while (0)
return
Definition: pngrutil.c:1266
EGLAPI EGLint EGLAPIENTRY eglGetError(void)
khronos_int32_t EGLint
Definition: eglplatform.h:127
if(!yyg->yy_init)
#define EGL_SUCCESS
Definition: egl.h:77
DECLSPEC int SDLCALL SDL_SetError(const char *fmt,...)
Definition: SDL_error.c:53

Definition at line 32 of file SDL_pspgl.c.

Referenced by PSP_GL_CreateContext().

Function Documentation

void* PSP_GL_GetProcAddress ( _THIS  ,
const char *  proc 
)

Definition at line 61 of file SDL_pspgl.c.

References eglGetProcAddress().

int PSP_GL_GetSwapInterval ( _THIS  )

Definition at line 169 of file SDL_pspgl.c.

References _this, SDL_VideoDevice::gl_data, and SDL_GLDriverData::swapinterval.

int PSP_GL_LoadLibrary ( _THIS  ,
const char *  path 
)

Definition at line 45 of file SDL_pspgl.c.

References _this, SDL_VideoDevice::driver_loaded, and SDL_VideoDevice::gl_config.

int PSP_GL_SetSwapInterval ( _THIS  ,
int  interval 
)
void PSP_GL_SwapWindow ( _THIS  ,
SDL_Window window 
)
void PSP_GL_UnloadLibrary ( _THIS  )

Definition at line 67 of file SDL_pspgl.c.

References _this, SDL_GLDriverData::display, eglTerminate(), and SDL_VideoDevice::gl_data.

Variable Documentation

EGLint height = 272
static

Definition at line 73 of file SDL_pspgl.c.

EGLint width = 480
static

Definition at line 72 of file SDL_pspgl.c.