Lines Matching defs:length

251  * length of <dst> in <length>.
254 * \param length returns number of chars copied
259 GLsizei *length, const GLchar *src)
266 if (length)
267 *length = len;
1074 GLsizei *length, GLchar *infoLog)
1095 _mesa_copy_string(infoLog, bufSize, length, shProg->data->InfoLog);
1101 GLsizei *length, GLchar *infoLog)
1121 _mesa_copy_string(infoLog, bufSize, length, sh->InfoLog);
1130 GLsizei *length, GLchar *sourceOut)
1143 _mesa_copy_string(sourceOut, maxLength, length, sh->Source);
1786 _mesa_GetInfoLogARB(GLhandleARB object, GLsizei maxLength, GLsizei * length,
1791 get_program_info_log(ctx, object, maxLength, length, infoLog);
1794 get_shader_info_log(ctx, object, maxLength, length, infoLog);
1857 GLsizei *length, GLchar *infoLog)
1860 get_program_info_log(ctx, program, bufSize, length, infoLog);
1866 GLsizei *length, GLchar *infoLog)
1869 get_shader_info_log(ctx, shader, bufSize, length, infoLog);
1875 GLsizei *length, GLchar *sourceOut)
1878 get_shader_source(ctx, shader, maxLength, length, sourceOut);
2073 const GLchar *const *string, const GLint *length, bool no_error)
2099 * last element will be set to the total length of the source code.
2114 if (length == NULL || length[i] < 0)
2117 offsets[i] = length[i];
2123 /* Total length of source string is sum off all strings plus two.
2170 const GLchar *const *string, const GLint *length)
2173 shader_source(ctx, shaderObj, count, string, length, true);
2179 const GLchar *const *string, const GLint *length)
2182 shader_source(ctx, shaderObj, count, string, length, false);
2355 const void* binary, GLint length)
2363 * "An INVALID_VALUE error is generated if count or length is negative.
2367 if (n < 0 || length < 0) {
2368 _mesa_error(ctx, GL_INVALID_VALUE, "glShaderBinary(count or length < 0)");
2397 (size_t) length);
2408 _mesa_GetProgramBinary(GLuint program, GLsizei bufSize, GLsizei *length,
2426 * "If <length> is NULL, then no length is returned."
2428 * Ensure that length always points to valid storage to avoid multiple NULL
2431 if (length == NULL)
2432 length = &length_dummy;
2438 * length is zero, and a call to GetProgramBinary will generate an
2445 *length = 0;
2450 *length = 0;
2454 _mesa_get_program_binary(ctx, shProg, bufSize, length, binaryFormat,
2456 assert(*length == 0 || *binaryFormat == GL_PROGRAM_BINARY_FORMAT_MESA);
2462 const GLvoid *binary, GLsizei length)
2479 if (length < 0) {
2480 _mesa_error(ctx, GL_INVALID_VALUE, "glProgramBinary(length < 0)");
2489 * call to GetProgramBinary, and <length> must be the length of the
2501 _mesa_program_binary(ctx, shProg, binaryFormat, binary, length);
2961 GLsizei *length, GLchar *name)
2988 length, name, false, api_name);
2995 GLsizei *length, GLchar *name)
3020 length, name, false, api_name);
3610 const GLchar* const *path, const GLint *length)
3629 char *path_cp = copy_string(ctx, path[i], length ? length[i] : -1,