SDLRect as lean structure
This commit is contained in:
1 parent
38aa7e316b
commit
37fbf85118
4 files changed
+17
-4
No files matched your search
@@ -44,6 +44,13 @@ def SDL_TEXTUREACCESS_STATIC : UInt32 := 0x0
|
||||
def SDL_TEXTUREACCESS_STREAMING : UInt32 := 0x1
|
||||
def SDL_TEXTUREACCESS_TARGET :UInt32 := 0x2
|
||||
|
||||
structure SDLRect where
|
||||
x : Int32
|
||||
y : Int32
|
||||
w : Int32
|
||||
h : Int32
|
||||
deriving Repr
|
||||
|
||||
@[extern "sdl_init"]
|
||||
opaque init : UInt32 → IO UInt32
|
||||
|
||||
@@ -83,7 +90,7 @@ opaque renderClear : @& SDLRenderer → SDLIO Int32
|
||||
opaque renderPresent : @& SDLRenderer → IO Unit
|
||||
|
||||
@[extern "sdl_render_fill_rect"]
|
||||
opaque renderFillRect : @& SDLRenderer → Int32 → Int32 → Int32 → Int32 → SDLIO Int32
|
||||
opaque renderFillRect : @& SDLRenderer → @& SDLRect → SDLIO Int32
|
||||
|
||||
@[extern "sdl_delay"]
|
||||
opaque delay : UInt32 → IO Unit
|
||||
|
||||
Reference in new issue
Block a user