Results 1 to 2 of 2

Thread: Number of Texture units???

  1. #1
    Senior Member Regular Contributor
    Join Date
    Sep 2001
    macedon, ny

    Number of Texture units???

    Is there a way to tell on the fly how many multiple textures a card can handle per pass?? I use this currently to find out if there is multitexture support, but im not sure how to find out how many textures it can handle per poly per pass..

    if(strstr((const char *)glGetString(GL_EXTENSIONS), "ARB_multitexture") != NULL)
    glActiveTextureARB = (PFNGLACTIVETEXTUREPROC) wglGetProcAddress("glActiveTextureARB");

    glMultiTexCoord2fARB = (PFNGLMULTITEXCOORD2FPROC) wglGetProcAddress("glMultiTexCoord2fARB");
    MultiTextureSupport = true;

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Feb 2000

    Re: Number of Texture units???

    glGetInteger with GL_MAX_TEXTURE_UNITS.

Similar Threads

  1. Low number of compute units?
    By tmp in forum OpenCL
    Replies: 5
    Last Post: 03-09-2010, 02:50 AM
  2. About number of texture image units
    By cvision in forum OpenGL: macOS
    Replies: 11
    Last Post: 01-31-2009, 12:41 AM
  3. Number of TEXTURE UNITS occupied by CUBEMAP
    By havokentity in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 04-03-2008, 02:17 PM
  4. How to get number of units?
    By imported_titanandrews in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 01-12-2007, 11:59 PM
  5. Number of texture units on GeforceFX
    By Zeno in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 05-15-2003, 11:06 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