Raylib 2.5 Released
Raylib is an open source C based cross platform game framework released under the zlib/libpng open source license that I previously referred to as “the easiest C/C++ game framework I’ve ever found” and that description is still true today. Raylib started life as a way to teach non-programmers game development in an accessible manner and I would say for the most part, mission accomplished. Since that initial release, raylib has continued to improve and the just released raylib 2.5 is one of the biggest releases yet.
Details from the release notes:
- New window management and filesystem functions to query monitor information, deal with clipboard, check directory files info and even launch a URL with default system web browser. Experimental High-DPI monitor support has also been added through a compile flag.
- Redesigned Gamepad mechanism, now generic for all platforms and gamepads, no more specific gamepad configurations.
Redesigned UWP input system, now raylib supports UWP seamlessly, previous implementation required a custom input system implemented in user code.
rlglmodule has been redesigned to support a unique buffer for shapes drawing batching, including LINES, TRIANGLES, QUADS in the same indexed buffer, also added support for multi-buffering if required. Additionally,
rlPopMatrix()functionality has been reviewed to behave exactly like OpenGL 1.1,
models_rlgl_solar_systemexample has been added to illustrate this behaviour.
- VR simulator has been reviewed to allow custom configuration of Head-Mounted-Device parameters and distortion shader,
core_vr_simulatorhas been properly adapted to showcase this new functionality, now the VR simulator is a generic configurable stereo rendering system that allows any VR device simulation with just a few lines of code or even dynamic tweaking of HMD parameters.
- Support for Unicode text drawing; now raylib processes UTF8 strings on drawing, supporting Unicode codepoints, allowing rendering mostly any existent language (as long as the font with the glyphs is provided). An amazing example showing this feature has also been added:
- Brand new text management API, with the addition of multiple functions to deal with string data, including functionality like replace, insert, join, split, append, to uppercase, to lower… Note that most of those functions are intended for text management on rendering, using pre-loaded internal buffers, avoiding new memory allocation that user should free manually.
- Multiple new shapes and textures drawing functions to support rings (
DrawRingLines()), circle sectors (
DrawCircleSectorLines()), rounded rectangles (
DrawRectangleRoundedLines()) and also n-patch textures (
DrawTextureNPatch()), detailed examples have been added to illustrate all this new functionality.
- Experimental cubemap support, to automatically load multiple cubemap layouts (
LoadTextureCubemap()). It required some internal
rlglredesign to allow cubemap textures.
- Skeletal animation support for 3d models, this addition implied a redesign of
Modeldata structure to accomodate multiple mesh/multiple materials support and bones information. Multiple models functions have been reviewed and added on this process, also glTF models loading support has been added.
You can download raylib here, while the source code is available here. In terms of learning the API, pretty much all you need to know is available on this cheatsheet. Additionally there are a huge number of examples available (that can run in your browser) right here, each including full source code.
Raylib 2.5 Released