Skip to content
This repository has been archived by the owner on Apr 15, 2023. It is now read-only.

Latest commit

 

History

History
73 lines (55 loc) · 3.28 KB

CHANGELOG.md

File metadata and controls

73 lines (55 loc) · 3.28 KB

Changelog

This guide documents changes between different versions of NimraylibNow! and and if necessary simultaneously different versions of Raylib library.

There are not a lot of possibilities to use proper deprecation warnings since it is not always possible to translate #define declarations from C. Sadly upgrades of user code is a necessary part of migration. On the bright side it should mainly consist of renaming, please try the wonderful tool nimgrep, it is shipped with Nim and has a useful "replace" functionality.

Additionally you can consult Raylib's changelog.

NimraylibNow! v0.15, Raylib v4.2 and Raygui v3.2

NimraylibNow!-specific changes:

  • Emscripten support is improved: added TOTAL_MEMORY option and it now allows using resources from your file system. See Emscripten example readme, "Compile options" section.

Raylib-specific changes - consult Raylib's changelog file.

NimraylibNow! v0.14 and Raylib v4.0

NimraylibNow!-specific changes:

  • rlgl module has a lot of intersecting identifiers with raylib module, you will have to fully specify some variables when both modules are imported.
  • Mouse buttons and some keyboard keys will have to be fully specified, MouseButton.Left instead of LeftButton since now they intersect with keyboard buttons.

Raylib-specific changes - consult Raylib's changelog file.

From NimraylibNow! v0.12 to v0.13

  • Mesh type has most of its fields changed from ptr cfloat to ptr UncheckedArray[cfloat]
  • MouseCursor enum has no CURSOR_ prefix, e.g. CURSOR_ARROW is now ARROW
  • GamepadButton enum has no BUTTON_ prefix e.g. BUTTON_LEFT_FACE_UP is now LEFT_FACE_UP
  • GamepadAxis enum has no AXIS_ prefix, e.g. AXIS_LEFT_X is now LEFT_X
  • raygui_Support_Icons define was removed from Raygui, it is enabled by default

From Raylib v3.5 to v3.7 and from NimraylibNow! v0.10 to v0.12

Recommended:

  • Change all imports except for rlgl to just import nimraylib_now

Renamed:

  • Camera.type was renamed to Camera.projection
  • CameraType was renamed to CameraProjection
  • GestureType was renamed to Gestures
  • Material.params type was changed from ptr cfloat to array[4, cfloat]
  • ConfigFlag was renamed to ConfigFlags
  • TraceLogType was renamed to TraceLogLevel
  • TextureFilterMod was renamed to TextureFilter
  • TextureWrapMode was renamed to TextureWrap
  • CubemapLayoutType was renamed to CubemapLayout
  • NPatchInfo.type was renamed to NPatchInfo.layout
  • NPatchType was renamed to NPatchLayout
  • NPatchLayout enum values were renamed to use English words instead of numbers
  • beginVrDrawing was renamed to beginVrStereoMode
  • runPhysicsStep was renamed to updatePhysics
  • getShaderDefault and freinds were moved from raylib module to rlgl

Misc changes:

  • VR handling was changed significantly, see updated example core/core_vr_simulator.nim
  • Importing just nimraylib_now is now possible and it imports all libraries but rlgl
  • "Tuple to object converters for geometry" feature requires importing nimraylib_now/converters or just nimraylib_now