bazz

Fog Painting Method

Mar 20th, 2013
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.30 KB | None | 0 0
  1. void SdlApplication::onPaint(Fog::Painter *p)
  2. {  
  3.     p->setSource(Argb32(0xFFFFFFFF));
  4.     p->fillAll();
  5.    
  6.     PointF pt(movex,movey);
  7.    
  8.     p->setTransform(tf);
  9.     p->translate(pt);
  10.    
  11.     p->save();
  12.    
  13.     svgDocument.render(p);
  14.    
  15.     p->restore();
  16.    
  17.     p->flush(PAINTER_FLUSH_SYNC);
  18.    
  19.     p->resetTransform();
  20. }
Advertisement
Add Comment
Please, Sign In to add comment