Thread: OpenGL Tut problem

  1. #1

    Unhappy OpenGL Tut problem

    I was following NeHe's GL tuts, and after going through the first one, I got this. I might have accidently trashed some code when I changed the indenting and removed the comments, because when it starts up in windowed mode, the window's see through and it doesn't show any black in fullscreen. Here's the url to the code:
    http://personal.bellsouth.net/lig/m/.../framework.cpp

    Any help would be much appreciated.

    Thanks,
    Valar_King
    -Save the whales. Collect the whole set.

  2. #2
    Registered User
    Join Date
    Nov 2001
    Posts
    162
    In the glClearColor function you have the alpha channel argument set as 0.0f. The tutorial I downloaded had it set as 0.5f. Try that and see if it works.

  3. #3
    Registered User The15th's Avatar
    Join Date
    Aug 2001
    Posts
    125
    The problem will be in your CreateGLWindow() function. Replace that with the one that came with the tutorial... sorry i cant be specific, im just too buisy to look through your code.
    arrh, i got nothing good to say.
    http://www.praxis1.vic.edu.au/home/dcola/

  4. #4
    thanks, i'll try that.
    -Save the whales. Collect the whole set.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Multithread pthread with OpenGL
    By parad0x13 in forum C++ Programming
    Replies: 8
    Last Post: 07-24-2008, 03:04 PM
  2. OpenGL Color update problem
    By arifin in forum C++ Programming
    Replies: 0
    Last Post: 07-22-2008, 12:17 AM
  3. SDL_ttf and OpenGL
    By sand_man in forum Game Programming
    Replies: 2
    Last Post: 12-01-2004, 06:06 PM
  4. Problem with OpenGL tutorial
    By 2Biaz in forum Windows Programming
    Replies: 18
    Last Post: 09-16-2004, 11:02 AM
  5. OpenGL lighting
    By BabyG in forum Game Programming
    Replies: 3
    Last Post: 08-29-2004, 09:58 AM