If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

ClanLib 2.1.0 Released

There have been various modifications since the previous release. The biggest change is to the clanSound internals, making it more reliable and faster.

These are a list of important changes since the previous release (2.0.4)

- IMPORTANT: To solve some problems with co-hosting different versions of ClanLib, and to better support breaking changes in the future, we've changed how ClanLib names its libraries under Unix.

ClanLib now creates libclan21Core.so, libclan21Display.so (and so on), instead of naming it libclanCore.so and libclanDisplay.so.

Every breaking release will increase the 2.x.0 number. Every backward compatible release will get a 2.1.x version.

- IMPORTANT: Display: CL_Sprite animation delay now uses milliseconds integers, instead of float seconds. There was a discrepancy between the documentation and what it actually did. Previously, using floats, we lost accuracy. Now the control of animation speed should now be 100% accurate.

CL_Sprite::update(int time_elapsed_ms) now refers to milliseconds instead of seconds. If you previously did sprite.update(float), you now need to feed it a number 1000 as large (or stop dividing CL_System::get_time() by 1000.0f when calculating delta time). If you don't use a time parameter to sprite.update() it is calculated automatically as before.

- IMPORTANT: ClanSDL has moved out of the main package, as clanGDI is better and faster. ClanSDL is still available in the Contrib repository - read more about it on http://clanlib.org/development.html

- Core: CL_Line::clip() function has moved to CL_LineSegment::clip(). It was placed in the wrong class in the last release. CL_Line is an line with an infinite length, thus requires a different clipping method.

- GL and GL1: CL_GraphicContext get_pixeldata() has been fixed. The image is now no longer upside-down.