Handbook
Glossary
gl-shader-info-log ( shader -- log )
Vocabulary
opengl
.
shaders
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
;
IN:
opengl.shaders
:
gl-shader-info-log
( shader -- log )
dup
gl-shader-info-log-length
dup
[
1
calloc
&free
[
0
int
<ref>
swap
glGetShaderInfoLog
]
keep
ascii
alien>string
]
with-destructors
;