pspsdk-1.0+beta2
Main Page
Modules
Data Structures
Files
File List
Globals
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
23
enum
PspDisplayPixelFormats
{
25
PSP_DISPLAY_PIXEL_FORMAT_565
= 0,
27
PSP_DISPLAY_PIXEL_FORMAT_5551
,
28
/* 16-bit RGBA 4:4:4:4. */
29
PSP_DISPLAY_PIXEL_FORMAT_4444
,
30
/* 32-bit RGBA 8:8:8:8. */
31
PSP_DISPLAY_PIXEL_FORMAT_8888
32
};
33
34
enum
PspDisplaySetBufSync
{
36
PSP_DISPLAY_SETBUF_IMMEDIATE
= 0,
38
PSP_DISPLAY_SETBUF_NEXTFRAME
= 1
39
};
40
41
42
enum
PspDisplayErrorCodes
43
{
44
SCE_DISPLAY_ERROR_OK
= 0,
45
SCE_DISPLAY_ERROR_POINTER
= 0x80000103,
46
SCE_DISPLAY_ERROR_ARGUMENT
= 0x80000107
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
113
int
sceDisplayWaitVblankStartCB
(
void
);
114
118
int
sceDisplayWaitVblank
(
void
);
119
123
int
sceDisplayWaitVblankCB
(
void
);
124
125
#ifdef __cplusplus
126
}
127
#endif
128
129
#endif
src
display
pspdisplay.h
Generated on Sat Apr 9 2016 07:00:25 for pspsdk-1.0+beta2 by
1.8.1.2