3
3
u/deftware Sep 23 '24
GL 2.1 is pretty antiquated, but it will get you up and running and most of the concepts still apply today, like creating vertex buffer objects and issuing draw calls with them. However, modern OpenGL doesn't have any hard-coded vertex attributes like position/color/normal/texcoords, you get to specify how the data in the buffers is to be interpreted - whether as 8-bit integers or 16-bit floats, 16-bit integers (signed or unsigned), or 32-bit floats, etc.. and how they are used by shaders.
GL2.1 will get you acquainted with the whole general idea of graphics programming though, that's for sure! ;]
2
u/moschles Sep 23 '24
I need a good book on contemporary C++. It looks nothing like how I remember it from years ago.
-5
0
Sep 24 '24
[deleted]
2
1
u/moschles Sep 24 '24
std::array and std::vector for when you can't know the size of array at compile time and std::format for outputting nice text are godsends.
I know those. But modern C++ is like, they are using for-comprehensions in the tutorial code.
1
1
-5
8
u/corysama Sep 23 '24
Man. Back in 1999 I saw Coplien talk about his other classic book
https://www.amazon.com/Multi-Paradigm-Design-C-James-Coplien/dp/0201824671
It was so amazing I immediately went out and bought a copy.
One of these years I should actually read it 😅