A literate C program written in CWEB
that implements a classical 3D physics simulator and renderer in OpenGL.
Read lcp.pdf to understand the physics and the code.
Dependencies:
- pdflatex
- cwebx
- gcc
On Ubuntu Linux, this will install the above dependencies
sudo apt install texlive-latex-base texlive-latex-recommended texlive-latex-extra
cwebx gcc
On MacOS, using homebrew, this will install equivalent dependencies:
brew install mactex
CWEBx is available in source form here: http://wwwmathlabo.univ-poitiers.fr/~maavl/CWEBx/
How to 'weave' the lcp.w CWEB source code into a PDF
make
tlmgr install pdftexcmds