Advertisement
Kirabo

Untitled

Nov 1st, 2017
332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1.     std::string vertex_shader_string = read_from_file(vertex_shader_path);
  2.     std::string fragment_shader_string = read_from_file(fragment_shader_path);
  3.  
  4.     const char* vertex_shader_code = vertex_shader_string.c_str();
  5.     const char* fragment_shader_code = fragment_shader_string.c_str();
  6.  
  7.     std::cout << vertex_shader_code << std::endl;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement