1150c580464a7a4d6b0ad3362f23f790ded65e7abScott Randolph/*
2150c580464a7a4d6b0ad3362f23f790ded65e7abScott Randolph * Copyright (C) 2017 The Android Open Source Project
3150c580464a7a4d6b0ad3362f23f790ded65e7abScott Randolph *
4150c580464a7a4d6b0ad3362f23f790ded65e7abScott Randolph * Licensed under the Apache License, Version 2.0 (the "License");
5150c580464a7a4d6b0ad3362f23f790ded65e7abScott Randolph * you may not use this file except in compliance with the License.
6150c580464a7a4d6b0ad3362f23f790ded65e7abScott Randolph * You may obtain a copy of the License at
7150c580464a7a4d6b0ad3362f23f790ded65e7abScott Randolph *
8150c580464a7a4d6b0ad3362f23f790ded65e7abScott Randolph *      http://www.apache.org/licenses/LICENSE-2.0
9150c580464a7a4d6b0ad3362f23f790ded65e7abScott Randolph *
10150c580464a7a4d6b0ad3362f23f790ded65e7abScott Randolph * Unless required by applicable law or agreed to in writing, software
11150c580464a7a4d6b0ad3362f23f790ded65e7abScott Randolph * distributed under the License is distributed on an "AS IS" BASIS,
12150c580464a7a4d6b0ad3362f23f790ded65e7abScott Randolph * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13150c580464a7a4d6b0ad3362f23f790ded65e7abScott Randolph * See the License for the specific language governing permissions and
14150c580464a7a4d6b0ad3362f23f790ded65e7abScott Randolph * limitations under the License.
15150c580464a7a4d6b0ad3362f23f790ded65e7abScott Randolph */
16150c580464a7a4d6b0ad3362f23f790ded65e7abScott Randolph
17150c580464a7a4d6b0ad3362f23f790ded65e7abScott Randolph#ifndef SHADER_H
18150c580464a7a4d6b0ad3362f23f790ded65e7abScott Randolph#define SHADER_H
19150c580464a7a4d6b0ad3362f23f790ded65e7abScott Randolph
20150c580464a7a4d6b0ad3362f23f790ded65e7abScott Randolph#include <GLES2/gl2.h>
21150c580464a7a4d6b0ad3362f23f790ded65e7abScott Randolph
22150c580464a7a4d6b0ad3362f23f790ded65e7abScott Randolph
23150c580464a7a4d6b0ad3362f23f790ded65e7abScott Randolph// Create a program object given vertex and pixels shader source
24150c580464a7a4d6b0ad3362f23f790ded65e7abScott RandolphGLuint buildShaderProgram(const char* vtxSrc, const char* pxlSrc, const char* name);
25150c580464a7a4d6b0ad3362f23f790ded65e7abScott Randolph
26150c580464a7a4d6b0ad3362f23f790ded65e7abScott Randolph#endif // SHADER_H