Simple example of sprite animation with legacy OpenGL
After compile, run the executable ./AnimatedSprit
To change the animation, use j
to decrease the index and k
to increase it.
If you use Windows, I recommend use MSYS2 to compile the code in unix-like environment.
Sprite image by: https://opengameart.org/