(->entity game data)

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

Source

(defn ->entity "Returns a 2D entity with a vector of attribute `data`." [game data] (->> {:vertex two-d-vertex-shader, :fragment two-d-fragment-shader, :attributes {'a_position {:data data, :type (gl game FLOAT), :size 2}}, :uniforms {'u_matrix (m/identity-matrix 3), 'u_color [0 0 0 1]}} map->TwoDEntity))