This one is a bit of bugger and I'm not sure if it's entirely relevant to this board but here goes...
I'm trying to produce some fixed width output to a List widget (X11/Motif GUI) So, I use something similar to:
sprintf(Buffer, "%*d%*f", 20, some_integer, 20, some_float);
This gives me a... (0 Replies)
Hi, I have two files.
File1:
File1 contains two fixed width columns ID of 15 characters length and Name is of 100 characters length.
ID Name
1-43<<11 spaces>>Swapna<<94 spaces>>
1-234<<10 spaces>>Mani<<96 spaces>>
1-3456<<9 spaces>>Kapil<<95 spaces>>
File2:
... (4 Replies)
Hi, I have two input files.
File1:
ID Name Place
1-234~name1~Newyork
1-34~name2~Boston
1-2345~name3~Hungary
File1 is a variable length file where each column is seperated by delimitter "~".
File2:
ID Country
1-34<<11 SPACES>>USA<<7 spaces>>
1-234<<10 SPACES>>UK<<8... (5 Replies)
I am trying to remove a line feed (\n) within a fixed width record. I tried the tr -d ‘\n' command, but it also removes the record delimiter. Is there a way to remove the line feed without removing the record delimiter? (10 Replies)
Hi,
I have a fixed width text file without any header row. One of the columns contains a date in YYYYMMDD format.
If the original file contains 3 dates, I want my shell script to split the file into 3 small files with data for each date.
I am a newbie and need help doing this. (14 Replies)
Hello all,
This is my first post and I hope you can help me out.
I searched for quite some hours now and haven't found a simple solution to my problem.
It is as following:
I got this file:
dl.dropbox.com/u/14586156/stuff/Bookmarks.plist
and want to replace the Text between... (9 Replies)
Hi Guys
I am checking the treads to get the answer but i am not able to get the answer for my question.
I have two files. First file is a pattern file and the second file is the file i want to search in it. Output will be the lines from file2.
File1:
P2797f12af 44751228... (10 Replies)
Hello gurus,
I have a file containing 5 columns delimited by '#' as shown in the example below:
HRP1000-PLVAR#HRP1000-OTYPE#HRP1000-OBJID#HRP1000-BEGDA#HRP1000-ENDDA#
99991231#AU7129#000000000#1 PROCTER & GAMBLE#
99991231#TT4283#1000013883#21111 LAUNDRY#
99991231#TT4283#1000013884#21121 DISH... (3 Replies)
Hi All,
I need to join fixed width files on a column which is position 1 to 3 and need to have all the records from file1
file1.txt
Cu1nullL1L2
Cu2nullL1L2
Cu3nullL1L2
file2.txt
Cu1B1B2
Cu3B1B2
output.txt
Cu1L1B1L2B2
Cu2L1L2
Cu3L1B1L2B3
I tried but not getting the expected... (12 Replies)
Discussion started by: shash
12 Replies
LEARN ABOUT DEBIAN
glbindfragdatalocation
GLBINDFRAGDATALOCATI(3G) [FIXME: manual] GLBINDFRAGDATALOCATI(3G)NAME
glBindFragDataLocation - bind a user-defined varying out variable to a fragment shader color number
C SPECIFICATION
void glBindFragDataLocation(GLuint program, GLuint colorNumber, const char * name);
PARAMETERS
program
The name of the program containing varying out variable whose binding to modify
colorNumber
The color number to bind the user-defined varying out variable to
name
The name of the user-defined varying out variable whose binding to modify
DESCRIPTION
glBindFragDataLocation explicitly specifies the binding of the user-defined varying out variable name to fragment shader color number
colorNumber for program program. If name was bound previously, its assigned binding is replaced with colorNumber. name must be a
null-terminated string. colorNumber must be less than GL_MAX_DRAW_BUFFERS.
The bindings specified by glBindFragDataLocation have no effect until program is next linked. Bindings may be specified at any time after
program has been created. Specifically, they may be specified before shader objects are attached to the program. Therefore, any name may be
specified in name, including a name that is never used as a varying out variable in any fragment shader object. Names beginning with gl_
are reserved by the GL.
In addition to the errors generated by glBindFragDataLocation, the program program will fail to link if:
o The number of active outputs is greater than the value GL_MAX_DRAW_BUFFERS.
o More than one varying out variable is bound to the same color number.
NOTES
Varying out varyings may have indexed locations assigned explicitly in the shader text using a location layout qualifier. If a shader
statically assigns a location to a varying out variable in the shader text, that location is used and any location assigned with
glBindFragDataLocation is ignored.
ERRORS
GL_INVALID_VALUE is generated if colorNumber is greater than or equal to GL_MAX_DRAW_BUFFERS.
GL_INVALID_OPERATION is generated if name starts with the reserved gl_ prefix.
GL_INVALID_OPERATION is generated if program is not the name of a program object.
ASSOCIATED GETS
glGetFragDataLocation() with a valid program object and the the name of a user-defined varying out variable
SEE ALSO
glCreateProgram(), glGetFragDataLocation()
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/.
[FIXME: source] 05/30/2012 GLBINDFRAGDATALOCATI(3G)