Code Monkey home page Code Monkey logo

computergraphics_programs's Introduction

ComputerGraphics_Programs

It contains interesting graphics programs, implemented using graphics.h in C++

First graphics.h must be set up in your system (code::blocks recommended)!

Follow these steps:

  1. Uninstall the previous code::blocks

  2. Also don't forget to delete the CodeBlocks folder from appdata ("C:\Users\username\AppData\Roaming\CodeBlocks")

  3. Install the new code::blocks from the link https://sourceforge.net/projects/codeblocks/?source=top3_dlp_t5 (updated)

  4. Download graphics.h files from here

  5. Copy 'graphics.h' & 'winbgim.h' to the folder "C:\Program Files (x86)\CodeBlocks\MinGW\include" and 'libbgi.a' to "C:\Program Files (x86)\CodeBlocks\MinGW\lib"

  6. Open CodeBlocks : Settings -> Compiler

    Compiler settings tab

    a. Enable c++ 11

    Linker settings tab

    a. Add "C:\Program Files (x86)\CodeBlocks\MinGW\lib\libbgi.a" in 'Link libraries'

    b. Add in 'Other Linker Options':

     -lbgi
     
     -lgdi32
     
     -lcomdlg32
     
     -luuid
     
     -loleaut32
     
     -lole32
    
  7. Press OK to exit

  8. Now graphics.h can work with latest c++11 features also

computergraphics_programs's People

Contributors

imshashwataggarwal avatar k3v007 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.