h-raylib 4.5.0.1 → 4.5.0.2
raw patch · 3 files changed
+7/−7 lines, 3 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Raylib.Types: [camera3d'fovy] :: Camera3D -> CFloat
- Raylib.Types: [camera3d'projection] :: Camera3D -> CInt
+ Raylib.Types: [camera3D'fovy] :: Camera3D -> CFloat
+ Raylib.Types: [camera3D'projection] :: Camera3D -> CInt
Files
- README.md +2/−2
- h-raylib.cabal +2/−2
- src/Raylib/Types.hs +3/−3
README.md view
@@ -54,7 +54,7 @@ You may need to run the following to install [X11](https://en.wikipedia.org/wiki/X_Window_System) (a window manager for Linux). ```bash -sudo apt-get install libxrandr-dev libxi-dev libxcursor-dev libxinerama-dev +sudo apt-get install libx11-dev libxrandr-dev libxi-dev libxcursor-dev libxinerama-dev ``` Now, h-raylib should automatically work if you do not disable the `detect-platform` flag. In that case, you may skip the following. @@ -64,7 +64,7 @@ Include the following in your cabal file, or use the `platform-linux` flag when building ```cabal -extra-libraries: GL pthread m dl rt X11 +extra-libraries: GL c m pthread dl rt X11 Xinerama Xcursor Xrandr Xi ``` ### Other platforms
h-raylib.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.4 name: h-raylib -version: 4.5.0.1 +version: 4.5.0.2 synopsis: Raylib bindings for Haskell category: graphics description: This library includes Haskell bindings to the Raylib library. It supports Windows, Mac, Linux, and BSD. @@ -61,7 +61,7 @@ extra-libraries: opengl32 gdi32 winmm shell32 cc-options: -DPLATFORM_DESKTOP elif flag(platform-linux) || (flag(detect-platform) && os(linux)) - extra-libraries: GL c m pthread dl rt X11 + extra-libraries: GL c m pthread dl rt X11 Xinerama Xcursor Xrandr Xi cc-options: -Wno-unused-result -DPLATFORM_DESKTOP elif flag(platform-mac) || (flag(detect-platform) && os(darwin)) frameworks: OpenGL Cocoa IOKit CoreVideo CoreAudio CoreFoundation
src/Raylib/Types.hs view
@@ -669,8 +669,8 @@ { camera3D'position :: Vector3, camera3D'target :: Vector3, camera3D'up :: Vector3, - camera3d'fovy :: CFloat, - camera3d'projection :: CInt + camera3D'fovy :: CFloat, + camera3D'projection :: CInt } deriving (Eq, Show) @@ -1706,4 +1706,4 @@ pokeByteOff _p 0 v0 pokeByteOff _p 4 v1 pokeByteOff _p 8 v2 - return ()+ return ()