Coder Social home page Coder Social logo

line-drawing-algorithm-in-cpp's Introduction

line-drawing-algorithm-in-cpp

DDA line Drawing algorithm

First of all you need to Download Graphics Header File Setup for CodeBlocks and Dev cpp.zip(all the files are provided)

Instruction for adding graphics file in Code::Blocks


  1. Copy "graphics.h" and "winbgim.h" files to "include" folder of CodeBlocks directory. Default location is ("C:\Program Files (x86)\CodeBlocks\MinGW\include")

  2. Copy "libbgi.a" to file to "lib" folder of CodeBlocks directory. Default location is ("C:\Program Files (x86)\CodeBlocks\MinGW\lib")

  3. Open CodeBlocks and go to (Settings > Compiler > Linker Settings)

  4. Link Libraries (left), Click on "Add" button, then click "Browse" and select the "libbbgi.a" file that you have copied in CodeBlocks directory.. Default location is (C:\Program Files (x86)\CodeBlocks\MinGW\lib\libbgi.a) and then click "Open" button.

  5. Other linker option (right), copy the text below and paste there -lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32

  6. Click "OK"

Done...

Instruction for adding graphics file in Dev C++


  1. Copy "graphics.h" and "winbgim.h" files to "include" folder of CodeBlocks directory. Default location is ("C:\Program Files (x86)\Dev-Cpp\MinGW\include")

  2. Copy "libbgi.a" to file to "lib" folder of CodeBlocks directory. Default location is ("C:\Program Files (x86)\Dev-Cpp\MinGW\lib")

  3. Open Dev-Cpp and go to (Tools > Compiler Options > Compiler)

  4. Yo can see this command -lglu32 -lglut32 -lopengl32

  5. After the -lopengl32,add space and copy the text below and paste there -lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32

  6. Click "OK"

Done...

line-drawing-algorithm-in-cpp's People

Contributors

ruwan-duminda avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.