This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.

Error

(line 10, column 14): unexpected "(" expecting WHITESPACE, NEWLINE, reserved word `as`, reserved word `exposing` or FRESH_LINE
module Engine.Mesh.Mesh where

{-| This module contains the definition of the mesh type

# Mesh Type
@docs Mesh

-}

import WebGL (Triangle)
import Engine.Shader.Attribute (Attribute)

{-| Mesh type. A mesh is simply a list of triangles where each vertex
has some property (in this case, just the position property). This type is
used to construct arbitrary geometry that can be sent to the GPU to be
rendered to the screen.

For reference, Triangle just a 3-tuple:

    type alias Triangle a = (a, a, a)

and Attribute is just a record type with a position field:

    type alias Attribute = {
      position : Vec3
    }

-}
type alias Mesh = List (Triangle Attribute)