vitasdk
Documentation of the vitasdk
sharedfb.h
Go to the documentation of this file.
1 
7 #ifndef _PSP2_SHAREDFB_H_
8 #define _PSP2_SHAREDFB_H_
9 
10 #include <vitasdk/build_utils.h>
11 #include <psp2/types.h>
12 #include <psp2common/defs.h>
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 typedef struct SceSharedFbInfo {
19  void *fb_base;
20  int fb_size;
21  void *fb_base2;
22  int unk0[6];
23  int stride;
24  int width;
25  int height;
26  int unk1;
27  int index;
28  int unk2[4];
29  int vsync;
30  int unk3[3];
33 
34 SceUID _sceSharedFbOpen(int index, int sysver);
39 
40 static inline
41 SceUID sceSharedFbOpen(int index)
42 {
43  return _sceSharedFbOpen(index, PSP2_SDK_VERSION);
44 };
45 
46 #ifdef __cplusplus
47 }
48 #endif
49 
50 #endif /* _PSP2_SHAREDFB_H_ */
#define PSP2_SDK_VERSION
Definition: defs.h:11
int unk3[3]
Definition: sharedfb.h:30
int sceSharedFbGetInfo(SceUID fb_id, SceSharedFbInfo *info)
int unk0[6]
Definition: sharedfb.h:22
void * fb_base
Definition: sharedfb.h:19
int width
Definition: sharedfb.h:24
VITASDK_BUILD_ASSERT_EQ(0x58, SceSharedFbInfo)
int unk2[4]
Definition: sharedfb.h:28
int unk1
Definition: sharedfb.h:26
int stride
Definition: sharedfb.h:23
int sceSharedFbBegin(SceUID fb_id, SceSharedFbInfo *info)
int vsync
Definition: sharedfb.h:29
int height
Definition: sharedfb.h:25
int sceSharedFbClose(SceUID fb_id)
void * fb_base2
Definition: sharedfb.h:21
int sceSharedFbEnd(SceUID fb_id)
SceUID _sceSharedFbOpen(int index, int sysver)
int index
Definition: sharedfb.h:27
int fb_size
Definition: sharedfb.h:20
Definition: sharedfb.h:18
int SceUID
UIDs are used to describe many different kernel objects.
Definition: types.h:90