C++ implementation of the Tennis Racket Theorem or the Intermediate Axis Theorem.
https://www.comsol.com/blogs/why-do-tennis-rackets-tumble-the-dzhanibekov-effect-explained/
https://antongerdelan.net/opengl/
To install OpenGL in Ubuntu
sudo apt-get install mesa-utils
You would also need development version of GLEW. Install it from
sudo apt-get install libglew-dev
Check the OpenGl version using the following :-
glxinfo | grep "OpenGL version"
To install GLFW3
sudo apt-get update
sudo apt-get install libglfw3
sudo apt-get install libglfw3-dev
https://cis.gvsu.edu/~dulimarh/Okto/cis367/#forlinux
For Checking whether the libraries exist, Run the code from the following link -
Run the code as
g++ -o main main.cpp -lglfw -lGL -lGLEW
GLFW - a small C library that lets you create and manage windows, OpenGL and OpenGL ES contexts and Vulkan surfaces, enumerate monitors and video modes as well as handle inputs such as keyboard, mouse, joystick, clipboard and time.
Both printf and std::cout can be used in c++. Almost anything from c can be used in c++.\
- https://www.glfw.org/docs/3.3/build_guide.html
- https://stackoverflow.com/questions/34367424/building-glfw3-application-with-cmake-glfw-libraries-doesnt-set
- I think I will also need GLM (OpenGL Mathematics) for the project : https://learnopengl.com/Getting-started/Transformations
- https://www.cs.rpi.edu/~cutler/classes/advancedgraphics/S17/opengl_install_notes.php