end-game-world ( world -- )
Game worlds
Prev:begin-game-world ( world -- )
Next:tick-game-world ( world -- )


Vocabulary
game.worlds

Inputs and outputs
worlda game-world


Word description
This generic word is called by the end-world method for game-world subclasses immediately after the game world stops the game loop.

See also
game-world, begin-game-world, tick-game-world

Definition
IN: game.worlds

GENERIC: end-game-world ( world -- )


Methods
USING: accessors chipmunk.demo chipmunk.ffi game.worlds kernel
;

M: chipmunk-world end-game-world
space>> [ cpSpaceFreeChildren ] [ cpSpaceFree ] bi ;


USING: fluids game.worlds kernel ;

M: fluids-world end-game-world drop ;


USING: game.worlds kernel ;

M: object end-game-world drop ;


USING: accessors combinators destructors game.worlds
opengl.shaders opengl.textures terrain ;

M: terrain-world end-game-world
{
[ terrain-mesh>> dispose ]
[ terrain-program>> delete-gl-program ]
[ terrain-texture>> delete-texture ]
[ sky-program>> delete-gl-program ]
[ sky-texture>> delete-texture ]
} cleave ;