How do you get the BPP for a texture?

…or for a window, for that matter? I can’t seem to find any APIs for finding
how many BPP a texture or window uses.

…or for a window, for that matter?? I can’t seem to find any APIs for
finding
how many BPP a texture or window uses.

SDL_QueryTexture? The “format” parameter, then use
SDL_PixelFormatEnumToMasks to get the bits per pixel part from that.
For the window, get that through SDL_GetCurrentDisplayMode, I guess?On Wed, Jul 1, 2009 at 11:18 PM, Mason Wheeler wrote: