Handbook
Glossary
gl-program-info-log ( program -- log )
Vocabulary
opengl
.
shaders
Inputs
program
A
gl-program
object
Outputs
log
a
string
Word description
Retrieves the info log for
program
, including any errors or warnings generated in linking the program object.
Definition
USING:
alien.c-types
alien.data
alien.strings
destructors
io.encodings.ascii
kernel
libc
opengl.gl
;
IN:
opengl.shaders
:
gl-program-info-log
( program -- log )
dup
gl-program-info-log-length
dup
[
1
calloc
&free
[
0
int
<ref>
swap
glGetProgramInfoLog
]
keep
ascii
alien>string
]
with-destructors
;