Results 1 to 2 of 2

Thread: GLUquadric warning

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2008
    Location
    Italy, Milan
    Posts
    8

    GLUquadric warning

    hi all!
    I'm working on a NeHe tutorial (lesson 26:
    http://nehe.gamedev.net/data/lessons....asp?lesson=26 ). When I build the demo (under Visual Studio) get the following warning: warning LNK4248: unresolved typeref token (01000017) for 'GLUquadric'; image may not run.
    No errors are found, but the demo doesn't work fine: the sphere under the plane isn't "blended"!

    this is the tutorial code:
    GLvoid OglTab:rawObject(GLvoid) { // Draw Our Ball
    glColor3f(1.0f, 1.0f, 1.0f); // Set Color To White
    glBindTexture(GL_TEXTURE_2D, texture[1]); // Select Texture 2 (1)
    gluSphere(q, 0.35f, 32, 16); // Draw First Sphere

    glBindTexture(GL_TEXTURE_2D, texture[2]); // Select Texture 3 (2)
    glColor4f(1.0f, 1.0f, 1.0f, 0.4f); // Set Color To White With 40% Alpha
    glEnable(GL_BLEND); // Enable Blending
    glBlendFunc(GL_SRC_ALPHA, GL_ONE); // Set Blending Mode To Mix Based On SRC Alpha
    glEnable(GL_TEXTURE_GEN_S); // Enable Sphere Mapping
    glEnable(GL_TEXTURE_GEN_T); // Enable Sphere Mapping
    gluSphere(q, 0.35f, 32, 16); // Draw Another Sphere Using New Texture
    // Textures Will Mix Creating A MultiTexture Effect (Reflection)
    glDisable(GL_TEXTURE_GEN_S); // Disable Sphere Mapping
    glDisable(GL_TEXTURE_GEN_T); // Disable Sphere Mapping
    glDisable(GL_BLEND); // Disable Blending
    }

    where is the problem for you?

  2. #2
    Junior Member Newbie
    Join Date
    Aug 2008
    Location
    Italy, Milan
    Posts
    8

    Re: GLUquadric warning

    sorry
    I found the problem!

    changing static PIXELFORMATDESCRIPTOR pfd={.....16, 0, 0, PFD_MAIN_PLANE, 0, 0, 0, 0};}
    to static PIXELFORMATDESCRIPTOR pfd={.....16, 1, 0, PFD_MAIN_PLANE, 0, 0, 0, 0};}
    the error disappeared (but the warning is still there )

Similar Threads

  1. Replies: 0
    Last Post: 08-28-2014, 02:42 AM
  2. GLUQUADRIC in OpenTK in VB .NET
    By darkdave in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 10-03-2012, 12:11 PM
  3. Multitexturing a gluquadric?
    By in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 11-20-2004, 05:12 PM
  4. GLUquadric use
    By in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 04-08-2002, 06:20 AM
  5. gluQuadric - rotating.
    By IainToft in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 02-05-2002, 02:35 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