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 2 of 2

Thread: Multitexturing and using DrawArrays.

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2002
    Location
    Pittsburgh,PA
    Posts
    2

    Multitexturing and using DrawArrays.

    My app currently uses glDrawArrays() to render my scene. I want to add mulitexturing to it. How would I go about this? I can't seem to find the needed info. Thanks in advance for you help.

  2. #2
    Member Regular Contributor
    Join Date
    Jul 2002
    Location
    Austria
    Posts
    280

    Re: Multitexturing and using DrawArrays.

    Hi,
    Look in the OpenGL spec in chapter 3.8 Texturing. For multi-texturing especially 3.8.15 might be interesting. Look for glActiveTexture (selects a texture unit) and also glClientActiveTexture in chapter 2.8 Vertex Arrays.
    Cheers.
    XEngine - The Platform- and API-Independent 3D Engine
    with Programmable Pipeline Support: [URL=http://xengine.sourceforge.net
    My]http://xengine.sourceforge.net

Posting Permissions

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