Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 4 days 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 (6 days ago)
- Default Branch: master
- Last Pushed: 2024-12-30T18:31:50.000Z (6 days ago)
- Last Synced: 2024-12-30T19:29:06.946Z (6 days ago)
- Topics: c, computer-graphics, computer-graphics-lab, cpp, graphics-algorithms, opengl, winbgim
- Language: C++
- Homepage:
- Size: 2.58 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:
![Moving Car and Sun](https://github.com/user-attachments/assets/af28bda3-0b62-43b6-977f-28b3010646d3)
### natural scenery Output:
![natural scenery Output](https://github.com/user-attachments/assets/6bc31a89-8df1-4568-9b52-41a11926e276)
**Happy Coding! 🎉**