GLCOLORMASK(3G)GLCOLORMASK(3G)NAME
glColorMask - enable and disable writing of frame buffer color components
C SPECIFICATION
void glColorMask( GLboolean red,
GLboolean green,
GLboolean blue,
GLboolean alpha )
PARAMETERS
red, green, blue, alpha
Specify whether red, green, blue, and alpha can or cannot be written into the frame buffer. The initial values are
all GL_TRUE, indicating that the color components can be written.
DESCRIPTION
glColorMask specifies whether the individual color components in the frame buffer can or cannot be written. If red is GL_FALSE, for exam-
ple, no change is made to the red component of any pixel in any of the color buffers, regardless of the drawing operation attempted.
Changes to individual bits of components cannot be controlled. Rather, changes are either enabled or disabled for entire color components.
ERRORS
GL_INVALID_OPERATION is generated if glColorMask is executed between the execution of glBegin and the corresponding execution of glEnd.
ASSOCIATED GETS
glGet with argument GL_COLOR_WRITEMASK
glGet with argument GL_RGBA_MODE
SEE ALSO glClear(3G), glColor(3G), glColorPointer(3G), glDepthMask(3G), glIndex(3G), glIndexPointer(3G), glIndexMask(3G), glStencilMask(3G)GLCOLORMASK(3G)
Check Out this Related Man Page
GLINDEXMASK(3G)GLINDEXMASK(3G)NAME
glIndexMask - control the writing of individual bits in the color index buffers
C SPECIFICATION
void glIndexMask( GLuint mask )
PARAMETERS
mask Specifies a bit mask to enable and disable the writing of individual bits in the color index buffers. Initially, the mask is all
1's.
DESCRIPTION
glIndexMask controls the writing of individual bits in the color index buffers. The least significant n bits of mask, where n is the num-
ber of bits in a color index buffer, specify a mask. Where a 1 (one) appears in the mask, it's possible to write to the corresponding bit
in the color index buffer (or buffers). Where a 0 (zero) appears, the corresponding bit is write-protected.
This mask is used only in color index mode, and it affects only the buffers currently selected for writing (see glDrawBuffer). Initially,
all bits are enabled for writing.
ERRORS
GL_INVALID_OPERATION is generated if glIndexMask is executed between the execution of glBegin and the corresponding execution of glEnd.
ASSOCIATED GETS
glGet with argument GL_INDEX_WRITEMASK
SEE ALSO glColorMask(3G), glDepthMask(3G), glDrawBuffer(3G), glIndex(3G), glIndexPointer(3G), glStencilMask(3G)GLINDEXMASK(3G)
:D does linux\/unix support infra-red and if it does how can i make it work!!? (HP pavillion laptop, supports infrared, no windows (fedora core 2 vs. 2.6.8-1.521 gnu\linux)
thaanxx moxxx68:( (2 Replies)
Can anyone help me on this. I have a file that looks like this:
color red green blue
color pink yellow
number one two
gender male
gender female
The output would look like this:
color red green blue pink yellow
number one two
gender male female
I have over 5000 rows and i dont want... (5 Replies)
Good morning,
Can someone help to color a figure in columns if its exceeding a threshold using shell script .
ex. I have file contains 5 columns showing a value in % I need to show the value in red if it exceed 90 %
Appreciate your help (3 Replies)
Hi all
I have a file contains columns showing figures as below :
Input file
A B C
D 50 60 90
E 100 20 53
F 30 40 70
G 25 27 45
I want to color the value above or equal 90 by red and to be shown as below
output file... (5 Replies)
My script prints lines in which the entire line may be colored, and portions may also be colored. e.g.
Consider this to be one line:
$red some text in red $yellow abcd $end_yellow red text 1234 $blue some text $end_blue more red text $end_red
So using sed, I may based on condition 1,... (5 Replies)
hi all, I am trying to do a loop on a series of plotting function shown below:
colorlist=(blue red green); n=0;
for k in $xy; do
psbasemap $range -JM$scale -B10g5 -X1 -Y1 -P -K > $outfile
pscoast $range -JM$scale -B10g5 -D$res -P -W$lwidth -G$fill -O -K >> $outfile
echo... (1 Reply)
Hi Friends ,
I want to know how to format the output for the following:
i searched in the forum and couldnt get the exact requirement.
Thanks in advance . (2 Replies)
Dear all,
I am using following function of some script to assign variable "JobNo" some value form file $SAMPLE"_status.log" ( generated using the red color command )
crab ntuplize_crab -status -c $SAMPLE >& $SAMPLE"_status.log" &
echo $SAMPLE"_status.log" "====="
jobNo=$(awk... (10 Replies)
p1=text1
p2=text2(in red color)
when i am trying to replace $p1 with $p2, content of the file from text2 become red. so when i open that file using vi its showing color code before tex2.
please suggest me how to omit that color code and make content of that file in default color? (1 Reply)