473,320 Members | 1,853 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

graphics in Linux...

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.

Nov 15 '05 #1
6 2710
sudip wrote:
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

--
+-+-+-+-+-+-+-+-+-+
|P|e|n|g|u|i|n|_|X|
+-+-+-+-+-+-+-+-+-+
Nov 15 '05 #2


sudip wrote:
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.

Nov 15 '05 #3
Penguin_X wrote:
sudip wrote:
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


We must also mention SDL, which is a complete multimedia library.

-- August
Nov 15 '05 #4

"sudip" <su****************@gmail.com> wrote
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.
Nov 15 '05 #5
thanx for directing me into the right track

Nov 15 '05 #6
Penguin_X wrote:
sudip wrote:
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?..


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.

--
"A man who is right every time is not likely to do very much."
-- Francis Crick, co-discover of DNA
"There is nothing more amazing than stupidity in action."
-- Thomas Matthews

Nov 15 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: frank | last post by:
Hi all I don't think this is strictly a Python problem, but as it manifests itself in one of my Python programs, I am hoping that somebody in this group can help me. The following is a...
5
by: Markus Elfring | last post by:
Hello, A lot of clipart libraries offer free raster images. I am looking for a similar collection for vector graphics. Do you know a gallery or archive for the following formats? - Scalable...
14
by: Pmb | last post by:
At the moment I'm using Borland's C++ (http://www.borland.com/products/downloads/download_cbuilder.html#) I want to be able to take an array of points and plot them on the screen. Is there a way...
14
by: rogerclive | last post by:
Perhaps, there is no bigger sleazy company in the entire Maple Republic ( Canada ) than Matrox Graphics Inc. I paid $100+ through my nose circa 1999 for Matrox Millenium II and Mystique. It...
19
by: manojgeorge | last post by:
Hi, I am a student for physics graduation and looking forward to develop and implement a simple graphics display in C( As this is the only language which has been taught as part of my syllabus)....
13
by: thaparian354 | last post by:
hi ! can any body plzzzzzzzzz help me how to make screensaver in c++ with gcc .
5
by: Comatose | last post by:
Well I have Ubuntu Fiesty Fawn set up succesfully but only under the safe graphics mode from the boot menu. (The only distro I have ever got to work) I would like to get it to work under the default...
43
by: shaanxxx | last post by:
if u give cordinates to programme at run time and want a line to be drawn.. how to do this in c without usin any graphics function? like x1,y1 and x2,y2 and lines should be drawn from the 1st...
2
by: Dr. Colombes | last post by:
Is there an easy scientific graphics (plotting) package for Python 2.5.1 running on Ubuntu Linux 7.1 ("Gutsy Gibbon")? A few years ago I used PyLab (a MatLab-like plotting module for Python) on...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.