Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-19-2010, 09:50 AM
|
#1
|
Member
Registered: Aug 2010
Location: India(Punjab)
Posts: 38
Rep:
|
Graphics in ubuntu
I am new to ubuntu.I have done some programming in c++ under windows using graphics.h header file.I want to implement my programs in ubuntu.How can i do this?I am writing a program.Please tell me how to do it.
#include"iostream"
#include"graphics"
using namespace std;
int main()
{
int gd,gm;
gd=DETECT;
initgraph(&gd,&gm,"c:/TC/BGI");
putpixel(10,10,100);
}
Last edited by Puneet Jindal; 08-19-2010 at 09:51 AM.
|
|
|
08-19-2010, 11:07 AM
|
#2
|
Senior Member
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853
Rep:
|
It's not that straight-forward, and practically no-one here is going to straight up tell you how to do it.
If you have done C++ programming in Windows, was it just C++, or was it C++.NET? If it was .NET, then look into the Mono project. Otherwise, you will probably want to look into what can give you a similar functionality in the GTK+mm or Qt toolkits.
|
|
|
08-19-2010, 11:32 AM
|
#3
|
Member
Registered: Jul 2010
Posts: 454
Rep:
|
It depends on what you are doing, but you may want to look into OpenGL.
|
|
|
08-19-2010, 04:26 PM
|
#5
|
Senior Member
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Manjaro
Posts: 1,793
|
Since you're using Ubuntu, I'd suggest using GTK. If you want to stick with C++, you'll need the gtkmm libraries. You might want to consider using Glade to design your UI. Here's the description from the (Fedora) Glade3 package
Quote:
Description :
Glade is a RAD tool to enable quick and easy development of user interfaces for
the GTK+ toolkit and the GNOME desktop environment.
|
|
|
|
All times are GMT -5. The time now is 01:08 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|