GLSL shader base class.
More...
#include <program.h>
GLSL shader base class.
Definition at line 75 of file program.h.
◆ Shader() [1/2]
Beatmup::GL::Shader::Shader |
( |
const Shader & |
| ) |
|
|
privatedelete |
disabling copying constructor
◆ Shader() [2/2]
◆ ~Shader()
◆ getHandle()
handle_t Beatmup::GL::Shader::getHandle |
( |
| ) |
const |
|
inlineprotected |
◆ getType()
uint32_t Beatmup::GL::Shader::getType |
( |
| ) |
const |
|
inlineprotected |
◆ compile()
Definition at line 50 of file program.cpp.
51 glShaderSource(
handle, 1, &source, 0);
55 glGetShaderiv(
handle, GL_COMPILE_STATUS, &status);
56 if (status == GL_TRUE)
59 glGetShaderiv(
handle, GL_INFO_LOG_LENGTH, &logLength);
61 GLchar* log = (GLchar*)malloc(logLength);
62 glGetShaderInfoLog(
handle, logLength, &logLength, log);
63 std::string msg((
char*)log);
66 msg = msg +
"\n" + source;
◆ Program
◆ handle
◆ type
uint32_t Beatmup::GL::Shader::type |
|
private |
The documentation for this class was generated from the following files: