Surface.lock

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

struct Surface
bool
lock
()

Return Value

Type: bool

whether the call succeeded or not

Meta