pspdisplay.h

Go to the documentation of this file.
00001 /*
00002  * PSP Software Development Kit - http://www.pspdev.org
00003  * -----------------------------------------------------------------------
00004  * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
00005  *
00006  * pspdisplay.h - Prototypes for the sceDisplay library.
00007  *
00008  * Copyright (c) 2005 Marcus R. Brown <mrbrown@ocgnet.org>
00009  * Copyright (c) 2005 James Forshaw <tyranid@gmail.com>
00010  * Copyright (c) 2005 John Kelley <ps2dev@kelley.ca>
00011  *
00012  * $Id: pspdisplay.h 2007 2006-09-19 05:33:08Z tyranid $
00013  */
00014 #ifndef __DISPLAY_H__
00015 #define __DISPLAY_H__
00016 
00017 #ifdef __cplusplus
00018 extern "C" {
00019 #endif
00020 
00022 enum PspDisplayPixelFormats {
00024         PSP_DISPLAY_PIXEL_FORMAT_565 = 0,
00026         PSP_DISPLAY_PIXEL_FORMAT_5551,
00027         /* 16-bit RGBA 4:4:4:4. */
00028         PSP_DISPLAY_PIXEL_FORMAT_4444,
00029         /* 32-bit RGBA 8:8:8:8. */
00030         PSP_DISPLAY_PIXEL_FORMAT_8888
00031 };
00032 
00033 enum PspDisplaySetBufSync {
00035         PSP_DISPLAY_SETBUF_IMMEDIATE = 0, 
00037         PSP_DISPLAY_SETBUF_NEXTFRAME = 1
00038 };
00039 
00053 int sceDisplaySetMode(int mode, int width, int height);
00054 
00064 int sceDisplayGetMode(int *pmode, int *pwidth, int *pheight);
00065 
00074 void sceDisplaySetFrameBuf(void *topaddr, int bufferwidth, int pixelformat, int sync);
00075 
00084 int sceDisplayGetFrameBuf(void **topaddr, int *bufferwidth, int *pixelformat, int *unk1);
00085 
00089 unsigned int sceDisplayGetVcount(void);
00090 
00094 int sceDisplayWaitVblankStart(void);
00095 
00099 int sceDisplayWaitVblankStartCB(void);
00100 
00104 int sceDisplayWaitVblank(void);
00105 
00109 int sceDisplayWaitVblankCB(void);
00110 
00111 #ifdef __cplusplus
00112 }
00113 #endif
00114 
00115 #endif

Generated on Sat Jun 30 23:12:15 2007 for pspsdk-1.0+beta2 by  doxygen 1.5.1