This repository contains implementations of various Computer Graphics Lab Tasks using C++ and the graphics.h library.
To set up your system for running C++ graphics programs:
-
Download TDM-GCC 32-Bit Compiler:
- TDM-GCC 32-Bit Compiler
- Install it to
C:\TDM-GCC-32.
-
Download Graphics Library:
- Graphics Library
- Extract the library and move:
graphics.handwinbgim.htoC:\TDM-GCC-32\include.libbgi.atoC:\TDM-GCC-32\lib.
-
Configure Code::Blocks:
- Open Code::Blocks →
Settings -> Compiler. - Set Compiler's installation directory to
C:\TDM-GCC-32. - Go to
Linker Settings -> Other Linker Optionsand add:-lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32
- Open Code::Blocks →
-
Run a Graphics Program:
- Open a
.cppfile, build, and run it in Code::Blocks.
- Open a
Happy Coding! 🎉

