Computer Science Canada Getting Started on OpenGL |
Author: | jamonathin [ Tue Nov 22, 2005 12:11 pm ] |
Post subject: | Getting Started on OpenGL |
Hey i was wondering how to get started with OpenGL programming. If anyone can submit like a basic program (with code) it'd help out a lot. I know you guys will probabily preach that I should master c++ before i move onto OpenGL, but . . yeah, anyways . . ![]() If anyoen can help it'd be great, thanks ![]() |
Author: | jamonathin [ Tue Nov 22, 2005 12:30 pm ] |
Post subject: | |
And I really dont know anything about it. As in, what program to write it in/compile it in. (i guess you can write it anywhere just dont know how to run it), and 0 OpenlGL commands. There's a [url="http://www.cprogramming.com/tutorial/gl6.html"]tutorial[/url] i found, but it doesn't say how to run it, and it doesn't work in Micosoft Visual C++ ![]() P L E H |
Author: | Geminias [ Tue Nov 22, 2005 7:23 pm ] | ||
Post subject: | |||
my suggestion is get a real compiler.. this code will work with MinGW or Dev-c++ since it uses the MinGW compiler.
|
Author: | Geminias [ Tue Nov 22, 2005 7:28 pm ] |
Post subject: | |
thats a pretty basic simple program.. one of the simplest you'll ever see in opengl aside from just drawing static objects on the screen. see gandolfs spiel on compilers in the c++ tutorial section. if you can't run c++ code, dont bother trying to learn opengl. If you want some graphics for some GUI's or something use winAPI and VC++.. thats much simpler. |
Author: | wtd [ Tue Nov 22, 2005 7:32 pm ] |
Post subject: | |
Geminias: that assumes that portability is not a high priority. Some of us don't like being limited to Windows. |
Author: | Geminias [ Tue Nov 22, 2005 7:39 pm ] |
Post subject: | |
true winAPI would be limiting to windows only as it uses the win32.dll... if you dont like being limited to windows dont use anything made by microsoft and dont use anything that starts with "win" |
Author: | jamonathin [ Wed Nov 23, 2005 10:33 am ] |
Post subject: | |
Thanks for your help Geminias ![]() |
Author: | Mazer [ Wed Nov 23, 2005 3:11 pm ] |
Post subject: | |
Geminias wrote: true winAPI would be limiting to windows only as it uses the win32.dll... if you dont like being limited to windows dont use anything made by microsoft and dont use anything that starts with "win"
I'd like to see how you clean your glass surfaces without using windex whilst programming in OpenGL! ![]() |
Author: | Geminias [ Wed Nov 23, 2005 4:50 pm ] |
Post subject: | |
water and vinegar is the linux user alternative (note: how water and vinegar works much better) |
Author: | md [ Wed Nov 23, 2005 8:29 pm ] |
Post subject: | |
Also note that anything that compiles in MinGW or Dev-C++ should also compile in MSVC++, or even on linux using the appropriate libraries. The code posted *might* even run on linux under wine. For truely portable code I'd recomend checking out SDL, though it might take a bit to figure it out at the same time as openGL it's almost guarunteed to be portable. |
Author: | wtd [ Wed Nov 23, 2005 8:41 pm ] |
Post subject: | |
Cornflake wrote: Also note that anything that compiles in MinGW or Dev-C++ should also compile in MSVC++
Assuming we're not talking about MSVC++ 6. That's not always a safe assumption as academic institutions seem to have a perverse love of pointlessly outdated software. |