libigl v2.5.0
Loading...
Searching...
No Matches
create_shader_program.h
Go to the documentation of this file.
1// This file is part of libigl, a simple c++ geometry processing library.
2//
3// Copyright (C) 2013 Alec Jacobson <alecjacobson@gmail.com>
4//
5// This Source Code Form is subject to the terms of the Mozilla Public License
6// v. 2.0. If a copy of the MPL was not distributed with this file, You can
7// obtain one at http://mozilla.org/MPL/2.0/.
8#ifndef IGL_OPENGL_CREATE_SHADER_PROGRAM_H
9#define IGL_OPENGL_CREATE_SHADER_PROGRAM_H
10#include "../igl_inline.h"
11#include "gl.h"
12#include <string>
13#include <map>
14
15namespace igl
16{
17 namespace opengl
18 {
37 const std::string &geom_source,
38 const std::string &vert_source,
39 const std::string &frag_source,
40 const std::map<std::string,GLuint> &attrib,
41 GLuint & id);
44 const std::string &vert_source,
45 const std::string &frag_source,
46 const std::map<std::string,GLuint> &attrib,
47 GLuint & id);
52 const std::string & geom_source,
53 const std::string & vert_source,
54 const std::string & frag_source,
55 const std::map<std::string,GLuint> &attrib);
60 const std::string & vert_source,
61 const std::string & frag_source,
62 const std::map<std::string,GLuint> &attrib);
63 }
64}
65
66#ifndef IGL_STATIC_LIBRARY
67# include "create_shader_program.cpp"
68#endif
69
70#endif
#define IGL_INLINE
Definition igl_inline.h:15
bool create_shader_program(const std::string &geom_source, const std::string &vert_source, const std::string &frag_source, const std::map< std::string, GLuint > &attrib, GLuint &id)
Create a shader program with a vertex and fragments shader loading from source strings and vertex att...
Definition AABB.h:17