Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 4 of 4

Thread: GL_RESCALE_NORMAL in VC++

  1. #1
    Junior Member Newbie
    Join Date
    Jun 2001
    Location
    switzerland
    Posts
    1

    GL_RESCALE_NORMAL in VC++

    Hi I'm writing a cross platform open GL application, doing my development on linux, and porting to windows (using glut for windowing)

    The only openGL problem I've had so far with the porting is with the call:
    >>
    glEnable(GL_RESCALE_NORMAL);
    <<

    which gets me:
    >>
    G:\Programming\mesaFace\main.cpp(51) : error C2065: 'GL_RESCALE_NORMAL' : undeclared identifier
    <<

    anybody know what's up with that? My theory is that this is part of the openGL 1.2 spec. and I perhaps only have 1.1 on my windows installation. I've looked for a download to fix it but no luck.

    So if someone can help me out, please do.

    Additionally, I'm about to start implementing a gui, and I was thinking of using MUI (remember cross platform is key here). I have also considered gtk. Anyone care to share an opinion/experience?
    don't blame me, I didn't vote for him.

  2. #2
    Senior Member OpenGL Guru zed's Avatar
    Join Date
    Jul 2000
    Location
    S41.16.25 E173.16.21
    Posts
    2,407

    Re: GL_RESCALE_NORMAL in VC++

    what about glEnable( GL_NORMALIZE )

  3. #3
    Advanced Member Frequent Contributor
    Join Date
    Sep 2000
    Location
    SWEDEN
    Posts
    601

    Re: GL_RESCALE_NORMAL in VC++

    You're right, rescale normal is 1.2 and the microsoft implementation is only 1.1 The extension is probably supported though, although I'm not sure if it's declared in the microsoft header. Of the cross platform GUI-toolkits I've seen, I'd go for wxWindows, full featured and fairly complete. I've never used it for anything large scale, but it's supposed to be good.

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

    Re: GL_RESCALE_NORMAL in VC++

    GL_RESCALE_NORMAL is also defined in glext.h, which you can get from nVidia's developer site. It would probably be a good idea to use glGetString(GL_VERSION) to make sure that the underlying implementation of OpenGL is 1.2 before actually using it. If you are using nVidia cards with the Detonator drivers, then you should have access to 1.2 stuff. (Function pointers for 1.2 functions you use will have to be grabbed with wglGetProc, but they ARE usable.)
    Deiussum
    Software Engineer and OpenGL enthusiast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •