play-cljc.gl.entities-2d

(->camera)

(->camera y-down?)

Returns a 2D camera. The 1-arg arity is deprecated and should not be used!

(->entity game data)

Returns a 2D entity with a vector of attribute `data`.

(->image-entity game data width height)

Returns an image entity with a vector of image `data`, along with a `width` and `height` in pixels.