Skip to content

Latest commit

 

History

History
44 lines (26 loc) · 1.39 KB

README.md

File metadata and controls

44 lines (26 loc) · 1.39 KB

Computer Graphics Lab (CSE-3206)

This repository contains implementations of various Computer Graphics Lab Tasks using C++ and the graphics.h library.

Graphics Programming Setup with TDM-GCC and Code::Blocks

To set up your system for running C++ graphics programs:

  1. Download TDM-GCC 32-Bit Compiler:

  2. Download Graphics Library:

    • Graphics Library
    • Extract the library and move:
      • graphics.h and winbgim.h to C:\TDM-GCC-32\include.
      • libbgi.a to C:\TDM-GCC-32\lib.
  3. 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  
      
  4. Run a Graphics Program:

    • Open a .cpp file, build, and run it in Code::Blocks.

Moving Car and Sun Output:

Moving Car and Sun

natural scenery Output:

natural scenery Output

Happy Coding! 🎉