Zinggi/elm-2d-game/2.0.0

NOTE: this package is not compatible with Elm 0.19.1

Game.TwoD.Shapes

Shapes for WebGL rendering.

You don't need this module, unless you want to have a ready made square for a custom vertex shader. Since we're dealing with 2d only, the only available shape is a square

unitSquare : Mesh Vertex

A square with corners (0, 0), (1, 1)

type alias Vertex =
{ position : Vec2 }

Just an alias for a 2d vector. Needs to be in a record because it will be passed as an attribute to the vertex shader