vitasdk
Documentation of the vitasdk
display.h
Go to the documentation of this file.
1
7#ifndef _PSP2COMMON_DISPLAY_H_
8#define _PSP2COMMON_DISPLAY_H_
9
10#include <vitasdk/build_utils.h>
11#include <psp2common/types.h>
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17
32
38
47
56typedef struct SceDisplayFrameBuf {
58 void *base;
59 unsigned int pitch;
60 unsigned int pixelformat;
61 unsigned int width;
62 unsigned int height;
65
66
67#ifdef __cplusplus
68}
69#endif
70
71#endif /* _PSP2COMMON_DISPLAY_H_ */
72
#define VITASDK_BUILD_ASSERT_EQ(__size__, __name__)
Definition build_utils.h:13
unsigned int pixelformat
pixel format (one of SceDisplayPixelFormat)
Definition display.h:60
SceDisplaySetBufSync
Definition display.h:39
unsigned int pitch
pitch pixels
Definition display.h:59
unsigned int width
framebuffer width
Definition display.h:61
SceSize size
sizeof(SceDisplayFrameBuf)
Definition display.h:57
SceDisplayErrorCode
Definition display.h:18
SceDisplayPixelFormat
Definition display.h:33
unsigned int height
framebuffer height
Definition display.h:62
void * base
Pointer to framebuffer.
Definition display.h:58
@ __SCE_DISPLAY_SETBUF
Definition display.h:44
@ SCE_DISPLAY_SETBUF_NEXTFRAME
Buffer change effective next frame.
Definition display.h:43
@ SCE_DISPLAY_SETBUF_IMMEDIATE
Buffer change effective immediately.
Definition display.h:41
@ SCE_DISPLAY_ERROR_INVALID_HEAD
Definition display.h:20
@ SCE_DISPLAY_ERROR_INVALID_PIXELFORMAT
Definition display.h:23
@ SCE_DISPLAY_ERROR_INVALID_UPDATETIMING
Definition display.h:26
@ SCE_DISPLAY_ERROR_INVALID_RESOLUTION
Definition display.h:25
@ SCE_DISPLAY_ERROR_INVALID_VALUE
Definition display.h:21
@ SCE_DISPLAY_ERROR_NO_PIXEL_DATA
Definition display.h:28
@ SCE_DISPLAY_ERROR_INVALID_ADDR
Definition display.h:22
@ SCE_DISPLAY_ERROR_NO_FRAME_BUFFER
Definition display.h:27
@ SCE_DISPLAY_ERROR_OK
Definition display.h:19
@ SCE_DISPLAY_ERROR_INVALID_PITCH
Definition display.h:24
@ SCE_DISPLAY_ERROR_NO_OUTPUT_SIGNAL
Definition display.h:29
@ SCE_DISPLAY_PIXELFORMAT_A2B10G10R10
Definition display.h:35
@ SCE_DISPLAY_PIXELFORMAT_A8B8G8R8
Definition display.h:34
Structure used with ksceDisplaySetFrameBuf to set/update framebuffer.
Definition display.h:56
unsigned int SceSize
Definition types.h:56