createTexture pixelformat

This commit is contained in:
Greg Shuflin committed 2025-12-24 02:42:04 -08:00
1 parent e21b84039b
commit 5b96cc352f
2 files changed
+3 -6

No files matched your search

+1 -2
View File
@@ -121,9 +121,8 @@ end SDLSurface
-- @& means "by reference"
opaque loadImage : (path : @& System.FilePath) → SDLIO SDLSurface
-- TODO: add pixelformat and textureaccess params
@[extern "sdl_create_texture"]
opaque createTexture (renderer: @& SDLRenderer) (textureAccess: UInt32) (w: UInt32) (h: UInt32): SDLIO SDLTexture
opaque createTexture (renderer: @& SDLRenderer) (pixelFormat: UInt32) (textureAccess: UInt32) (w: UInt32) (h: UInt32): SDLIO SDLTexture
@[extern "sdl_create_texture_from_surface"]
opaque createTextureFromSurface