Handbook
Glossary
segments-to-render ( player -- segments )
Vocabulary
jamshred
.
gl
Inputs
player
an
object
Outputs
segments
an
object
Definition
USING:
accessors
jamshred.tunnel
kernel
math
;
IN:
jamshred.gl
:
segments-to-render
( player -- segments )
dup
nearest-segment>>
number>>
dup
n-segments-behind
-
swap
n-segments-ahead
+
rot
tunnel>>
sub-tunnel
;