Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 619 Bytes

README.md

File metadata and controls

22 lines (14 loc) · 619 Bytes

ray-tracing-opengl

Implementation of Ray Tracing Algorithm

Output

output

OpenGL on Linux

No extra zip/ dll files are required. Since GLUT (OpenGL Utility Toolkit) depends upon OpenGL and a number of other related libraries, if we install GLUT then OpenGL will be automatically be installed.

Run the following commands to install OpenGL.

sudo apt-get update

sudo apt-get install libglu1-mesa-dev freeglut3-dev mesa-common-dev

Replace #include <glut.h> with #include <GL/glut.h>

Build & run using the following command :

g++ main.cpp -o main.out -lglut -lGLU -lGL

./main.out