Logo Search packages:      
Sourcecode: race version File versions

CL_Canvas * Blitter::clear_canvas ( CL_Canvas *  canvas  )  [static]

Sets all pixels of a canvas to zero

Definition at line 231 of file blitter.cpp.

  unsigned char* buffer;
  buffer = static_cast<unsigned char*>(canvas->get_data());
  memset(buffer, 0, sizeof(unsigned char) * canvas->get_pitch() * canvas->get_height());

  return canvas;

Generated by  Doxygen 1.6.0   Back to index