# 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
## 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:Blocks
Path: 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

curating
- 粉丝: 2161
- 资源: 15
最新资源
- 【毕业设计】基于SpringBoot+Vue的图书管理系统【源码+论文+答辩ppt+开题报告+任务书】.zip
- 【毕业设计】基于springboot+sureness的面向REST API资源无状态认证权限管理系统【源码+论文+答辩ppt+开题报告+任务书】.zip
- 【毕业设计】基于springboot+mybatis学生管理系统【源码+论文+答辩ppt+开题报告+任务书】.zip
- 【毕业设计】基于SpringBoot的物业管理系统【源码+论文+答辩ppt+开题报告+任务书】.zip
- 【毕业设计】基于springboot的后台管理系统基本框架【源码+论文+答辩ppt+开题报告+任务书】.zip
- 【毕业设计】Python的Django-html企业物流管理系统源码(完整前后端+mysql+说明文档+LW+PPT).zip
- 【毕业设计】Python的Django-html某医院体检挂号系统源码(完整前后端+mysql+说明文档+LW+PPT).zip
- 基于一致性算法的直流微电网均流均压二级控制策略,涵盖分布式电源与非线性负载,实现电压电流恢复,仿真验证优秀性能与鲁棒性 顶刊复现,有意者加好友,粉丝价优惠 ,基于一致性算法的直流微电网均流均压二级控制
- 【毕业设计】基于SpringBoot的人事管理系统【源码+论文+答辩ppt+开题报告+任务书】.zip
- 【毕业设计】基于SpringBoot开发的酒店管理系统【源码+论文+答辩ppt+开题报告+任务书】.zip
- 【毕业设计】基于vue + springboot的学生成绩管理系统【源码+论文+答辩ppt+开题报告+任务书】.zip
- 【毕业设计】Python的Django-html人脸表情的分类算法的设计源码(完整前后端+mysql+说明文档+LW+PPT).zip
- 【毕业设计】基于vue+springboot的图书馆管理系统【源码+论文+答辩ppt+开题报告+任务书】.zip
- 【毕业设计】酒店管理系统(vue+springboot)【源码+论文+答辩ppt+开题报告+任务书】.zip
- 【毕业设计】图书管理系统(SpringBoot,thymeleaf) (2018, Archived)【源码+论文+答辩ppt+开题报告+任务书】.zip
- 【毕业设计】微人事是一个前后端分离的人力资源管理系统,项目采用SpringBoot+Vue开发。【源码+论文+答辩ppt+开题报告+任务书】.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈


