[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]
OpenGL 1.2 for AIX: Reference Manual

glBlendColor Subroutine

Purpose

Sets the blend color. This subroutine is part of OpenGL 1.2 ARB Imaging subset extension.

Library

OpenGL C bindings library: libGL.a

C Syntax


void glBlendColor(GLclampf  red, 
                  GLclampf  green, 
                  GLclampf  blue, 
                  GLclampf  alpha)

Description

The GL_BLEND_COLOR may be used to calculate the source and destination blending factors. See glBlendFunc for a complete description of the blending operations. Initially the GL_BLEND_COLOR is set to (0, 0, 0, 0).

Parameters

red, green, blue, alpha Specify the components of GL_BLEND_COLOR.

Notes

The glBlendColor subroutine is available only if the GL version is 1.1 or greater.

Errors

GL_INVALID_OPERATION The glBlendColor is called between a call to glBegin and the corresponding call to glEnd.

Associated Gets

glGet with argument GL_BLEND_COLOR.

Related Information

The glBlendFunc subroutine, glGetString subroutine.


[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]