Equalizer  2.0.0
Parallel Rendering Framework
shader.h
1 
2 /* Copyright (c) 2015, Stefan Eilemann <eile@equalizergraphics.com>
3  * Daniel Nachbaur <danielnachbaur@gmail.com>
4  *
5  * This library is free software; you can redistribute it and/or modify it under
6  * the terms of the GNU Lesser General Public License version 2.1 as published
7  * by the Free Software Foundation.
8  *
9  * This library is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11  * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12  * details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with this library; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17  */
18 
19 #ifndef EQUTIL_SHADER_H
20 #define EQUTIL_SHADER_H
21 
22 #include <eq/api.h>
23 #include <eq/types.h>
24 
25 namespace eq
26 {
27 namespace util
28 {
29 namespace shader
30 {
31 
41 EQ_API bool compile( const GLEWContext* glewContext,
42  const unsigned shader, const char* source );
43 
55 EQ_API bool linkProgram( const GLEWContext* glewContext,
56  const unsigned program, const char* vertexShaderSource,
57  const char* fragmentShaderSource );
58 
59 }
60 }
61 }
62 
63 #endif // EQUTIL_SHADER_H
The Equalizer client library.
Definition: eq/agl/types.h:23