packages feed

apecs-gloss 0.2.2 → 0.2.3

raw patch · 2 files changed

+2/−2 lines, 2 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- Apecs.Physics.Gloss: drawBody :: Has w IO Shape => (Body, Transform, ShapeList) -> System w Picture
+ Apecs.Physics.Gloss: drawBody :: Has w IO Physics => (Body, Transform, ShapeList) -> System w Picture

Files

apecs-gloss.cabal view
@@ -1,5 +1,5 @@ name:                apecs-gloss-version:             0.2.2+version:             0.2.3 synopsis:            Simple gloss renderer for apecs homepage:            https://github.com/jonascarpay/apecs/apecs-gloss license:             BSD3
src/Apecs/Physics/Gloss.hs view
@@ -33,7 +33,7 @@  Translate (realToFrac x) (realToFrac y) .  Rotate (negate . radToDeg . realToFrac $ theta) -drawBody :: Has w IO Shape => (Body, Transform, ShapeList) -> System w Picture+drawBody :: Has w IO Physics => (Body, Transform, ShapeList) -> System w Picture drawBody (btype, transform, ShapeList shapes) = color shColor . worldTransform transform <$> foldM foldfn mempty shapes   where foldfn pic shapeEty = do           Shape _ convex <- get shapeEty