Function Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
G
 gp2x_blitter_rect
 gp2x_deinit
 gp2x_dualcore_exec
 gp2x_dualcore_launch_program
 gp2x_dualcore_launch_program_from_disk
 gp2x_dualcore_pause
 gp2x_dualcore_sync
 gp2x_init
 gp2x_joystick_read
 gp2x_printf
 gp2x_printf_init
 gp2x_sound_frame
 gp2x_sound_pause
 gp2x_sound_volume
 gp2x_timer_delay
 gp2x_timer_read
 gp2x_video_cursor_move
 gp2x_video_cursor_setalpha
 gp2x_video_cursor_setup
 gp2x_video_cursor_show
 gp2x_video_logo_enable
 gp2x_video_RGB_color15
 gp2x_video_RGB_color16
 gp2x_video_RGB_color8
 gp2x_video_RGB_flip
 gp2x_video_RGB_setcolorkey
 gp2x_video_RGB_setpalette
 gp2x_video_RGB_setscaling
 gp2x_video_RGB_setwindows
 gp2x_video_setdithering
 gp2x_video_setgammacorrection
 gp2x_video_setluminance
 gp2x_video_waithsync
 gp2x_video_waitvsync
 gp2x_video_YUV_color
 gp2x_video_YUV_flip
 gp2x_video_YUV_setparts
 gp2x_video_YUV_setscaling
void (*gp2x_blitter_rect)(gp2x_rect *r)
This function blits a gp2x_rect into screen.
This function unsets the whole library and returns to GP2X menu.
void gp2x_dualcore_exec(unsigned long command)
This function executes a 940T command.
void gp2x_dualcore_launch_program(unsigned long *area,
unsigned long size)
This function sets the 940T program, and launchs it.
void gp2x_dualcore_launch_program_from_disk(const char *file,
unsigned long offset,
unsigned long size)
This function sets the 940T program, and launchs it.
void gp2x_dualcore_pause(int yes)
This function pauses the secondary ARM 940T coprocessor.
void gp2x_dualcore_sync(void)
This function halts the 920T code until the 940T has finished all its tasks.
void gp2x_init(int ticks_per_second,
int bpp,
int rate,
int bits,
int stereo,
int Hz,
int solid_font)
This function sets up the whole library.
unsigned long gp2x_joystick_read(void)
This function returns the active GP2X joystick values.
void gp2x_printf(gp2x_font *f,
int x,
int y,
const char *format,
 ...)
This function printfs a string into the RGB layer.
void gp2x_printf_init(gp2x_font *f,
int w,
int h,
void *data,
int fg,
int bg,
int solid)
This function allows you to set your own fixed gp2x_font.
extern void gp2x_sound_frame(void *blah,
void *buffer,
int samples)
This function is automatically called by the library, and expects a sound buffer to be filled in.
void gp2x_sound_pause(int yes)
This function pauses and unpauses the sound.
void gp2x_sound_volume(int /*0..100*/,
int /*0..100*/)
This function sets the sound volume.
void gp2x_timer_delay(unsigned long ticks)
This function halts the program for a given delay in gp2x_ticks units.
unsigned long gp2x_timer_read(void)
This function returns elapsed ticks in gp2x_ticks units since last gp2x_init call.
void gp2x_video_cursor_move(int x,
int y)
This function updates the cursor coordinates.
void gp2x_video_cursor_setalpha(int FG_A,
int BG_A)
This function sets the alpha blending of both background and foreground cursor colors.
void gp2x_video_cursor_setup(unsigned char *src,
int size,
unsigned char FG,
int FG_R,
int FG_G,
int FG_B,
int FG_A,
unsigned char BG,
int BG_R,
int BG_G,
int BG_B,
int BG_A)
This function sets the shape, size, colour and alpha blending of the cursor.
void gp2x_video_cursor_show(int yes)
This function shows or hides the cursor.
void gp2x_video_logo_enable(int yes)
This function displays the minimal logo watermarked at bottom right of screen.
unsigned short gp2x_video_RGB_color15(int R,
int G,
int B,
int A)
This function returns the 16bits color for a given triad of R,G,B components.
unsigned short gp2x_video_RGB_color16(int R,
int G,
int B)
This function returns the 16bits color for a given triad of R,G,B components.
void gp2x_video_RGB_color8 (int R,
int G,
int B,
int C)
This function sets the palettized color entry C to a given triad of R,G,B components.
void gp2x_video_RGB_flip(int layer)
This function flips video buffers.
void gp2x_video_RGB_setcolorkey(int R,
int G,
int B)
This function sets the colorkey transparent value for all RGB colorkeyed regions.
void gp2x_video_RGB_setpalette(void)
This function updates the whole 8 bits palette into screen.
void gp2x_video_RGB_setscaling(int W,
int H)
This function adjusts a given resolution to fit the whole display (320,240).
void gp2x_video_RGB_setwindows(int window0,
int window1,
int window2,
int window3,
int x,
int y)
This function enables, disables and sets screen up to four RGB windows.
void gp2x_video_setdithering(int mode)
This function sets the dithering values for all the video layers.
void gp2x_video_setgammacorrection(float gamma)
This function sets the Gamma correction value for the whole display.
void gp2x_video_setluminance(int contrast,
int brightness)
This function sets the contrast/brigness values for the YUV/OSD layers.
void gp2x_video_waithsync(void)
This function halts the program until an horizontal sync is done.
void gp2x_video_waitvsync(void)
This function halts the program until a vertical sync is done.
unsigned long gp2x_video_YUV_color(int R,
int G,
int B)
This function returns a YUY2 (Cr0/Y1/Cb0/Y0) 32bits color pixel from a given R,G,B triad.
void gp2x_video_YUV_flip(int region)
This function flips video buffers.
void gp2x_video_YUV_setparts(int part0,
int part1,
int part2,
int part3,
int x,
int y)
This function enables, disables and sets up screen to four YUV parts.
void gp2x_video_YUV_setscaling(int region,
int W,
int H)
This function adjusts a given resolution to fit the whole display (320,240).