Skip to content

Commit

Permalink
Add updateYUVTexture(), a binding to SDL_UpdateYUVTexture()
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowElf37 authored and dom96 committed Feb 20, 2021
1 parent 014716c commit da680bc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sdl2.nim
Expand Up @@ -940,6 +940,9 @@ proc getTextureBlendMode*(texture: TexturePtr;

proc updateTexture*(texture: TexturePtr; rect: ptr Rect; pixels: pointer;
pitch: cint): SDL_Return {.importc: "SDL_UpdateTexture", discardable.}
proc updateYUVTexture*(texture: TexturePtr; rect: ptr Rect; Yplane: pointer;
Ypitch: cint; Uplane: pointer; Upitch: cint; Vplane: pointer; Vpitch: cint): SDL_Return {.
importc: "SDL_UpdateYUVTexture", discardable.}

proc lockTexture*(texture: TexturePtr; rect: ptr Rect; pixels: ptr pointer;
pitch: ptr cint): SDL_Return {.importc: "SDL_LockTexture", discardable.}
Expand Down

0 comments on commit da680bc

Please sign in to comment.