Liking cljdoc? Tell your friends :D
ClojureScript only.

lemon.lime.protocols


Renderercljsprotocol

The Renderer protocol deals with loading and rendering sprites. The render function is meant to draw meaningful changes to the sprite on some display.

The meaning of "load" may vary from renderer to renderer. However, loading should be responsible for setting the initial state of the sprite, especially where dimensions and the finite frame set are concerned. It is expected that the load function sets state for the sprites :sprite-sheet and :frames keys while transitioning to a :lemon.lime/loaded state.

The Renderer protocol deals with loading and rendering sprites. The render function
is meant to draw meaningful changes to the sprite on some display. 

The meaning of "load" may vary from renderer to renderer. However,
loading should be responsible for setting the initial state of the sprite, especially
where dimensions and the finite frame set are concerned. It is expected
that the load function sets state for the sprites :sprite-sheet and :frames keys while transitioning
to a :lemon.lime/loaded state.

-loadcljs

(-load self sprite)

Load the sprite and put it into a :lemon.lime/loaded state. Sets :sprite-sheet and :frames keys

Load the sprite and put it into a :lemon.lime/loaded state. Sets :sprite-sheet and :frames keys

-rendercljs

(-render self sprite options)

Draw state changes to the sprite

Draw state changes to the sprite
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close