Tag Archives: rectangle

(Haskell) Interval of integral points

These functions return all points (pairs or triples of coordinates) within a given rectangle or box. “pam“ is the reverse map function which was defined [here](http://snipplr.com/view/18351/reverse-map/).

Posted in Haskell | Also tagged , , , , | Leave a comment

Double buffering with a back buffer in VC++

A common problem when drawing with GDI in VC++ is that the screen might flicker when you’re doing a lot of drawing. This problem can be overcome by drawing on a so called back buffer. The back buffer is then drawn at once. I’ve created a Win32 project in VC++ to demonstrate this. The first [...]

Posted in C++ | Also tagged , , , , , , , , , , , | Leave a comment