https://github.com/mdmasum23/computer-graphics-lab
Academic Lab Course | 18th Batch | Computer Science & Engineering (CSE) 📍Mawlana Bhashani Science and Technology University (MBSTU)
https://github.com/mdmasum23/computer-graphics-lab
c computer-graphics computer-graphics-lab cpp graphics-algorithms opengl winbgim
Last synced: about 2 months ago
JSON representation
Academic Lab Course | 18th Batch | Computer Science & Engineering (CSE) 📍Mawlana Bhashani Science and Technology University (MBSTU)
- Host: GitHub
- URL: https://github.com/mdmasum23/computer-graphics-lab
- Owner: MdMasum23
- Created: 2024-12-30T11:18:14.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-01-06T09:19:28.000Z (over 1 year ago)
- Last Synced: 2025-02-21T05:15:35.610Z (over 1 year ago)
- Topics: c, computer-graphics, computer-graphics-lab, cpp, graphics-algorithms, opengl, winbgim
- Language: C++
- Homepage:
- Size: 3.04 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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**:
- [TDM-GCC 32-Bit Compiler](https://jmeubank.github.io/tdm-gcc/)
- Install it to `C:\TDM-GCC-32`.
2. **Download Graphics Library**:
- [Graphics Library](https://drive.google.com/file/d/1z19xxKm2YseQi7QGxqCCdJ-lLfiEGuCm/view)
- 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:

### natural scenery Output:

**Happy Coding! 🎉**