OpenGL Tut problem

This is a discussion on OpenGL Tut problem within the Game Programming forums, part of the General Programming Boards category; I was following NeHe's GL tuts, and after going through the first one, I got this. I might have accidently ...

  1. #1
    Satan valar_king's Avatar
    Join Date
    Aug 2001
    Posts
    288

    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
    Satan valar_king's Avatar
    Join Date
    Aug 2001
    Posts
    288
    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, 04:04 PM
  2. OpenGL Color update problem
    By arifin in forum C++ Programming
    Replies: 0
    Last Post: 07-22-2008, 01: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, 12:02 PM
  5. OpenGL lighting
    By BabyG in forum Game Programming
    Replies: 3
    Last Post: 08-29-2004, 10:58 AM

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