graphics in Linux...

S

sudip

Dear C programmers,
Can I do graphics programming on Linux platform, like I do on
MS-DOS platform using the graphics.lib library and bgi drivers... if
yes, then how?..
plz help.
thanx in advance.
 
P

Penguin_X

sudip said:
Dear C programmers,
Can I do graphics programming on Linux platform, like I do on
MS-DOS platform using the graphics.lib library and bgi drivers... if
yes, then how?..
plz help.
thanx in advance.
Sure ! OpenGL and GTK+, QT and many others libs are for you :D
 
J

john_bode

sudip said:
Dear C programmers,
Can I do graphics programming on Linux platform, like I do on
MS-DOS platform using the graphics.lib library and bgi drivers... if
yes, then how?..
plz help.
thanx in advance.

Yes, you can do graphics programming on Linux, but it won't use the
same libraries or drivers as MS-DOS.

This is way beyond the scope of this newsgroup (which is concerned with
discussion of the C language itself, not how it's applied across
various domains), so your best bet is to Google on "Linux graphics
programming".

If you're using the K Desktop Environment, I know that the kdevelop
tool provides support for setting up frames and widgets. Word of
warning: it seems that most graphics toolkits for Linux are C++-based,
so I don't know how well they'd integrate into a C-based application.
 
M

Malcolm

sudip said:
Dear C programmers,
Can I do graphics programming on Linux platform, like I do on
MS-DOS platform using the graphics.lib library and bgi drivers... if
yes, then how?..
plz help.
thanx in advance.
#include <platform_specific_graphics.h>

int main(void)
{
platform_specific_graphic_open();
platform_specific_graphics_draw_circle();

/* may need some code to wait here */

platform_specific_graphics_close();

return 0;
}

When you compile, it may refuse to link. You need to look up how to link
platform_specific_graphics. Often it will be something
like -lplatform_graphics.
 
C

CBFalconer

Penguin_X said:
Sure ! OpenGL and GTK+, QT and many others libs are for you :D

Except this is not the right place for either the question or the
answer. The only acceptable answer is a redirection to a newsgroup
that applies. I would expect one of Linux, Unix, Posix to appear
in the group name.

Please DO NOT answer OT questions here. There is nobody to correct
you, and it is unnecessary clutter.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,166
Messages
2,570,902
Members
47,442
Latest member
KevinLocki

Latest Threads

Top