Handbook
Glossary
(make-reflection-depthbuffer) ( -- depthbuffer )
Vocabulary
spheres
Inputs
None
Outputs
depthbuffer
an
object
Definition
USING:
kernel
opengl.framebuffers
opengl.gl
;
IN:
spheres
:
(make-reflection-depthbuffer)
( -- depthbuffer )
gen-renderbuffer
[
GL_RENDERBUFFER
swap
glBindRenderbuffer
GL_RENDERBUFFER
GL_DEPTH_COMPONENT32
(reflection-dim)
glRenderbufferStorage
]
keep
;