Hello once again:
One thing that seems to be a nice feature is a progress gauge... so I can see how long an operation will take for a task to complete if it is requiring a lot of processing or the file is enormous. I have seen references to gauge operations, but I don't know anything about it or... (1 Reply)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
This is a problem I am having with my 2 semester senior project. I have a LAMP server running Ubuntu 9.10 with... (8 Replies)
hey everyone, new here
i have arch setup and i am using smbnetfs to mount some windows shares in /mnt/smbnet
what i want to do is copy files from my home dir to a dir in /mnt/smbnet but i also need it to remove files if i have deleted them from my home dir
seems that cp would be the... (8 Replies)
Hi,
This is my program.
#!/bin/bash
today=`date +"%b-%d-%Y"`
SERVICE="pbxconnect.php"
if ; then
echo "pbx program is running"
else
nohup php pbxconnect.php > logpbx-$today.txt &
fi
On executing using "sh myprogram.sh" , i get the following error.
myprogram.sh: line 4: '
My... (7 Replies)
I'm a bit new to bash programming and I was assigned the job of writing a script that will check to see if a program server is running and to restart the program if it is not up. The script is supposed to check the program every hour (which I have looked up and I believe I know how to do) and send... (3 Replies)
I just can't figure it out , so please just give me a pice of advise how to:
The existing Linux program foo2bar takes as its only argument the name of a single foo file and converts it to an appropriately-named bar file. Provide a script that when executed will run foo2bar against all foo... (4 Replies)
I'm trying to write a script the simplifies the execution of a program:
After starting the program (sh ~/.mfix/model/make_mfix) I am prompted four times for options:
Do you need SMP version? (y/n)
Do you need DMP version? (y/n)
Do you need debug version? (y/n)
Force re-compilation of... (2 Replies)
suppose i have a bash script:
#!/bin/bash
echo "hello"
echo "how are you"
echo "today"
how can i put the entire script above into a basic c program?
i do not want to translate the bash code to a c code. i want C to run the bash code. is this possible?
i found this on the... (15 Replies)
I wish to be able to give to a client the opportunity to :
0) Turn one of my ubuntu computers into a webserver
1) See a webpage after visiting a url where an external user/client can set a couple of variables (e.g. Number1= ?, Number2=?)
2) By pressing "run" the program runs on my machine
3)... (1 Reply)
I am working on a script to get the final total size and so far have the following and wondering if this can be improved.
# Compare the desired size of each lvm to the standard size. If it is desired is larger than calculate the difference and keep that value as the amount to add to that LVM. ... (5 Replies)
Discussion started by: user3528
5 Replies
LEARN ABOUT REDHAT
glblendequation
GLBLENDEQUATION(3G)GLBLENDEQUATION(3G)NAME
glBlendEquation - set the blend equation
C SPECIFICATION
void glBlendEquation( GLenum mode )
PARAMETERS
mode specifies how source and destination colors are combined. It must be GL_FUNC_ADD, GL_FUNC_SUBTRACT, GL_FUNC_REVERSE_SUBTRACT,
GL_MIN, GL_MAX.
DESCRIPTION
The blend equation determines how a new pixel (the ``source'' color) is combined with a pixel already in the framebuffer (the ``destina-
tion'' color).
GL_MIN sets the blend equation so that each component of the result color is the minimum of the corresponding components of the source and
destination colors.
GL_MAX sets the blend equation so that each component of the result color is the maximum of the corresponding components of the source and
destination colors.
The remaining blend equations use the source and destination blend factors specified by glBlendFunc. See glBlendFunc for a description of
the various blend factors.
In the equations that follow, source and destination color components are referred to as (Rs,Gs,Bs,As) and (Rd,Gd,Bd,Ad), respectively.
The result color is referred to as (Rr,Gr,Br,Ar). The source and destination blend factors are denoted (sR,sG,sB,sA) and (dR,dG,dB,dA),
respectively. For these equations all color components are understood to have values in the range [0, 1].
GL_FUNC_ADD
sets the blend equation so that the source and destination data are added. Each component of the source color is multiplied by the
corresponding source factor, then each component of the destination color is multiplied by the corresponding destination factor.
The result is the componentwise sum of the two products, clamped to the range [0, 1].
Rr=min(1,RssR+RddR)
Gr=min(1,GssG+GddG)
Br=min(1,BssB+BddB)
Ar=min(1,AssA+AddA)
GL_FUNC_SUBTRACT
Is like GL_FUNC_ADD except the product of the destination factor and the destination color is componentwise subtracted from the
product of the source factor and the source color. The result is clamped to the range [0, 1].
Rr=max(0,RssR-RddR)
Gr=max(0,GssG-GddG)
Br=max(0,BssB-BddB)
Ar=max(0,AssA-AddA)
GL_FUNC_REVERSE_SUBTRACT
Is like GL_FUNC_ADD except the product of the source factor and the source color is componentwise subtracted from the product of the
destination factor and the destination color. The result is clamped to the range [0, 1].
Rr=max(0,RddR-RssR)
Gr=max(0,GddG-GssG)
Br=max(0,BddB-BssB)
Ar=max(0,AddA-AssA)
The GL_MIN and GL_MAX equations are useful for applications that analyze
image data (image thresholding against a constant color, for example). The GL_FUNC_ADD equation is useful for antialiasing and trans-
parency, among other things.
Initially, the blend equation is set to GL_FUNC_ADD.
NOTES
glBlendEquation is part of the GL_ARB_imaging subset. glBlendEquation is present only if GL_ARB_imaging is returned when glGetString is
called with GL_EXTENSIONS as its argument.
The GL_MIN, and GL_MAX equations do not use the source or destination factors, only the source and destination colors.
ERRORS
GL_INVALID_ENUM is generated if mode is not one of GL_FUNC_ADD, GL_FUNC_SUBTRACT, GL_FUNC_REVERSE_SUBTRACT, GL_MAX, or GL_MIN.
GL_INVALID_OPERATION is generated if glBlendEquation is executed between the execution of glBegin and the corresponding execution of glEnd.
ASSOCIATED GETS
glGet with an argument of GL_BLEND_EQUATION
SEE ALSO glGetString(3G), glBlendColor(3G), glBlendFunc(3G)GLBLENDEQUATION(3G)