9 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Dear All,
I am in the beginning stage of learning shell scripting and preparing shell script on my own now.
I would like to get help from fellow mates here.
As I am trying to take O/P with space included from I/P table.
Kindly guide me to align given I/P table as Expected O/P.
... (5 Replies)
Discussion started by: Raja007
5 Replies
2. Shell Programming and Scripting
Hello Everyone,
I have a csv file with text qualifier as "" and data similar to below:
"1","abc","address1","US"
"2","def","address1 "characters in double-quote" address2","IND"
"3","ghi","address1","UK"
In above example, for record 2, we have an issue as in column3 contains double... (2 Replies)
Discussion started by: AnkitSenghani
2 Replies
3. HP-UX
HI all,
I tried to edit my files using HP-UX but my output tends to not align when I add another character in the files
to edit my files i used the command is as follow
chmod +w filename
vi filename
Help, :eek: (1 Reply)
Discussion started by: jasonhpwong
1 Replies
4. Shell Programming and Scripting
Hi Gurus,
This is my raw data. How would I able to format this output into a better alignment?
/dev/vg00/lvol5 /home 0.12 GB 0.02 GB 0.10 GB 19%
/dev/vg00/misc /misc 28.43 GB 4.92 GB 23.51 GB 17%
/dev/vg00/lvol6 /opt 8.25 GB 5.43 GB 2.82 GB 65%
/dev/vgsap/ora10264 ... (10 Replies)
Discussion started by: superHonda123
10 Replies
5. Shell Programming and Scripting
Hi,
I am having a file with with format.
however, for longer xml, the xml code has been truncated like this.
F1 |###################### |String1 |<XML><REQ><MSGTYPE>DBDIRECT</MSGTYPE><SYNC>0</SYNC><CLIENT>C11</CLIENT>NAME=MYNAME|JOB=MYJOB|
| ... (3 Replies)
Discussion started by: shellwell
3 Replies
6. Shell Programming and Scripting
Dear Friends,
I've one file "sample.log" with the below comma separated lines:
BOND_FORWARD,0 succeeded,0 failed.
EQUITY_FORWARD,0 succeeded,0 failed.
FRA,12 succeeded,0 failed.
OPTION_BAR,16 succeeded,0 failed.
OPTION_VAN,76 succeeded,0 failed.
RENTOPT_CAP_FLOOR,4775 succeeded,0 failed.... (2 Replies)
Discussion started by: ganapati
2 Replies
7. UNIX for Dummies Questions & Answers
We have a guy at work who is trying to copy and paste from one file to another using vi and highlighting the code to copy with a mouse.
Source file:
xyz 123 abc 999
zyx 321 cba 999
xyz 123 abc 999
But when he pastes it he gets (I put the underlines in to show... (4 Replies)
Discussion started by: dlam
4 Replies
8. Programming
Hi, I try to marshal a unsigned int and a char * into a buffer, and then unmarshal them later to get them out. I need to put the char * in the front and unsigned int at the end of the buffer. However, my system always give me "BUS ERROR". I am using Sun Sparcs Sloris 2.10.
My code to marshal... (6 Replies)
Discussion started by: nj302
6 Replies
9. Solaris
Hi, I try to marshal a unsigned int and a char * into a buffer, and then unmarshal them later to get them out. I need to put the char * in the front and unsigned int at the end of the buffer. However, my system always give me "BUS ERROR". I am using Sun Sparcs Sloris 2.10.
My code to marshal the... (1 Reply)
Discussion started by: nj302
1 Replies
GLGETUNIFORM(3G) [FIXME: manual] GLGETUNIFORM(3G)
NAME
glGetUniformfv, glGetUniformiv - Returns the value of a uniform variable
C SPECIFICATION
void glGetUniformfv(GLuint program, GLint location, GLfloat *params);
void glGetUniformiv(GLuint program, GLint location, GLint *params);
PARAMETERS
program
Specifies the program object to be queried.
location
Specifies the location of the uniform variable to be queried.
params
Returns the value of the specified uniform variable.
DESCRIPTION
glGetUniform returns in params the value(s) of the specified uniform variable. The type of the uniform variable specified by location
determines the number of values returned. If the uniform variable is defined in the shader as a boolean, int, or float, a single value will
be returned. If it is defined as a vec2, ivec2, or bvec2, two values will be returned. If it is defined as a vec3, ivec3, or bvec3, three
values will be returned, and so on. To query values stored in uniform variables declared as arrays, call glGetUniform for each element of
the array. To query values stored in uniform variables declared as structures, call glGetUniform for each field in the structure. The
values for uniform variables declared as a matrix will be returned in column major order.
The locations assigned to uniform variables are not known until the program object is linked. After linking has occurred, the command
glGetUniformLocation() can be used to obtain the location of a uniform variable. This location value can then be passed to glGetUniform in
order to query the current value of the uniform variable. After a program object has been linked successfully, the index values for uniform
variables remain fixed until the next link command occurs. The uniform variable values can only be queried after a link if the link was
successful.
NOTES
If an error is generated, no change is made to the contents of params.
ERRORS
GL_INVALID_VALUE is generated if program is not a value generated by OpenGL.
GL_INVALID_OPERATION is generated if program is not a program object.
GL_INVALID_OPERATION is generated if program has not been successfully linked.
GL_INVALID_OPERATION is generated if location does not correspond to a valid uniform variable location for the specified program object.
ASSOCIATED GETS
glGetActiveUniform() with arguments program and the index of an active uniform variable
glGetProgram() with arguments program and GL_ACTIVE_UNIFORMS or GL_ACTIVE_UNIFORM_MAX_LENGTH
glGetUniformLocation() with arguments program and the name of a uniform variable
glIsProgram()
SEE ALSO
glCreateProgram(), glLinkProgram(), glUniform()
COPYRIGHT
Copyright (C) 2003-2005 3Dlabs Inc. Ltd. This material may be distributed subject to the terms and conditions set forth in the Open
Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.
[FIXME: source] 05/30/2012 GLGETUNIFORM(3G)