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.h
andwinbgim.h
toC:\TDM-GCC-32\include
.libbgi.a
toC:\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 Options
and add:-lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32
- Open Code::Blocks →
-
Run a Graphics Program:
- Open a
.cpp
file, build, and run it in Code::Blocks.
- Open a
Happy Coding! 🎉