(image-example game {:keys [data width height], :as image})

Example

(play-cljc.gl.core/render game (-> entity (assoc :viewport {:x 0, :y 0, :width game-width, :height game-height}) (play-cljc.transforms/project game-width game-height) (play-cljc.transforms/translate 0 0) (play-cljc.transforms/scale img-width img-height)))

Source

(defn image-example [game {:keys [data width height], :as image}] (gl game disable (gl game CULL_FACE)) (gl game disable (gl game DEPTH_TEST)) (assoc game :entity (-> (c/compile game (e/->image-entity game data width height)) (assoc :clear {:color [1 1 1 1], :depth 1})) :image image))