mirror of
https://github.com/IllusionMan1212/vitasdk-odin.git
synced 2026-10-24 02:12:38 +00:00
added kernel libraries bindings and cleaned up todos
This commit is contained in:
+12
-1
@@ -3,7 +3,6 @@ package display
|
||||
import "core:c"
|
||||
import sce "../common"
|
||||
|
||||
// TODO: should be c.int
|
||||
SceDisplayErrorCode :: enum c.uint {
|
||||
OK = 0,
|
||||
INVALID_HEAD = 0x80290000,
|
||||
@@ -54,3 +53,15 @@ when size_of(rawptr) == 4 {
|
||||
#assert(size_of(SceDisplayFrameBuf) == 0x18)
|
||||
}
|
||||
|
||||
/**
|
||||
* Extended framebuffer information
|
||||
*/
|
||||
SceDisplayFrameBufInfo :: struct {
|
||||
size: sce.Size, //!< sizeof(SceDisplayFrameBufInfo)
|
||||
pid: sce.UID, //!< PID of the process owning this framebuffer
|
||||
vblankcount: c.uint, //!< Amount of VBlanks this framebuffer has been displayed
|
||||
paddr: c.uintptr_t, //!< Physical address
|
||||
framebuf: SceDisplayFrameBuf, //!< SceDisplayFrameBuf information
|
||||
resolution: c.uint, //!< Resolution
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user