Package: libtcod-cffi
ContentsAboutChangelog5.0.0 - 2017-07-194.0.0 - 2017-06-293.0.0 - 2017-06-242.5.0 - 2017-05-282.4.4 - 2017-05-202.4.3 - 2017-04-102.4.2 - 2017-04-102.4.1 - 2017-04-072.4.0 - 2017-04-032.3.0 - 2017-03-152.2.1 - 2017-03-122.2.0 - 2017-02-182.1.0 - 2017-02-162.0.0 - 2017-02-112.0a4 - 2017-01-092.0a3 - 2017-01-022.0a2 - 2016-10-302.0a1 - 2016-10-162.0a0 - 2016-10-051.0 - 2016-09-250.3 - 2016-09-240.2.12 - 2016-09-160.2.11 - 2016-09-160.2.10 - 2016-09-130.2.9 - 2016-09-010.2.8 - 2016-03-110.2.7 - 2016-01-210.2.6 - 2015-10-280.2.5 - 2015-10-280.2.4 - 2015-10-280.2.3 - 2015-07-130.2.2 - 2015-07-010.2.1 - 2015-06-290.2.0 - 2015-06-270.1.0 - 2015-06-22AboutThis projects API and documentation has been merged back intopython-tdl.Changelog5.0.0 - 2017-07-19ChangedThis project was merged back into python-tdl4.0.0 - 2017-06-29AddedConsole instances can now be pickled.Changedget_cffi_callbackrenamed toget_tcod_path_ffiand must now return width
and height values.  All returned values will be kept alive by the caller.FixedImage.get_pixelnow returns a tuple instead of a CData instance.SDL is now initialized lazily.  It should be easier to import BearLibTerminal
along side this library.3.0.0 - 2017-06-24AddedPyPy v5.7/v5.8 wheels added to PyPi.Pickle support for tcod.path classes.Added wrapper classesEdgeCostCallbackandNodeCostArraytotcod.pathChangedAStarandDijkstrano longer take thewidthorheightparameters.
You now set these parameters viaEdgeCostCallback.FixedResolved an issue where pip install would clobber NumPyPy.RemovedRemoved broken tdl-style int/color conversions from Color.2.5.0 - 2017-05-28ChangedPickle-able objects will have any subclasses pickled correctly now.
The new objects can not be unpickled on older versions of libtcod-cffi.Updated cdata attribute names in Map, Console, and Random.2.4.4 - 2017-05-20FixedFixed crashes when exiting on some systems.2.4.3 - 2017-04-10FixedFixed signatures for MacOS builds.2.4.2 - 2017-04-10RemovedDropped support for Python3.32.4.1 - 2017-04-07FixedMade sure MacOS dependencies are bundled correctly.2.4.0 - 2017-04-03AddedRenderer regressions fixed, OpenGL and GLSL renderer’s are available again.ChangedThe default renderer is now GLSL.Removedtcodclipboard functions which were never fully implemented removed.2.3.0 - 2017-03-15AddedAdded support for loading/saving REXPaint files.FixedConsole methods should be safe to use before a root console is initialized.Fixed simplex noise artifacts when using negative coordinates.Fixed backward compatible API inconsistencies with color indexes, console
truth values, and line_iter missing the starting point.The SDL callback should always receive an SDL_Surface.2.2.1 - 2017-03-12FixedFixedConsole.print_framenot printing anything.Fixed Noise.sample_ogrid alignment issue.MacOS builds should work even if the system installed SDL2 library is old.2.2.0 - 2017-02-18AddedYou can now sample very large noise arrays using theNoise.sample_mgridandNoise.sample_ogridmethods.Noiseclass now supportspickleandcopymodules.2.1.0 - 2017-02-16AddedThe rootConsoleinstance can now be used as a context manager.  Closing
the graphical window when the context exits.Ported libtcod functions:sys_clipboard_getandsys_clipboard_set.2.0.0 - 2017-02-11AddedRandominstances can be copied and pickled.Mapinstances can be copied and pickled.TheMapclass now has thetransparent,walkable, andfovattribues,
you can assign to these as if they were numpy arrays.Pathfinders intcod.pathcan be given a numpy array as a cost map.ChangedColor instances can now be compared with any standard sequence.DeprecatedYou might see a publiccdataattribute on some classes, this attribute
will be renamed at anytime.RemovedConsole.print_stris nowConsole.print_Some Console methods have been merged together.All litcod-cffi classes have been moved to their own submodules.Random methods renamed to be more like Python’s standardrandommodule.Noise class had multiple methods replaced by animplementationattribute.libtcod-cffi classes and subpackages are not included in thetcodnamespace by default.Many redundant methods were removed from the Random class.Map methodsset_properies,clear,is_in_fov,is_walkable, andis_transparentwere remvoed.Pathfinding classmethod constructors are gone already.  Not it’s just one
constructor which accepts multiple kinds of maps.FixedPython 2 now uses thelatin-1codec when automatically coverting to
Unicode.2.0a4 - 2017-01-09AddedConsole instances now have the fg,bg,ch attributes.
These attributes are numpy arrays with direct access to libtcod console
memory.ChangedConsole default variables are now accessed using properties instead of
method calls.  Same with width and height.Path-finding classes new use special classmethod constructors instead of
tradional class instancing.RemovedColor to string conversion reverted to its original repr behaviour.Console.get_char* methods removed in favor of the fg,bg,ch attributes.Console.fill removed.  This code was redundant with the new additions.Console.get_default_*/set_default_* methods removed.Console.get_width/height removed.FixedDijkstra.get_path fixed.2.0a3 - 2017-01-02The numpy module is now required as a dependency.The SDL.h and libtcod_int.h headers are now included in the cffi back-end.Added the AStar and Dijkstra classes with simplified behaviour.Added the BSP class which better represents bsp data attributes.Added the Image class with methods mimicking libtcodpy behaviour.Added the Map class with methods mimicking libtcodpy behaviour.Added the Noise class.
This class behaves similar to the tdl Noise class.Added the Random class.
This class provides a large variety of methods instead of being state based
like in libtcodpy.Color objects can new be converted into a 3 byte string used in libtcod
color control operations.heightmap functions can now accept carefully formatted numpy arrays.Removed the keyboard repeat functions:
console_set_keyboard_repeat and console_disable_keyboard_repeat.2.0a2 - 2016-10-30FrozenColor class removed.Color class now uses a properly set up __repr__ method.Functions which take the fmt parameter will now escape the ‘%’ symbol before
sending the string to a C printf call.Now using Google-Style docstrings.Console class has most of its relevant methods.Added the Console.fill function which needs only 3 numpy arrays instead of
the usual 7 to cover all Console data.2.0a1 - 2016-10-16The userData parameter was added back.
Functions which use it are marked depreciated.Python exceptions will now propagate out of libtcod callbacks.Some libtcod object oriented functions now have Python class methods
associated with them (only BSP for now, more will be added later.)Regression tests were added.
Focusing on backwards compatibilty with libtcodpy.
Several neglected functions were fixed during this.All libtcod allocations are handled by the Python garbage collector.
You’ll no longer have to call the delete functions on each object.Now generates documentation for Read the Docs.
You can find the latest documentation for libtcod-cffihere.2.0a0 - 2016-10-05updated to compile with libtcod-1.6.2 and SDL-2.0.41.0 - 2016-09-25sub packages have been removed to follow the libtcodpy API more closelybsp and pathfinding functions which take a callback no longer have the
userdata parameter, if you need to pass data then you should use functools,
methods, or enclosing scope rulesnumpy buffer alignment issues on some 64-bit OS’s fixed0.3 - 2016-09-24switched to using pycparser to compile libtcod headers, this may have
included many more functions in tcod’s namespace than beforeparser custom listener fixed again, likely for good0.2.12 - 2016-09-16version increment due to how extremely broken the non-Windows builds were
(false alarm, this module is just really hard to run integrated tests on)0.2.11 - 2016-09-16SDL is now bundled correctly in all Python wheels0.2.10 - 2016-09-13now using GitHub integrations, gaps in platform support have been filled,
there should now be wheels for Mac OSX and 64-bit Python on Windowsthe building process was simplified from a linking standpoint, most
libraries are now statically linkedparser module is broken again0.2.9 - 2016-09-01Fixed crashes in list and parser modules0.2.8 - 2016-03-11Fixed off by one error in fov buffer0.2.7 - 2016-01-21Re-factored some code to reduce compiler warningsInstructions on how to solve pip/cffi issues added to the readmeOfficial support for Python 3.50.2.6 - 2015-10-28Added requirements.txt to fix a common pip/cffi issue.Provided SDL headers are now for Windows only.0.2.5 - 2015-10-28Added /usr/include/SDL to include path0.2.4 - 2015-10-28Compiler will now use distribution specific SDL header files before falling
back on the included header files.0.2.3 - 2015-07-13better Color performanceparser now works when using a custom listener classSDL renderer callback now receives a accessible SDL_Surface cdata object.0.2.2 - 2015-07-01This module can now compile and link properly on Linux0.2.1 - 2015-06-29console_check_for_keypress and console_wait_for_keypress will work nowconsole_fill_foreground was fixedconsole_init_root can now accept a regular string on Python 30.2.0 - 2015-06-27The library is now backwards compatible with the original libtcod.py module.
Everything except libtcod’s cfg parser is supported.0.1.0 - 2015-06-22First version released