Results 1 to 2 of 2

Thread: Getting OpenGL working in C++

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2001
    Posts
    2

    Getting OpenGL working in C++

    Hi!

    I'm trying to get a basic Open GL shape to run in a C++ Metrowerks program. I've tried using both C++ Console Apps and Win32C++ Apps as a basis for the program (I don't know anything about windowing in C++) and have added what I need for Open GL. The programs compile and link but when they run I simply get the initial "HelloWorld" screen. I'm sure that what I've done is really silly. Has anyone got any suggestions?

    Thanks!

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Oct 2000
    Location
    Fargo, ND
    Posts
    1,753

    Re: Getting OpenGL working in C++

    When you say you've added everything you need for OpenGL, what do you mean specifically? If you mean you set the pixelformat of a window to support OpenGL, or added glut initialization, then your OpenGL code should work fine. If you didn't do either of these (as I suspect is the case) then you need to. You can find the "Red Book" online somewhere, which gives all its examples using glut. (Sorry, I don't know the link offhand, I have a hard copy.) You can also check the Nehe tutorials for examples of how to create a window that supports OpenGL without using Glut. (http://nehe.gamedev.net/OpenGL.asp)
    Deiussum
    Software Engineer and OpenGL enthusiast

Similar Threads

  1. Replies: 0
    Last Post: 04-27-2018, 08:20 PM
  2. OpenGL not working.
    By rickguyface in forum OpenGL: User Software
    Replies: 5
    Last Post: 04-05-2018, 10:56 PM
  3. Replies: 1
    Last Post: 11-18-2011, 08:13 AM
  4. OpenGL isn't working right
    By imported_Wilson in forum OpenGL: User Software
    Replies: 5
    Last Post: 07-27-2006, 11:58 AM
  5. opengl not working on xp
    By in forum OpenGL: User Software
    Replies: 20
    Last Post: 12-01-2004, 09:32 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean