A good book on drawing algorithms, preferably in C or C ++
I need a recommendation for a good tutorial resource on drawing algorithms. I've found many books on algorithms, but it's mostly vector and matrix linear algebra, which doesn't cover the topics I'm interested in:
efficient drawing of primitives and curves
efficient filling of primitives and paths
multi-sampling or similar techniques for smooth painting
sub-pixel painting
linear, radial, conical and other types of gradients
etc...
I'm not interested in a book on some APIs that implements features like Cairo, GDI, Qt or similar, but the implementation details themselves. I'm not interested in large and complex math formulas, I prefer a more visual, intuitive approach with sample code, pseudocode works great too.
Also, before anyone rushed to close the question - I bothered to find something similar. Thanks in advance!
I can usually find what I need in this book
"Computer Graphics: Principles and Practice in C" by James D. Foley, Andris van Dam, Stephen C. Feiner, John F. Hughes
I can recommend two books:
- Gaming Tricks for Windows Game Programming - More on 2D Graphics
- 3D Game Tricks Programming Gurus-Advanced 3D Graphics and Rasterization - More on 3D
and of course "Computer Graphics: Principles and Practice in C" ... as mentioned in previous answers