Handbook
Glossary
draw-bunny ( geom draw -- )
Vocabulary
bunny
.
model
Inputs
geom
an
object
draw
an
object
Outputs
None
Definition
IN:
bunny.model
GENERIC:
draw-bunny
( geom draw -- )
Methods
USING:
accessors
bunny.cel-shaded
bunny.model
;
M:
bunny-cel-shaded
draw-bunny
program>>
(draw-cel-shaded-bunny)
;
USING:
accessors
bunny.fixed-pipeline
bunny.model
kernel
opengl.gl
specialized-arrays.instances.alien.c-types.float
;
M:
bunny-fixed-pipeline
draw-bunny
drop
GL_LIGHTING
glEnable
GL_LIGHT0
glEnable
GL_COLOR_MATERIAL
glEnable
GL_LIGHT0
GL_POSITION
float-array{
1.0 -1.0 1.0 1.0
}
underlying>>
glLightfv
GL_FRONT_AND_BACK
GL_SHININESS
100.0
glMaterialf
GL_FRONT_AND_BACK
GL_SPECULAR
glColorMaterial
GL_FRONT_AND_BACK
GL_AMBIENT_AND_DIFFUSE
glColorMaterial
0.6 0.5 0.5 1.0
glColor4f
bunny-geom
;
USING:
bunny.model
bunny.outlined
kernel
;
M:
bunny-outlined
draw-bunny
[
remake-framebuffer-if-needed
]
[
(pass1)
]
[
(pass2)
]
tri
;