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  * Copyright (c) 2007 Alexander Berl <raphael@fx-world.org>
00012  *
00013  * $Id: pspdisplay.h 2271 2007-07-20 13:08:41Z oopo $
00014  */
00015 #ifndef __DISPLAY_H__
00016 #define __DISPLAY_H__
00017 
00018 #ifdef __cplusplus
00019 extern "C" {
00020 #endif
00021 
00023 enum PspDisplayPixelFormats {
00025         PSP_DISPLAY_PIXEL_FORMAT_565 = 0,
00027         PSP_DISPLAY_PIXEL_FORMAT_5551,
00028         /* 16-bit RGBA 4:4:4:4. */
00029         PSP_DISPLAY_PIXEL_FORMAT_4444,
00030         /* 32-bit RGBA 8:8:8:8. */
00031         PSP_DISPLAY_PIXEL_FORMAT_8888
00032 };
00033 
00034 enum PspDisplaySetBufSync {
00036         PSP_DISPLAY_SETBUF_IMMEDIATE = 0, 
00038         PSP_DISPLAY_SETBUF_NEXTFRAME = 1
00039 };
00040 
00041 
00042 enum PspDisplayErrorCodes
00043 {
00044    SCE_DISPLAY_ERROR_OK    = 0,   
00045    SCE_DISPLAY_ERROR_POINTER    = 0x80000103,   
00046    SCE_DISPLAY_ERROR_ARGUMENT   = 0x80000107   
00047 };
00048 
00049 
00063 int sceDisplaySetMode(int mode, int width, int height);
00064 
00074 int sceDisplayGetMode(int *pmode, int *pwidth, int *pheight);
00075 
00086 int sceDisplaySetFrameBuf(void *topaddr, int bufferwidth, int pixelformat, int sync);
00087 
00098 int sceDisplayGetFrameBuf(void **topaddr, int *bufferwidth, int *pixelformat, int sync);
00099 
00103 unsigned int sceDisplayGetVcount(void);
00104 
00108 int sceDisplayWaitVblankStart(void);
00109 
00113 int sceDisplayWaitVblankStartCB(void);
00114 
00118 int sceDisplayWaitVblank(void);
00119 
00123 int sceDisplayWaitVblankCB(void);
00124 
00125 #ifdef __cplusplus
00126 }
00127 #endif
00128 
00129 #endif

Generated on Tue Jul 24 15:21:22 2007 for PSPSDK-Rev2272 by  doxygen 1.5.2