23 itsVertexShader.
load(vertex_shader, GL_VERTEX_SHADER);
24 itsFragmentShader.
load(fragment_shader, GL_FRAGMENT_SHADER);
25 itsId = glCreateProgram();
26 GL_CHECK(glAttachShader(itsId, itsVertexShader.
id()));
27 GL_CHECK(glAttachShader(itsId, itsFragmentShader.
id()));
30 LINFO(
"GPU program created using vshader=" << vertex_shader <<
" and fshader=" << fragment_shader);
GPUprogram(char const *vertex_shader, char const *fragment_shader)
Constructor, loads and compiles the program, assigns it a program ID.