Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype MeshIx = MeshIx {}
- data Mesh = Mesh {}
- data MeshPrimitive = MeshPrimitive {}
- newtype MeshPrimitiveMode = MeshPrimitiveMode {}
- pattern POINTS :: MeshPrimitiveMode
- pattern LINES :: MeshPrimitiveMode
- pattern LINE_LOOP :: MeshPrimitiveMode
- pattern LINE_STRIP :: MeshPrimitiveMode
- pattern TRIANGLES :: MeshPrimitiveMode
- pattern TRIANGLE_STRIP :: MeshPrimitiveMode
- pattern TRIANGLE_FAN :: MeshPrimitiveMode
Documentation
A set of primitives to be rendered.
A node can contain one mesh. A node's transform places the mesh in the scene.
Instances
Eq Mesh Source # | |
Show Mesh Source # | |
Generic Mesh Source # | |
ToJSON Mesh Source # | |
Defined in Codec.GlTF.Mesh | |
FromJSON Mesh Source # | |
type Rep Mesh Source # | |
Defined in Codec.GlTF.Mesh type Rep Mesh = D1 (MetaData "Mesh" "Codec.GlTF.Mesh" "gltf-codec-0.1.0.1-Gz344sJMz9cG5YV9y1ntpC" False) (C1 (MetaCons "Mesh" PrefixI True) ((S1 (MetaSel (Just "primitives") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 (Vector MeshPrimitive)) :*: S1 (MetaSel (Just "weights") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 (Maybe (Vector Float)))) :*: (S1 (MetaSel (Just "name") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "extensions") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 (Maybe Object)) :*: S1 (MetaSel (Just "extras") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 (Maybe Value)))))) |
data MeshPrimitive Source #
Geometry to be rendered with the given material.
MeshPrimitive | |
|
Instances
newtype MeshPrimitiveMode Source #
The type of primitives to render.
Instances
pattern POINTS :: MeshPrimitiveMode Source #
pattern LINES :: MeshPrimitiveMode Source #
pattern LINE_LOOP :: MeshPrimitiveMode Source #
pattern LINE_STRIP :: MeshPrimitiveMode Source #
pattern TRIANGLES :: MeshPrimitiveMode Source #
pattern TRIANGLE_STRIP :: MeshPrimitiveMode Source #
pattern TRIANGLE_FAN :: MeshPrimitiveMode Source #