Skip to content

Commit 1ef9d0e

Browse files
committed
Update all of the documentation headers.
Also some other doc updates, mostly to the glossary.
1 parent 3339f04 commit 1ef9d0e

File tree

18 files changed

+74
-36
lines changed

18 files changed

+74
-36
lines changed

docs/glossary.rst

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,29 @@ Glossary
1414
This is the `cffi` implementation of libtcodpy, the original was
1515
made using `ctypes` which was more difficult to maintain.
1616

17-
`libtcod-cffi` is now part of :term:`python-tcod`.
17+
`libtcod-cffi` has since been part of :term:`python-tcod` providing
18+
all of the :term:`libtcodpy` API until the newer features could be
19+
implemented.
1820

1921
python-tcod
2022
`python-tcod` is a superset of the :term:`libtcodpy` API. The major
2123
additions include class functionality in returned objects, no manual
2224
memory management, pickle-able objects, and `numpy` array attributes
2325
in most objects.
2426

25-
The `numpy` attributes in particular can be used to dramatically speed
26-
up the performance of your program compared to using :term:`libtcodpy`.
27+
The `numpy` functions in particular can be used to dramatically speed
28+
up the performance of a program compared to using :term:`libtcodpy`.
2729

2830
python-tdl
2931
`tdl` is a high-level wrapper over :term:`libtcodpy` although it now
3032
uses :term:`python-tcod`, it doesn't do anything that you couldn't do
3133
yourself with just :term:`libtcodpy` and Python.
3234

35+
It included a lot of core functions written in Python that most
36+
definitely shouldn't have been. `tdl` was very to use, but the cost
37+
was severe performance issues throughout the entire module.
38+
This left it impractical for any real use as a roguelike library.
39+
3340
Currently no new features are planned for `tdl`, instead new features
3441
are added to `libtcod` itself and then ported to :term:`python-tcod`.
3542

@@ -38,8 +45,9 @@ Glossary
3845

3946
libtcodpy
4047
`libtcodpy` is more or less a direct port of `libtcod`'s C API to
41-
Python. This caused a handful of issues including instances needing
42-
to be freed manually or a memory leak will occur, and some functions
48+
Python.
49+
This caused a handful of issues including instances needing to be
50+
freed manually or else a memory leak would occur, and many functions
4351
performing badly in Python due to the need to call them frequently.
4452

4553
These issues are fixed in :term:`python-tcod` which implements the full

docs/libtcodpy.rst

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
1-
libtcodpy
2-
=========
1+
libtcodpy - Old API Functions
2+
=============================
3+
4+
This is all the functions included since the start of the Python port.
5+
This collection is often called :term:`libtcodpy`, the name of the original
6+
Python port. These functions are reproduced by python-tcod in their entirely.
7+
8+
**A large majority of these functions are deprecated and will be removed in
9+
the future.
10+
In general this entire section should be avoided whenever possible.**
11+
See :ref:`getting-started` for how to make a new python-tcod project with its
12+
modern API.
313

414
bsp
515
---

docs/tcod/bsp.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
tcod.bsp
2-
=========
1+
tcod.bsp - Binary Space Partitioning
2+
====================================
33

44
.. automodule:: tcod.bsp
55
:members:

docs/tcod/console.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
tcod.console
2-
============
1+
tcod.console - Tile Drawing/Printing
2+
====================================
33

44
.. automodule:: tcod.console
55
:members:

docs/tcod/context.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
tcod.context
2-
============
1+
tcod.context - Window Management
2+
================================
33

44
.. automodule:: tcod.context
55
:members:

docs/tcod/event.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
tcod.event
2-
==========
1+
tcod.event - SDL2 Event Handling
2+
================================
33

44
.. automodule:: tcod.event
55
:members:

docs/tcod/image.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
tcod.image
2-
==========
1+
tcod.image - Image Handling
2+
===========================
33

44
.. automodule:: tcod.image
55
:members:

docs/tcod/los.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
tcod.los
2-
========
1+
tcod.los - Line of Sight
2+
========================
33

44
.. automodule:: tcod.los
55
:members:

docs/tcod/map.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
tcod.map
2-
========
1+
tcod.map - Field of View
2+
========================
33

44
.. automodule:: tcod.map
55
:members:

docs/tcod/noise.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
tcod.noise
2-
==========
1+
tcod.noise - Noise Map Generators
2+
=================================
33

44
.. automodule:: tcod.noise
55
:members:

0 commit comments

Comments
 (0)