Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

glgetuniformblockindex(3g) [mojave man page]

GLGETUNIFORMBLOCKIND(3G)					    OpenGL 3.3						  GLGETUNIFORMBLOCKIND(3G)

NAME
glGetUniformBlockIndex - retrieve the index of a named uniform block C SPECIFICATION
GLuint glGetUniformBlockIndex(GLuint program, const GLchar *uniformBlockName); PARAMETERS
program Specifies the name of a program containing the uniform block. uniformBlockName Specifies the address an array of characters to containing the name of the uniform block whose index to retrieve. DESCRIPTION
glGetUniformBlockIndex retrieves the index of a uniform block within program. program must be the name of a program object for which the command glLinkProgram() must have been called in the past, although it is not required that glLinkProgram() must have succeeded. The link could have failed because the number of active uniforms exceeded the limit. uniformBlockName must contain a nul-terminated string specifying the name of the uniform block. glGetUniformBlockIndex returns the uniform block index for the uniform block named uniformBlockName of program. If uniformBlockName does not identify an active uniform block of program, glGetUniformBlockIndex returns the special identifier, GL_INVALID_INDEX. Indices of the active uniform blocks of a program are assigned in consecutive order, beginning with zero. ERRORS
GL_INVALID_OPERATION is generated if program is not the name of a program object for which glLinkProgram() has been called in the past. NOTES
glGetUniformBlockIndex is available only if the GL version is 3.1 or greater. SEE ALSO
glGetActiveUniformBlockName(), glGetActiveUniformBlock(), glLinkProgram() COPYRIGHT
Copyright (C) 2010 Khronos Group. 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/. OpenGL 3.3 03/08/2011 GLGETUNIFORMBLOCKIND(3G)

Check Out this Related Man Page

GLGETUNIFORMBLOCKIND(3G)					    OpenGL 3.3						  GLGETUNIFORMBLOCKIND(3G)

NAME
glGetUniformBlockIndex - retrieve the index of a named uniform block C SPECIFICATION
GLuint glGetUniformBlockIndex(GLuint program, const GLchar *uniformBlockName); PARAMETERS
program Specifies the name of a program containing the uniform block. uniformBlockName Specifies the address an array of characters to containing the name of the uniform block whose index to retrieve. DESCRIPTION
glGetUniformBlockIndex retrieves the index of a uniform block within program. program must be the name of a program object for which the command glLinkProgram() must have been called in the past, although it is not required that glLinkProgram() must have succeeded. The link could have failed because the number of active uniforms exceeded the limit. uniformBlockName must contain a nul-terminated string specifying the name of the uniform block. glGetUniformBlockIndex returns the uniform block index for the uniform block named uniformBlockName of program. If uniformBlockName does not identify an active uniform block of program, glGetUniformBlockIndex returns the special identifier, GL_INVALID_INDEX. Indices of the active uniform blocks of a program are assigned in consecutive order, beginning with zero. ERRORS
GL_INVALID_OPERATION is generated if program is not the name of a program object for which glLinkProgram() has been called in the past. NOTES
glGetUniformBlockIndex is available only if the GL version is 3.1 or greater. SEE ALSO
glGetActiveUniformBlockName(), glGetActiveUniformBlock(), glLinkProgram() COPYRIGHT
Copyright (C) 2010 Khronos Group. 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/. OpenGL 3.3 03/08/2011 GLGETUNIFORMBLOCKIND(3G)
Man Page

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

To block ip address

Hi, I need to block a ip address without logging to the server not for a single server for more number of servers. I use the tool " apf" to block an ip apf -d <Ipaddress> Is this can be done with the shell script.? (10 Replies)
Discussion started by: gsiva
10 Replies

2. Shell Programming and Scripting

finding a block in a file and replace with another file block.

(1) Yes but how is this block different from the other 24? You will need this information in order to identify and replace this block correctly (out of the 25). Ans: The 1st line and last line of this block are unique from other block. The 1st line is “rem Subset Rows (&&tempName.*) and The... (1 Reply)
Discussion started by: Zaheer.mic
1 Replies

3. Shell Programming and Scripting

reformating non-uniform strings

I have a set of free-form phone numbers that are not uniform and I want to reformat them into a standard uniform string. These are embedded at the end of a colon seperated file built by a large nawk + tr piping like such: XXXXX:YYYYY:ZZZZZ:(333)333-3333x33333 XXXXX:YYYYY:ZZZZZ:x44444... (9 Replies)
Discussion started by: lordsmiter
9 Replies

4. Shell Programming and Scripting

Execute a C program and retrieve information

Hi I have the following script: #!/bin/sh gcc -o program program.c ./program & PID=$! where i execute a C program and i get its pid. I want to retrieve information about this program (e.g memory consumption) using command top. So far i have: top -d 1.0 -p $PID But i dont know how to... (6 Replies)
Discussion started by: nteath
6 Replies

5. Shell Programming and Scripting

Searching for strings amongst non-uniform data

Hi Guys, I have a source file which contains significant strings amongst a lot of dross in non-uniform format, I'd like to search the input file for any examples of data from my reference file, and then output any matches to a list (text file). I've made something that achieves this, it's... (4 Replies)
Discussion started by: gazza86
4 Replies

6. Programming

If else block C code

Hi, We have hundreds of c codes for which we need to identify and analyse all the if , nested if and while conditions used in code.. is thr any tool to do that. All we is like index (like 1.2.1.3 in case of nested if)and the corresponding code (may be wrriten in a table/file). Thanks..! (2 Replies)
Discussion started by: anijan
2 Replies