sdlGetDayOfYear function
Get the day of year for a calendar date.
\param year the year component of the date.
\param month the month component of the date.
\param day the day component of the date.
\returns the day of year 0-365
if the date is valid or -1 on failure;
call SDL_GetError() for more information.
\since This function is available since SDL 3.1.3.
extern SDL_DECLSPEC int SDLCALL SDL_GetDayOfYear(int year, int month, int day)
Implementation
int sdlGetDayOfYear(int year, int month, int day) {
final sdlGetDayOfYearLookupFunction = libSdl3.lookupFunction<
Int32 Function(Int32 year, Int32 month, Int32 day),
int Function(int year, int month, int day)>('SDL_GetDayOfYear');
return sdlGetDayOfYearLookupFunction(year, month, day);
}