OpenGL tuts by RoD

This is a discussion on OpenGL tuts by RoD within the C++ Programming forums, part of the General Programming Boards category; on the tuts about opengl by rod, he just all of the sudden goes into windows programming. is that another ...

  1. #1
    Registered User
    Join Date
    Jul 2003
    Posts
    97

    OpenGL tuts by RoD

    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

  2. #2
    Me -=SoKrA=-'s Avatar
    Join Date
    Oct 2002
    Location
    Europe
    Posts
    448
    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.

  3. #3
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,452
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  4. #4
    Registered User major_small's Avatar
    Join Date
    May 2003
    Posts
    2,787
    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

  5. #5
    Registered User
    Join Date
    Jul 2003
    Posts
    97
    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?

  6. #6
    *******argv[] - hu? darksaidin's Avatar
    Join Date
    Jul 2003
    Posts
    314
    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]

  7. #7
    Registered User major_small's Avatar
    Join Date
    May 2003
    Posts
    2,787
    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?
    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...
    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

  8. #8
    RoD
    RoD is offline
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    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 RoD@cprogramming.com

    -RoD

  9. #9
    Registered User
    Join Date
    Jul 2003
    Posts
    97
    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?

  10. #10
    Registered User major_small's Avatar
    Join Date
    May 2003
    Posts
    2,787
    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

  11. #11
    Registered User
    Join Date
    Jul 2003
    Posts
    97
    its hard, without being able to actually see what it does

  12. #12
    RoD
    RoD is offline
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    I currently only support the Microsoft Visual C++ Compiler.

  13. #13
    Registered User
    Join Date
    Jul 2003
    Posts
    97
    damn, well....they looked good too. is there a place where theres opengl tuts for bloodshed somewhere?thx

  14. #14
    RoD
    RoD is offline
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    Check out the second link in my signature. It will take you to another thread containing alot of useful information.

  15. #15
    Registered User
    Join Date
    Jul 2003
    Posts
    97
    tried, there opengl sites are extremely cluttered and make it imposible to find stuff.

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiling issue with the OpenGL tutorial by RoD
    By Twitchmokey in forum Game Programming
    Replies: 12
    Last Post: 06-26-2006, 06:05 PM
  2. Linking OpenGL in Dev-C++
    By linkofazeroth in forum Game Programming
    Replies: 4
    Last Post: 09-13-2005, 10:17 AM
  3. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 12:34 PM
  4. OpenGL .dll vs video card dll
    By Silvercord in forum Game Programming
    Replies: 14
    Last Post: 02-12-2003, 06:57 PM
  5. opengl code not working
    By Unregistered in forum Windows Programming
    Replies: 4
    Last Post: 02-14-2002, 09:01 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21