LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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

Reply
 
Search this Thread
Old 08-19-2010, 10:50 AM   #1
Puneet Jindal
Member
 
Registered: Aug 2010
Location: India(Punjab)
Posts: 38

Rep: Reputation: 0
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 10:51 AM.
 
Old 08-19-2010, 12:07 PM   #2
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
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.
 
Old 08-19-2010, 12:32 PM   #3
CincinnatiKid
Member
 
Registered: Jul 2010
Distribution: Mageia-3
Posts: 399

Rep: Reputation: 33
It depends on what you are doing, but you may want to look into OpenGL.
 
Old 08-19-2010, 01:29 PM   #4
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 55
http://en.wikibooks.org/wiki/C%2B%2B_Programming

Look at that to learn how to program, and now this:

http://en.wikibooks.org/wiki/GTK%2B_By_Example

Or this:

http://en.wikibooks.org/wiki/Qt

to learn GTK+ or Qt. I would love to see a Wikibook on Clutter, but it has yet to be seen.
 
Old 08-19-2010, 05:26 PM   #5
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu
Posts: 1,251

Rep: Reputation: 252Reputation: 252Reputation: 252
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.
 
  


Reply

Tags
graphics


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't get 3D graphics working under (K)ubuntu Logomachist Linux - Newbie 8 02-25-2010 07:07 PM
Lost graphics in Ubuntu 9.04 butchern Linux - Newbie 24 08-07-2009 02:31 PM
3d graphics seems to work better in ubuntu jag2000 Ubuntu 8 10-20-2007 08:20 PM
Intel i810 on-board graphics card bug, with Ubuntu server 7.04 running Ubuntu-Desktop calebf Linux - Server 2 05-15-2007 12:53 AM
Ubuntu doesn't like graphics cards. The_Neon_Knight Linux - Hardware 28 03-03-2007 08:42 AM


All times are GMT -5. The time now is 12:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration