Surface.lock

Use this function to set up a surface for directly accessing the pixels.

struct Surface
@nogc
bool
lock
nothrow
(
)

Return Value

Type: bool

whether the call succeeded or not

Meta