Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals

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 990 2005-09-02 20:10:26Z holger $
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 
00096 #ifdef __cplusplus
00097 }
00098 #endif
00099 
00100 #endif

Generated on Wed Sep 28 07:52:08 2005 for pspsdk-1.0+beta by  doxygen 1.4.4