remove link_prefixes

This commit is contained in:
2024-05-13 16:04:23 +02:00
parent 8a5e2870f6
commit 205e9a4c64
78 changed files with 1447 additions and 1568 deletions
+17 -18
View File
@@ -6,7 +6,6 @@ import sce "../common"
foreign import _display "system:SceDisplay_stub"
foreign import displaykern "system:SceDisplayForDriver_stub"
@(link_prefix = "sceDisplay")
foreign _display {
/**
* Set/Update framebuffer parameters
@@ -17,7 +16,7 @@ foreign _display {
* @return 0 on success, < 0 on error.
* @note - If NULL is provided as pParam pointer, output is blacked out.
*/
SetFrameBuf :: proc(pParam: ^SceDisplayFrameBuf, sync: SceDisplaySetBufSync) -> c.int ---
sceDisplaySetFrameBuf :: proc(pParam: ^SceDisplayFrameBuf, sync: SceDisplaySetBufSync) -> c.int ---
/**
* Get current framebuffer parameters
@@ -29,12 +28,12 @@ foreign _display {
*
* @return 0 on success, < 0 on error.
*/
GetFrameBuf :: proc(pParam: ^SceDisplayFrameBuf, sync: SceDisplaySetBufSync) -> c.int ---
sceDisplayGetFrameBuf :: proc(pParam: ^SceDisplayFrameBuf, sync: SceDisplaySetBufSync) -> c.int ---
/**
* Primary display index
*/
GetPrimaryHead :: proc() -> c.int ---
sceDisplayGetPrimaryHead :: proc() -> c.int ---
/**
* Get current number of fps for the current screen mode.
@@ -44,7 +43,7 @@ foreign _display {
* @return 0 on success, < 0 on error.
* @note - This function returns a theoretical value, this might not be the exact frame rate.
*/
GetRefreshRate :: proc(pFps: ^c.float) -> c.int ---
sceDisplayGetRefreshRate :: proc(pFps: ^c.float) -> c.int ---
/**
* Get maximum framebuffer resolution
@@ -54,53 +53,53 @@ foreign _display {
*
* @return 0 on success, < 0 on error.
*/
GetMaximumFrameBufResolution :: proc(width: ^c.int, height: ^c.int) -> c.int ---
sceDisplayGetMaximumFrameBufResolution :: proc(width: ^c.int, height: ^c.int) -> c.int ---
/**
* Number of vertical blank pulses up to now
*/
GetVcount :: proc() -> c.int ---
sceDisplayGetVcount :: proc() -> c.int ---
/**
* Number of vertical blank pulses up to now for a display
*
* @param[in] display - Display index
*/
GetVcountInternal :: proc(display: c.int) -> c.int ---
sceDisplayGetVcountInternal :: proc(display: c.int) -> c.int ---
/**
* Wait for vertical blank start
*/
WaitVblankStart :: proc() -> c.int ---
sceDisplayWaitVblankStart :: proc() -> c.int ---
/**
* Wait for vertical blank start with callback
*/
WaitVblankStartCB :: proc() -> c.int ---
sceDisplayWaitVblankStartCB :: proc() -> c.int ---
/**
* Wait for vertical blank start after specified number of vertical periods
*
* @param[in] vcount - Number of vertical periods before waiting for vertical blank start
*/
WaitVblankStartMulti :: proc(vcount: c.uint) -> c.int ---
sceDisplayWaitVblankStartMulti :: proc(vcount: c.uint) -> c.int ---
/**
* Wait for vertical blank start with callback after specified number of vertical periods
*
* @param[in] vcount - Number of vertical periods before waiting for vertical blank start
*/
WaitVblankStartMultiCB :: proc(vcount: c.uint) -> c.int ---
sceDisplayWaitVblankStartMultiCB :: proc(vcount: c.uint) -> c.int ---
/**
* Wait for vertical blank start since last update of framebuffer
*/
WaitSetFrameBuf :: proc() -> c.int ---
sceDisplayWaitSetFrameBuf :: proc() -> c.int ---
/**
* Wait for vertical blank start with callback since last update of framebuffer
*/
WaitSetFrameBufCB :: proc() -> c.int ---
sceDisplayWaitSetFrameBufCB :: proc() -> c.int ---
/**
* Wait for vertical blank start after specified number of vertical periods
@@ -108,7 +107,7 @@ foreign _display {
*
* @param[in] vcount - Number of vertical periods before waiting for vertical blank start
*/
WaitSetFrameBufMulti :: proc(vcount: c.uint) -> c.int ---
sceDisplayWaitSetFrameBufMulti :: proc(vcount: c.uint) -> c.int ---
/**
* Wait for vertical blank start with callback after specified number of vertical periods
@@ -116,21 +115,21 @@ foreign _display {
*
* @param[in] vcount - Number of vertical periods before waiting for vertical blank start
*/
WaitSetFrameBufMultiCB :: proc(vcount: c.uint) -> c.int ---
sceDisplayWaitSetFrameBufMultiCB :: proc(vcount: c.uint) -> c.int ---
/**
* Register callback to be used at each vertical blank start
*
* @param[in] uid - Callback UID
*/
RegisterVblankStartCallback :: proc(uid: sce.UID) -> c.int ---
sceDisplayRegisterVblankStartCallback :: proc(uid: sce.UID) -> c.int ---
/**
* Unregister callback used at each vertical blank start
*
* @param[in] uid - Callback UID
*/
UnregisterVblankStartCallback :: proc(uid: sce.UID) -> c.int ---
sceDisplayUnregisterVblankStartCallback :: proc(uid: sce.UID) -> c.int ---
}
foreign displaykern {