Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dev-saiful/computer-graphics-library
https://github.com/dev-saiful/computer-graphics-library
Last synced: about 6 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/dev-saiful/computer-graphics-library
- Owner: dev-saiful
- Created: 2023-08-04T17:55:18.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-08-23T16:41:34.000Z (about 1 year ago)
- Last Synced: 2023-08-23T18:16:01.920Z (about 1 year ago)
- Language: C++
- Size: 38.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Graphics-Library
Download required libraries from here## It is a tradition to use Turbo C for graphic in C/CPP. But it's also a pain in the neck. Here we are using Code::Blocks IDE, which will ease out our work.
Steps to run graphic code in CodeBlocks
## 1. Install Code::Blocks
Make sure you have installed Code::Blocks IDE on your machine. If you don't have this IDE or have any issue with compiler download and install it from here. http://sourceforge.net/projects/codeblocks/files/Binaries/16.01/Windows/codeblocks-16.01mingw-setup.exe
version may be changed for you.
## 2. Download the required header files
We need few files to be included in the lib folder of Code::Blocks.
Download the files from here https://github.com/SagarGaniga/Graphics-Library## 3. Include graphics.h and winbgim.h
Copy and Paste the graphics.h and winbgim.h files into include folder of Code::Blocks directory.Path: C:\Program Files (x86)\CodeBlocks\MinGW\include
## 4. Include libbgi.a
Copy and paste libbgi.a file in the lib folder of Code:BlocksPath: C:\Program Files (x86)\CodeBlocks\MinGW\lib
## 5. Add Link Libraries in Linker Setting
* In the Code::Blocks application go to, Settings > Compiler* In the Global Compiler setting, click on the Linker Settings
* In Link Libraries, Add and browse to C:\Program Files (x86)\CodeBlocks\MinGW\lib\ and select libbgi.a.
* Paste this in the Other Linker Option tab of Linker Settings (i.e. on the right-hand side)
-lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32
* Save the setting and restart the application
### To test the setting copy paste any computer graphics code from
https://github.com/SagarGaniga/computer-graphics