mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 20:32:16 +00:00
7fa04bb1a6
This adds back compatibility for CoglShaders that reference the cogl_tex_coord_in[] or cogl_tex_coord_out[] varyings. Unlike the previous way this was done this patch maintains the use of layer numbers for attributes and maintains forwards compatibility by letting shaders alternatively access the per-layer tex_coord varyings via cogl_tex_coord%i_in/out defines that index into the array.
37 lines
1.4 KiB
C
37 lines
1.4 KiB
C
/*
|
|
* Cogl
|
|
*
|
|
* An object oriented GL/GLES Abstraction/Utility Layer
|
|
*
|
|
* Copyright (C) 2012 Intel Corporation.
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library. If not, see
|
|
* <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef _COGL_GLSL_SHADER_PRIVATE_H_
|
|
#define _COGL_GLSL_SHADER_PRIVATE_H_
|
|
|
|
void
|
|
_cogl_glsl_shader_set_source_with_boilerplate (CoglContext *ctx,
|
|
const char *version_string,
|
|
GLuint shader_gl_handle,
|
|
GLenum shader_gl_type,
|
|
CoglPipeline *pipeline,
|
|
GLsizei count_in,
|
|
const char **strings_in,
|
|
const GLint *lengths_in);
|
|
|
|
#endif /* _COGL_GLSL_SHADER_PRIVATE_H_ */
|