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: glColor1[...]

  1. #1
    Intern Contributor
    Join Date
    May 2001
    Location
    Cheltenham,Gloucestershire,England
    Posts
    86

    glColor1[...]

    Hello there,

    given that the largest bottle neck in
    applications is the bandwidth would it
    be possible to introduce a glColor1[...] type
    function to specify a luminosity value
    for the current vertex rather than calling
    glColor3[...]

    eg

    glColor1b(255);

    would be the same as

    glColor3b(255,255,255);

    and simularly add this functionallity to
    glColorPointer etc.

    Mark

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Feb 2000
    Location
    London
    Posts
    562

    Re: glColor1[...]

    I dunno... wouldn't make much sense for interleaved vertex formats, because you'd almost certainly waste the "saved" memory as alignment padding, but for disjoint arrays it might work.

    On a sort-of-related note, I did wonder semi-seriously whether a glVertex1 might make sense for vertex programs acting as functions of one variable... probably not.

Posting Permissions

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