PSPSDK 1.0+beta2
Loading...
Searching...
No Matches
pspdisplay.h
Go to the documentation of this file.
1/*
2 * PSP Software Development Kit - https://github.com/pspdev
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 */
14#ifndef __DISPLAY_H__
15#define __DISPLAY_H__
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
32
39
40
47
48
62int sceDisplaySetMode(int mode, int width, int height);
63
73int sceDisplayGetMode(int *pmode, int *pwidth, int *pheight);
74
86
98
102unsigned int sceDisplayGetVcount(void);
103
108
113
118
123
128
133
138
143
148
149#ifdef __cplusplus
150}
151#endif
152
153#endif
float sceDisplayGetFramePerSec(void)
Get number of frames per second.
int sceDisplaySetFrameBuf(void *topaddr, int bufferwidth, int pixelformat, int sync)
Display set framebuf.
int sceDisplayGetFrameBuf(void **topaddr, int *bufferwidth, int *pixelformat, int sync)
Get Display Framebuffer information.
int sceDisplayGetAccumulatedHcount(void)
Get accumlated HSYNC count.
int sceDisplayWaitVblankCB(void)
Wait for vertical blank with callback.
PspDisplaySetBufSync
Definition pspdisplay.h:33
@ PSP_DISPLAY_SETBUF_IMMEDIATE
Buffer change effective immediately.
Definition pspdisplay.h:35
@ PSP_DISPLAY_SETBUF_NEXTFRAME
Buffer change effective next frame.
Definition pspdisplay.h:37
int sceDisplaySetMode(int mode, int width, int height)
Set display mode.
int sceDisplayWaitVblankStartCB(void)
Wait for vertical blank start with callback.
int sceDisplayGetCurrentHcount(void)
Get current HSYNC count.
unsigned int sceDisplayGetVcount(void)
Number of vertical blank pulses up to now.
int sceDisplayIsForeground(void)
Get whether or not frame buffer is being displayed.
int sceDisplayWaitVblankStart(void)
Wait for vertical blank start.
PspDisplayPixelFormats
Framebuffer pixel formats.
Definition pspdisplay.h:22
@ PSP_DISPLAY_PIXEL_FORMAT_4444
Definition pspdisplay.h:28
@ PSP_DISPLAY_PIXEL_FORMAT_8888
Definition pspdisplay.h:30
@ PSP_DISPLAY_PIXEL_FORMAT_5551
16-bit RGBA 5:5:5:1.
Definition pspdisplay.h:26
@ PSP_DISPLAY_PIXEL_FORMAT_565
16-bit RGB 5:6:5.
Definition pspdisplay.h:24
int sceDisplayWaitVblank(void)
Wait for vertical blank.
int sceDisplayGetMode(int *pmode, int *pwidth, int *pheight)
Get display mode.
PspDisplayErrorCodes
Definition pspdisplay.h:42
@ SCE_DISPLAY_ERROR_ARGUMENT
Definition pspdisplay.h:45
@ SCE_DISPLAY_ERROR_POINTER
Definition pspdisplay.h:44
@ SCE_DISPLAY_ERROR_OK
Definition pspdisplay.h:43
int sceDisplayIsVblank(void)
Test whether VBLANK is active.
float x
Definition psptypes.h:0