simple graphics in gcc (mingw3.1)

Posted on 2006-05-10
Last Modified: 2012-06-22
i am using gcc - mingw for programming. I want to draw simple graphics, like drawing a line/ rectangle, changing background/foreground color, text size color, goto xy etc. Earlieri have worked in borlandc where this all can be done using simple call of build-in functions provided in conio.h and graphics.h ... but these are not working in gcc, perhaps because of different definations of header files.

Please help me in drawing basic graphics in gcc. Is there some other header file that provide these functionalities? or some otherway out?

Question by:fatimao
    LVL 5

    Accepted Solution


    check out these sites:

    LVL 20

    Expert Comment

    hi fatimao,

    which os do you use? if you work with linux, there is a lib called ncurses, which does some basic graphics in the console/goto xy and textcolor stuff ...

    hope it helps

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Live - One-on-One C++ Help from Top Experts

    Solve your toughest problems, fast.
    C++ experts are online now and ready to help you.

    Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
    This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
    The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
    The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now