Results 1 to 2 of 2

Thread: utility of alpha value specified in glClearColor calls

  1. #1
    Guest

    utility of alpha value specified in glClearColor calls

    the glClearColor function takes as an argument an RGBA value.

    Is there any situation in which varying the alpha value specified will vary the background color observed?

    or is the clear color specified as an RGBA quartet for congruity's sake?

  2. #2
    Senior Member Regular Contributor
    Join Date
    Apr 2003
    Location
    Toulouse, France
    Posts
    133

    Re: utility of alpha value specified in glClearColor calls

    imagine that you use blending and your blend func is:
    GL_ONE_MINUS_DST_ALPHA, GL_DST_ALPHA
    and the DST_ALPHA is (for the polygons which doesn't cover other polygons) the value you just set using glClearColor(r,g,b,a).

Similar Threads

  1. Can't set glClearColor alpha to 0
    By PP2005 in forum OpenGL: Basic Coding
    Replies: 14
    Last Post: 12-06-2010, 03:14 PM
  2. Alpha parameter in glClearColor()?
    By in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 05-12-2006, 03:10 PM
  3. [glClearColor]: fourth parameter ... what is alpha?
    By in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 11-27-2003, 04:06 PM
  4. terrain lightmap utility?
    By soconne in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 09-24-2003, 07:39 AM
  5. glClearColor alpha parameter ?useless?
    By naaknaak in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 10-26-2000, 11:31 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