PixelFormat.hasAlpha

Wraps SDL_ISPIXELFORMAT_ALPHA which checks whether the dsdl2.PixelFormat is capable of storing alpha value

class PixelFormat
const @property @trusted
bool
hasAlpha
()

Return Value

Type: bool

true if it can have an alpha channel, otherwise false

Meta