sdlGetRenderTextureAddressMode function render
Get the texture addressing mode used in SDL_RenderGeometry().
\param renderer the rendering context. \param u_mode a pointer filled in with the SDL_TextureAddressMode to use for horizontal texture coordinates in SDL_RenderGeometry(), may be NULL. \param v_mode a pointer filled in with the SDL_TextureAddressMode to use for vertical texture coordinates in SDL_RenderGeometry(), may be NULL. \returns true on success or false on failure; call SDL_GetError() for more information.
\since This function is available since SDL 3.4.0.
\sa SDL_SetRenderTextureAddressMode
extern SDL_DECLSPEC bool SDLCALL SDL_GetRenderTextureAddressMode(SDL_Renderer *renderer, SDL_TextureAddressMode *u_mode, SDL_TextureAddressMode *v_mode)
Implementation
bool sdlGetRenderTextureAddressMode(
Pointer<SdlRenderer> renderer,
Pointer<Int32> uMode,
Pointer<Int32> vMode,
) {
final sdlGetRenderTextureAddressModeLookupFunction = _libSdl
.lookupFunction<
Uint8 Function(
Pointer<SdlRenderer> renderer,
Pointer<Int32> uMode,
Pointer<Int32> vMode,
),
int Function(
Pointer<SdlRenderer> renderer,
Pointer<Int32> uMode,
Pointer<Int32> vMode,
)
>('SDL_GetRenderTextureAddressMode');
return sdlGetRenderTextureAddressModeLookupFunction(renderer, uMode, vMode) ==
1;
}