Function Texture.pixelFormat

Wraps SDL_QueryTexture which gets the dsdl2.PixelFormat of the dsdl2.Texture

const(PixelFormat) pixelFormat() @property @trusted const;

Returns

const proxy to the dsdl2.PixelFormat of the dsdl2.Texture

Throws

dsdl2.SDLException if failed to query the information