Alternatives to graphics.h

14,910

Allegro or SDL libraries may be for you.

I would also suggest not to use Bloodshed Dev-C++ as it is also a little outdated. You may use MS VC++ Express or Code::Blocks which are both free.

Share:
14,910
nikhil
Author by

nikhil

I'm an open source enthusiast and an avid programmer and a Manchester United fan. Based out of New Jersey these days, exploring the world and learning new things. #SOreadytohelp

Updated on July 20, 2022

Comments

  • nikhil
    nikhil almost 2 years

    We have an introductory course to Computer Graphics this semester in college. There is no recommended way on how to go about the Lab exercises. Most of the students are resorting to Turbo C and the inbuilt graphics.h header file.

    I'm a little apprehensive about this, Turbo C is a thing of the 70's and to learn stuff on it seems pointless to me. I can set up the graphics.h for Bloodshed Dev-C++ compiler too or maybe the libgraph on linux systems.

    Are there some alternatives to the Borland graphics.h ? I'm looking for relatively modern solutions that are relatively simple in the sense that they don't add too much boilerplate code etc and yet implement the same functionality.

    To give a little more information about the tasks that we'd be doing, We'll be implementing basic Graphics Algorithms like the DDA algorithm, Bresenham's Algorithms, Scan Conversion etc. So I need to be able to plot pixels on the screen, I don't need a really high level library that can draw the primitives like lines and circles on its own. If it can its great but to learn I should be able to plot raw pixels on the screen.

  • nikhil
    nikhil almost 13 years
    Unfortunately we are tied to C++ so JavaScript won't work for us.
  • Ray Toal
    Ray Toal almost 13 years
    I kinda figured, but thought I would plug it anyway. I've dabbled in Tk for Perl a while back.... there is port to C++: cpptk.sourceforge.net.
  • Yankes
    Yankes over 9 years
    alternative MinGW with NetBeans or Eclipse IDE