Subversion Repositories gelsvn

Rev

Rev 369 | Rev 502 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 369 Rev 373
Line 3... Line 3...
3
#include <string>
3
#include <string>
4
#include <GL/glew.h>
4
#include <GL/glew.h>
5
#include <GLGraphics/gel_glu.h>
5
#include <GLGraphics/gel_glu.h>
6
using namespace std;
6
using namespace std;
7
 
7
 
-
 
8
namespace GLGraphics
-
 
9
{
8
void print_glsl_program_log(GLuint obj)
10
  void print_glsl_program_log(GLuint obj)
9
{
11
  {
10
	GLint infologLength = 0;
12
	  GLint infologLength = 0;
11
	glGetProgramiv(obj, GL_INFO_LOG_LENGTH, &infologLength);
13
	  glGetProgramiv(obj, GL_INFO_LOG_LENGTH, &infologLength);
12
	if (infologLength > 0)
14
	  if (infologLength > 0)
Line 61... Line 63...
61
	string str = read_glsl_source(path, file);
63
	  string str = read_glsl_source(path, file);
62
	if(str != "")
64
	  if(str != "")
63
		return create_glsl_shader(stype, str);
65
		  return create_glsl_shader(stype, str);
64
	return 0;
66
	  return 0;
65
}
67
  }
66
 
68
}