Question: how long does it take to learn opengl?
Answer: In conclusion, in my opinion, it takes 2 - 4 months to design a simple game, assuming that you know c\c++ and basic math, about 1 year for direct x and about 6 months for opengl.