libigl v2.5.0
Loading...
Searching...
No Matches
create_shader_program.h File Reference
#include "../igl_inline.h"
#include "gl.h"
#include <string>
#include <map>
#include "create_shader_program.cpp"

Go to the source code of this file.

Namespaces

namespace  igl
 
namespace  igl::opengl
 

Functions

bool igl::opengl::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 attributes assigned from a map before linking the shaders to the program, making it ready to use with glUseProgram(id)
 
bool igl::opengl::create_shader_program (const std::string &vert_source, const std::string &frag_source, const std::map< std::string, GLuint > &attrib, GLuint &id)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
GLuint igl::opengl::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)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
GLuint igl::opengl::create_shader_program (const std::string &vert_source, const std::string &frag_source, const std::map< std::string, GLuint > &attrib)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.