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

Thread: Text color...

  1. #1
    Intern Contributor
    Join Date
    Jul 2001
    Location
    Tokyo
    Posts
    54

    Text color...

    Hi,

    How come that a color change doesn't affect the color of my text (displayed with glCallLists(...) or glutBitmapFont(...)) ?
    Only after a raster position change the color of the next text-command is actualized.
    What do I have to do so that I can write every letter in a different color (without using glRasterPos(...) ) ??

    Thank you

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    3,115

    Re: Text color...

    Read the specification. The color of the raster position is only changed on a call to glRasterPos.

  3. #3
    Intern Contributor
    Join Date
    Jul 2001
    Location
    Tokyo
    Posts
    54

    Re: Text color...

    >The color of the raster position is only changed on a call to glRasterPos.

    I noticed this, but my question was: is there a way to avoid calling glRasterPos when I want to change the color?

Posting Permissions

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