Results 1 to 2 of 2

Thread: Token values for Multitexture?

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2001
    UK, England.

    Token values for Multitexture?

    I would like to implement multitexture in my application that I'm developing but cannot find the token values for GL_MAX_TEXTURE_UNITS_ARB or GL_TEXTUREn_ARB.

    The book I've been using as a reference suggests that I define the tokens myself by getting the values from the extension documentation on

    Well, I went to and they have a link to a extensions repository. So, I go there and the text document for multitexture states that the extension has been included in the OpenGl 1.2.1 specification and that I should refer to it for more information. I downloaded the specification and reviewed appendix F but cannot find any token values.

    How do I get the token values for this extension?


  2. #2
    Senior Member OpenGL Pro
    Join Date
    Jun 2000
    Shreveport, LA, USA

    Re: Token values for Multitexture?

    From an OpenGL 1.2.1 pdf file I have: "the constants obey GL_TEXTUREi_ARB = GL_TEXTURE0_ARB for i from 0 to k-1 where k is defined by GL_MAX_TEXTURE_UNITS_ARB". From a project I downloaded from Nvidia I see that GL_TEXTURE0_ARB = 0x84c0 and GL_MAX_TEXTURE_UNITS_ARB = 0x84E2. There are other constants too: GL_ACTIVE_TEXTURE_ARB = 0x84E0 and GL_CLIENT_ACTIVE_TEXTURE_ARB = 0x84E1

    [This message has been edited by DFrey (edited 06-25-2000).]

Similar Threads

  1. Why won't a simple tri-quad render with NV Token Buffers?
    By mrMatrix in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 05-23-2016, 05:22 AM
  2. Replies: 1
    Last Post: 10-05-2013, 08:24 AM
  3. Unrecognized Token during Kernel Compilation
    By ankhster in forum OpenCL
    Replies: 1
    Last Post: 09-20-2012, 09:35 PM
  4. GLSL - shader compilation fails "unexpected $end at token ..."
    By henniman in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 01-26-2006, 10:32 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