pspsdk-1.0+beta2
pspdisplay.h
Go to the documentation of this file.
1 /*
2  * PSP Software Development Kit - http://www.pspdev.org
3  * -----------------------------------------------------------------------
4  * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
5  *
6  * pspdisplay.h - Prototypes for the sceDisplay library.
7  *
8  * Copyright (c) 2005 Marcus R. Brown <mrbrown@ocgnet.org>
9  * Copyright (c) 2005 James Forshaw <tyranid@gmail.com>
10  * Copyright (c) 2005 John Kelley <ps2dev@kelley.ca>
11  * Copyright (c) 2007 Alexander Berl <raphael@fx-world.org>
12  *
13  * $Id: pspdisplay.h 2433 2008-10-15 10:00:27Z iwn $
14  */
15 #ifndef __DISPLAY_H__
16 #define __DISPLAY_H__
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
28  /* 16-bit RGBA 4:4:4:4. */
30  /* 32-bit RGBA 8:8:8:8. */
32 };
33 
39 };
40 
41 
43 {
47 };
48 
49 
63 int sceDisplaySetMode(int mode, int width, int height);
64 
74 int sceDisplayGetMode(int *pmode, int *pwidth, int *pheight);
75 
86 int sceDisplaySetFrameBuf(void *topaddr, int bufferwidth, int pixelformat, int sync);
87 
98 int sceDisplayGetFrameBuf(void **topaddr, int *bufferwidth, int *pixelformat, int sync);
99 
103 unsigned int sceDisplayGetVcount(void);
104 
108 int sceDisplayWaitVblankStart(void);
109 
114 
118 int sceDisplayWaitVblank(void);
119 
123 int sceDisplayWaitVblankCB(void);
124 
125 #ifdef __cplusplus
126 }
127 #endif
128 
129 #endif