forked from libtcod/python-tcod
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
31 lines (23 loc) · 949 Bytes
/
Copy path__init__.py
File metadata and controls
31 lines (23 loc) · 949 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
"""
This module provides a simple CFFI API to libtcod.
This port has large partial support for libtcod's C functions.
Use tcod/libtcod_cdef.h in the source distribution to see specially what
functions were exported and what new functions have been added by TDL.
The ffi and lib variables should be familiar to anyone that has used CFFI
before, otherwise it's time to read up on how they work:
https://cffi.readthedocs.org/en/latest/using.html
Otherwise this module can be used as a drop in replacement for the official
libtcod.py module.
Bring any issues or requests to GitHub:
https://github.com/HexDecimal/libtcod-cffi
"""
from __future__ import absolute_import
import sys
import warnings
from tcod.libtcodpy import *
from tcod.version import __version__
if sys.version_info[0] == 2:
warnings.warn(
"python-tcod has dropped support for Python 2.7.",
DeprecationWarning
)