Results 1 to 2 of 2

Thread: MipMapping

  1. #1
    KRONOS
    Guest

    MipMapping

    Is there any way to generate mipmaps without glut? If so, please give me some source code as I need it very quickly......

  2. #2
    Senior Member Regular Contributor
    Join Date
    May 2000
    Location
    Oxford, England
    Posts
    472

    Re: MipMapping

    use :

    glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTE R,GL_LINEAR_MIPMAP_LINEAR);
    glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTE R,GL_LINEAR_MIPMAP_LINEAR);

    gluBuild2DMipmaps(GL_TEXTURE_2D, texFormat, imageWidth, imageHeight, texFormat, GL_UNSIGNED_BYTE, imageData);

    you'll need to ammend it for your needs though.....

Similar Threads

  1. Mipmapping
    By Thomas F. in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 12-07-2007, 08:09 AM
  2. mipmapping
    By marcus.silfver in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 11-10-2003, 03:49 AM
  3. mipmapping
    By in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 02-25-2002, 10:05 AM
  4. More on mipmapping?
    By Lucretia in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 11-23-2000, 03:08 AM
  5. mipmapping
    By elmargo in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 07-21-2000, 07:48 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