Reference Manual - 1.8.0
IDirectFBSurface   Clear

Clear the surface and its depth buffer if existent.

DFBResult Clear (
  IDirectFBSurface   * thiz,
  u8   r,
  u8   g,
  u8   b,
  u8   a
);

Fills the whole (sub) surface with the specified color while ignoring drawing flags and color of the current state, but limited to the current clip.

As with all drawing and blitting functions the backbuffer is written to. If you are initializing a double buffered surface you may want to clear both buffers by doing a Clear-Flip-Clear sequence.

Creative Commons License This work is licensed under a Creative Commons Attribution-Share Alike 3.0 License