gl-shader-info-log ( shader -- log ) (original) (raw)
gl-shader-info-log ( shader -- log )
Inputs
shader | A gl-shader object |
---|
Outputs
log | a string |
---|
Word description
Retrieves the info log for shader, including any errors or warnings generated in compiling the shader object.
Definition
USING: alien.c-types alien.data alien.strings destructors
io.encodings.ascii kernel libc opengl.gl ;
: gl-shader-info-log ( shader -- log )
dup gl-shader-info-log-length dup [
1 calloc &free
[ 0 int swap glGetShaderInfoLog ] keep
ascii alien>string
] with-destructors ;