Logo Search packages:      
Sourcecode: palapeli version File versions  Download package

void Palapeli::Pattern::slice ( const QImage &  image  )  [inherited]

For internal use only.

The Palapeli game engine will call this function to create pieces from a given image. You will not need this function, but you will need to implement the actual slicing in the doSlice function.

See also:
doSlice

Definition at line 95 of file pattern.cpp.

References Palapeli::Pattern::doSlice().

{
      p->m_imageSize = image.size();
      qsrand(time(0));
      doSlice(image);
}


Generated by  Doxygen 1.6.0   Back to index