grimfang4 / sdl-gpu

A library for high-performance, modern 2D graphics with SDL written in C.
MIT License
1.19k stars 123 forks source link

`SDL_GetRendererInfo` to get maximum texture size #221

Closed aganm closed 2 years ago

aganm commented 3 years ago

The SDL renderer API has this function

int SDL_GetRendererInfo(SDL_Renderer * renderer, SDL_RendererInfo * info);

This function fills a SDL_RendererInfo struct with int max_texture_width and int max_texture_height in it.

What is SDL_gpu's way of obtaining maximum texture size?

aganm commented 2 years ago

I used the opengl functions.