Hello everyone, I'm a first year (just finished) software engineer student and i am looking to start making my first game, nothing that complex ofcourse it is meant as a learning experience, however i am incapable of finding any proper tutorials on the use of say OpenGL or DirectX. All i have found are pretty much walktroughs on how to do x, y or z, but i am yet to find why i am writing down a certain piece of code, which in my opinion is what a true tutorial should do. Even though i only understand the basics OOP(i know how to make and use objects but i still feel my code is bulky and littered with mistakes) and somewhat comprehand data structures i think that creating a game would be an invaluable experience. Thus i would greatly apretiate if you can point me in the right direction.
P.S. Please don't even consider engines as an answer, i want to create everything from scratch.