table of contents
other versions
GLLOGICOP(3G) | [FIXME: manual] | GLLOGICOP(3G) |
NAME¶
glLogicOp - specify a logical pixel operation for renderingC SPECIFICATION¶
void
glLogicOp(GLenum opcode);
PARAMETERS¶
opcodeSpecifies a symbolic constant that selects a
logical operation. The following symbols are accepted: GL_CLEAR,
GL_SET, GL_COPY, GL_COPY_INVERTED, GL_NOOP,
GL_INVERT, GL_AND, GL_NAND, GL_OR, GL_NOR,
GL_XOR, GL_EQUIV, GL_AND_REVERSE, GL_AND_INVERTED,
GL_OR_REVERSE, and GL_OR_INVERTED. The initial value is
GL_COPY.
DESCRIPTION¶
Opcode | Resulting Operation |
GL_CLEAR | 0 |
GL_SET | 1 |
GL_COPY | s |
GL_COPY_INVERTED | ~s |
GL_NOOP | d |
GL_INVERT | ~d |
GL_AND | s & d |
GL_NAND | ~(s & d) |
GL_OR | s | d |
GL_NOR | ~(s | d) |
GL_XOR | s ^ d |
GL_EQUIV | ~(s ^ d) |
GL_AND_REVERSE | s & ~d |
GL_AND_INVERTED | ~s & d |
GL_OR_REVERSE | s | ~d |
GL_OR_INVERTED | ~s | d |
NOTES¶
When more than one RGBA color buffer is enabled for drawing, logical operations are performed separately for each enabled buffer, using for the destination value the contents of that buffer (see glDrawBuffer()). Logic operations have no effect on floating point draw buffers. However, if GL_COLOR_LOGIC_OP is enabled, blending is still disabled in this case.ERRORS¶
ASSOCIATED GETS¶
SEE ALSO¶
COPYRIGHT¶
Copyright © 1991-2006 Silicon Graphics, Inc. This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/.05/30/2012 | [FIXME: source] |