Results 1 to 4 of 4

Thread: nehe tuts cant run in fullscreen...

  1. #1

    nehe tuts cant run in fullscreen...

    im makeing my game based on the code from the nehe tuts... but whenever i try to run it in fullscreen it crashes and says "cannot create a gl rendering context"


    please help me get it to run in fullsreen on my comp... thanks
    Programming makes my head burn.

  2. #2
    Junior Member Newbie
    Join Date
    Aug 2002
    Posts
    10

    Re: nehe tuts cant run in fullscreen...

    Post your code here.

  3. #3

    Re: nehe tuts cant run in fullscreen...

    the code is the same as the nehe tuts.... on the nehe tuts it can't go in fullscreen... but the in the code there is:
    Code :
    if (!(hRC=wglCreateContext(hDC)))				// Are We Able To Get A Rendering Context?
    	{
    		KillGLWindow();								// Reset The Display
    		MessageBox(NULL,"Can't Create A GL Rendering Context.","ERROR",MB_OK|MB_ICONEXCLAMATION);
    		return FALSE;								// Return FALSE
    	}
    it is not the code... it is my computer... but why can't it run in fullscreen.... but it can in windowed?
    Programming makes my head burn.

  4. #4
    Senior Member Regular Contributor
    Join Date
    Mar 2002
    Location
    California, USA
    Posts
    167

    Re: nehe tuts cant run in fullscreen...

    Thats not the code to switch to fullscreen mode. Your best bet is to analyze the return values of the functions that setup fullscreen for you. go to msdn.microsoft.com to find out the meaning of the errors codes.

    Old GLman

Similar Threads

  1. Fullscreen:Nehe causes teardown and rebuild?
    By nickels in forum OpenGL: Windows
    Replies: 8
    Last Post: 03-17-2010, 08:47 AM
  2. Creating primitives by hand any tuts?
    By in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 11-17-2005, 07:14 PM
  3. couple questions about nehe tuts
    By paneb in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 03-24-2003, 07:38 AM
  4. Good camera tuts?
    By DinoeL in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 10-23-2002, 12:41 PM
  5. Nehe lesson38, slow fullscreen!!!
    By jpummill in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 08-23-2002, 10:14 PM

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