-
run.bat <filename>
(windows
) -
./run.sh <filename>
(linux
)
- You have to give
(x1,y1)
and(x2,y2)
as input in console.
- You have to give
(x1,y1)
and(x2,y2)
as input in console.
- You have to give
(x,y)
andr
as input in console.
- You have to give
(x,y)
andr
as input in console.
- click on the window to draw points eventually line will be drawn and clipped.
- click on the window to draw points eventually polygon will be drawn and clipped.
- type c to clear screen.
- Download the pre-package version for MinGW (freeglut 2.8.0 MinGW Package) available at http://www.transmissionzero.co.uk/software/freeglut-devel/.
- Unzip
- copy header files from
include\GL
toMINGW_HOME>\include\GL
lib
toMINGW_HOME>\lib
- shared library from
bin
to<MINGW_HOME>\bin
I followed setup of OpenGL from here https://www3.ntu.edu.sg/home/ehchua/programming/opengl/HowTo_OpenGL_C.html