Variable naming cases differ between snake/camel cases even they are at same row? And variable naming is almost too consistent and "clear" to be written as human.
Uses GCC instrinsics that are not in MSVC, so not cross-platform or "C99 syntax".
No comments in code to explain/clarify anything at all.
Besides, at least in my real world first hand experience, in Windows, you cannot load all OpenGL functions just by using wglGetProcAddress(), because it doesn't return function pointers to those basic OpenGL functions that exported by opengl32.dll. And if you want to check valid pointer addresses, in Windows you should also consider all return addresses below 4 as invalid/"NULL". I wrote this note in my OpenGL function pointer loader as comment to remind myself what I learned as first hand experience when actually writing the code myself and struggling through the messy reality :)
Is this vibe-coded?
Variable naming cases differ between snake/camel cases even they are at same row? And variable naming is almost too consistent and "clear" to be written as human.
Uses GCC instrinsics that are not in MSVC, so not cross-platform or "C99 syntax".
No comments in code to explain/clarify anything at all.
Besides, at least in my real world first hand experience, in Windows, you cannot load all OpenGL functions just by using wglGetProcAddress(), because it doesn't return function pointers to those basic OpenGL functions that exported by opengl32.dll. And if you want to check valid pointer addresses, in Windows you should also consider all return addresses below 4 as invalid/"NULL". I wrote this note in my OpenGL function pointer loader as comment to remind myself what I learned as first hand experience when actually writing the code myself and struggling through the messy reality :)