logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_RectToFRect - Convert an SDL_Rect

Availability

       This function is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.10                                 SDL_RectToFRect(3)

Function Parameters

rect   a pointer to an SDL_Rect .

       frect  a pointer filled in with the floating point representation of rect .

Header File

       Defined in SDL3/SDL_rect.h

Name

       SDL_RectToFRect - Convert an SDL_Rect
        to SDL_FRect

Synopsis

#include"SDL3/SDL.h"SDL_FORCE_INLINEvoidSDL_RectToFRect(constSDL_Rect*rect,SDL_FRect*frect);

Thread Safety

       It is safe to call this function from any thread.

See Also