LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-22-2003, 01:15 AM   #1
Chryzmo
Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware 10.1
Posts: 180

Rep: Reputation: 30
Question Linux C++ Newbie Questions


I have only just recently started using Linux, I just installed Mandrake 9.1 on my computer. Before using Linux I had been teaching myself some C++ on Windows using MS Visual C++6.

From reading about WIndows programming, I had come to learn that generally the way people learn it, when dealing with graphic programming atleast, you are best to learn C++, then Windows programming, then an API. Now in Linux, I was wondering if there is some sort of Linux Windows programming?
If not, what would you base say an OpenGL program off?

It was my understanding that the Windows programming generally served as the base on which you built the OpenGL graphics engine. Howver I am not sure how this goes in Linux programming. Maybe someone can help clear this up for me?

Thanks ,
Chris
 
Old 07-22-2003, 01:42 AM   #2
m9dhatter
LQ Newbie
 
Registered: Jun 2003
Posts: 20

Rep: Reputation: 1
Re: Linux C++ Newbie Questions

Quote:
Originally posted by Chryzmo
From reading about WIndows programming, I had come to learn that generally the way people learn it, when dealing with graphic programming atleast, you are best to learn C++, then Windows programming, then an API. Now in Linux, I was wondering if there is some sort of Linux Windows programming?
If not, what would you base say an OpenGL program off?

Thanks ,
Chris [/B]
i have never tried this myself but i have a fair understanding of openGL. and linux programming. i believe the "windows programming" you are referring to is the win32 api where you can create frames ( windows as you may call it, lets call it frames so we wont confuse it with the OS ) then you build the openGL on top of that. i think you could do the same for linux only you wont use the win32 api but another windowing api. i have used QT ( by trolltech ) before and it was quite handy. plus, it works on windows too. cool huh? there are other windowing api out there. gtk for instance, but i haven't tried them yet.

have fun programming!
 
Old 07-22-2003, 11:55 AM   #3
tcaptain
LQ Addict
 
Registered: Jul 2002
Location: Montreal
Distribution: Gentoo 2004 from stage 1 baby!
Posts: 1,403

Rep: Reputation: 45
I think if you're going to try using QT, then knowing C++ helps..as for OpenGL, well I think that perhaps there are APIs in both languages? Not sure, I've been wanting to look into it myself (but no time these days)
 
Old 07-23-2003, 07:07 PM   #4
verigoth
Member
 
Registered: May 2002
Posts: 179

Rep: Reputation: Disabled
OpenGL itself is merely a standard, a bunch of functions that supposedly in the end achieve some goal (like draw a square). how these functions are implemented is done at the sole discretion of the implementer (e.g. microsoft or Mesa3d (http://mesa3d.sourceforge.net)). in Linux it is usually done directly through hardware, so you need to connect the OpenGL drawing to the X Window Server (http://www.xfree86.org). as mentioned above you can do it with Qt (http://www.trolltech.no), but other (better) toolkits are libSDL (http://www.libsdl.org) and GLUT (somewhere on SGI's site) as well as Gtk+. i hope i didn't just confuse you even more...

verigoth
 
  


Reply



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
Newbie Linux Questions... Matt2020 Linux - Newbie 7 10-04-2005 08:48 PM
Linux Newbie Questions misterjingo Mandriva 4 08-31-2005 03:24 PM
4 newbie questions about linux Peleus Linux - Newbie 15 02-19-2005 04:59 AM
Linux Newbie w/ Questions... rye_yan_matthew Linux - Software 3 11-23-2004 12:25 PM
Linux newbie questions Jasers Linux - Newbie 4 05-30-2003 03:54 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:10 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
Open Source Consulting | Domain Registration