on the tuts about opengl by rod, he just all of the sudden goes into windows programming. is that another programming laungae or sumthin? i went to learn opengl, not windows programming. is it required to learn opengl? thx
on the tuts about opengl by rod, he just all of the sudden goes into windows programming. is that another programming laungae or sumthin? i went to learn opengl, not windows programming. is it required to learn opengl? thx
First, this probably should be asked to RoD directly. But since you've already asked...
You don't need to know Windows programming to program in OpenGL, you could use wxWindows, GTK or many others. The reason RoD uses Windows programming is that most people use Windows OS and otherwise would not be able to see the results.
So long story short, you need to use Windows programming (not strictly true, but bare with me on this one) to create the window in which you're gonna show your great OpenGL creations, so unless you want to do portable code, you'll probably use the Win32 API (Windows programming). If you do want to create portable code, you'll have to use one of the alternative windowing systems (or whatever they're called).
SoKrA-BTS "Judge not the program I made, but the one I've yet to code"
I say what I say, I mean what I mean.
IDE: emacs + make + gcc and proud of it.
Windows is just another API, and no you don't need it for OpenGL since OpenGL is well - open.
It also runs on Linux for example.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
you need something to create the windows with, and since it's a windows OS, you'll need to know a little windows programming to use OpenGL... but if you were running under a different OS, you would need to know how to bring up the window in that OS... that's where the GLUT library comes in, but that's not included in every compiler and it's not perfect...
Join is in our Unofficial Cprog IRC channel
Server: irc.phoenixradio.org
Channel: #Tech
Team Cprog Folding@Home: Team #43476
Download it Here
Detailed Stats Here
More Detailed Stats
52 Members so far, are YOU a member?
Current team score: 1223226 (ranked 374 of 45152)
The CBoard team is doing better than 99.16% of the other teams
Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)
Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT
i use the latest bloodshed. so i need to know how to make a window in windows programming, so i can put my opengl crap in there? what part of it would i put the opengl code in too? so is that why he teaches on learning windows programming?
You could use a wrapper libarary to get the windows interfacing out of your code and stay portable.
Search for glut - I think thats the most common wrapper when you only want one window with GL output. It's limited in features, but I think thats what you want.
[code]
your code here....
[/code]
start a new project, click on the 'multimedia' tab, and click 'OpenGL'... it'll give you the code to open a window and display a spinning triangle...Originally posted by oobootsy1
i use the latest bloodshed. so i need to know how to make a window in windows programming, so i can put my opengl crap in there? what part of it would i put the opengl code in too? so is that why he teaches on learning windows programming?
Join is in our Unofficial Cprog IRC channel
Server: irc.phoenixradio.org
Channel: #Tech
Team Cprog Folding@Home: Team #43476
Download it Here
Detailed Stats Here
More Detailed Stats
52 Members so far, are YOU a member?
Current team score: 1223226 (ranked 374 of 45152)
The CBoard team is doing better than 99.16% of the other teams
Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)
Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT
Since i based my tutorials on a machine and enviorment using Microsoft Windows i decided my readers should be given a insight to the workings, or mechanics if you will, of Windows Application Programming.
I didnt know this thread was here until Axon brought it to my attention as i havent visited this particular forum recently. For faster replies you can use the PM function or email me via [email protected]
-RoD
well, ur code wont compile correctly on bloodshed rod. is there a way i can make it be able to? ill do that new project/multimedia thing u said. i would be able to delt the opengl code then right, and put something of mine in then? am i correct?
yeah, but try to understand what's there first...
Join is in our Unofficial Cprog IRC channel
Server: irc.phoenixradio.org
Channel: #Tech
Team Cprog Folding@Home: Team #43476
Download it Here
Detailed Stats Here
More Detailed Stats
52 Members so far, are YOU a member?
Current team score: 1223226 (ranked 374 of 45152)
The CBoard team is doing better than 99.16% of the other teams
Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)
Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT
its hard, without being able to actually see what it does
I currently only support the Microsoft Visual C++ Compiler.
damn, well....they looked good too. is there a place where theres opengl tuts for bloodshed somewhere?thx
Check out the second link in my signature. It will take you to another thread containing alot of useful information.
tried, there opengl sites are extremely cluttered and make it imposible to find stuff.