I get asked this a lot, so I figure this is a good place to put a list of books I recommend anyone wanting to get into game or graphics programming. If you have one - feel free to add to it! The below links are to Amazon, but there are used versions around for a bit cheaper if you're willing to look. IMO, they are worth every penny though if you can manage it.
- Game Engine Architecture, 3rd edition by Jason Gregory - https://www.amazon.com/Engine-Architecture-Third-Jason-Gregory/dp/1138035459/ Also see https://www.gameenginebook.com/ NOTE! There is a 4th edition coming out in April, but in the meantime I still recommend this one.
- Real-Time Rendering, Fourth Edition https://www.amazon.com/Real-Time-Rendering-Fourth-Tomas-Akenine-M%C3%B6ller/dp/1138627003/
- Game Physics Engine Development, 2nd Edition by Ian Millington - https://www.amazon.com/Game-Physics-Engine-Development-Commercial-Grade/dp/0123819768
- C Programming Language, 2nd Edition by Brian W. Kernighan and Dennis M. Ritchie https://www.amazon.com/Programming-Language-2nd-Brian-Kernighan/dp/0131103628/
I will add to this list as time goes on.