Saturday, September 6, 2008

Draw Circle In A Fast Way with Direct Memory Access

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *




To draw circle in a fast way, the first thing we need to do is to get the direct access to the memory buffer. I assume that you already know how to get the pointer to access the memory directly.

You can download the source code here. The code will draw circle at a very high speed. The idea behind is pretty simple, try not to use any floating point in the calculation process.


0 comments: