From d05890344de3c1188c49a007528dc9ca6cae7108 Mon Sep 17 00:00:00 2001 From: richard Date: Fri, 4 Feb 2022 11:11:14 +0000 Subject: [PATCH] update docs --- BUILDING.rst | 28 +++- README.md | 3 + create_stub_pyray.py | 2 + create_stub_static.py | 2 + docs/BUILDING.html | 27 +++- docs/README.html | 18 ++- docs/_sources/BUILDING.rst.txt | 28 +++- docs/_sources/README.md.txt | 7 +- docs/dynamic.html | 3 +- docs/genindex.html | 87 ++++++++++-- docs/index.html | 10 +- docs/objects.inv | Bin 14349 -> 14556 bytes docs/py-modindex.html | 3 +- docs/pyray.html | 245 +++++++++++++++++++++++++-------- docs/raylib.html | 241 ++++++++++++++++++++++++-------- docs/search.html | 3 +- docs/searchindex.js | 2 +- pyray/__init__.pyi | 94 ++++++++++++- raylib/__init__.pyi | 94 ++++++++++++- 19 files changed, 725 insertions(+), 172 deletions(-) diff --git a/BUILDING.rst b/BUILDING.rst index cd62334..8bfb71c 100644 --- a/BUILDING.rst +++ b/BUILDING.rst @@ -4,16 +4,30 @@ Building from source Have Pip build from source -------------------------- -Useful if the binaries don’t work on your system, or you want to use a newer version of Raylib. +This is useful if the binaries don’t work on your system, or you want to use a newer version of Raylib. -Make sure Raylib is installed and then: +First make sure Raylib is installed. On Linux/Mac it must include the pkg-config files. Best way to ensure this +is to compile and install Raylib using CMake: https://github.com/raysan5/raylib/wiki/Working-on-GNU-Linux#build-raylib-using-cmake + +:: + + cd raylib-4.0.0 + mkdir build + cd build + cmake -DWITH_PIC=on -DCMAKE_BUILD_TYPE=Release .. + make + sudo make install + + + +Then ask Pip to build from source: :: pip3 install --no-binary raylib --upgrade --force-reinstall raylib -Build from source manually --------------------------- +Or, Build from source manually +------------------------------ Useful if the Pip build doesn’t work and you want to debug it, or you want to contribute to the project. @@ -22,7 +36,7 @@ project. If the Pip build doesn’t work, please submit a bug. (And if you have fixed it, a PR.) -Manual instructions follow, but see also how we actually build the wheels +Manual instructions follow, but may be outdated, so see also how we actually build the wheels at https://github.com/electronstudio/raylib-python-cffi/blob/master/.github/workflows/build.yml Windows manual build @@ -207,6 +221,10 @@ Build and install module. Raspberry Pi ~~~~~~~~~~~~ +Latest info: https://github.com/electronstudio/raylib-python-cffi/issues/55#issuecomment-1012629701 + +Old possibly out of date info that was written for RPi3 and Raylib 3 follows. + The integrated GPU hardware in a Raspberry Pi (“VideoCore”) is rather idiosyncratic, resulting in a complex set of software options. Probably the most interesting two options for Raylib applications are: diff --git a/README.md b/README.md index daf57a4..9acfa1a 100644 --- a/README.md +++ b/README.md @@ -68,8 +68,11 @@ Use [the C API](https://electronstudio.github.io/raylib-python-cffi/raylib.html) Use [the Python API](https://electronstudio.github.io/raylib-python-cffi/pyray.html). +# App showcase +[Tanki](https://github.com/pkulev/tanki) +Add your app here! # RLZero diff --git a/create_stub_pyray.py b/create_stub_pyray.py index b1f4227..e98c666 100644 --- a/create_stub_pyray.py +++ b/create_stub_pyray.py @@ -27,6 +27,8 @@ def ctype_to_python_type(t): return 'None' elif t == "long": return "int" + elif t == "unsigned long long": + return "int" elif t == "double": return "float" elif "char *" in t: diff --git a/create_stub_static.py b/create_stub_static.py index ab2bcd9..63c52c3 100644 --- a/create_stub_static.py +++ b/create_stub_static.py @@ -30,6 +30,8 @@ def ctype_to_python_type(t): return 'None' elif t == "long": return "int" + elif t == "unsigned long long": + return "int" elif t == "double": return "float" elif "char *" in t: diff --git a/docs/BUILDING.html b/docs/BUILDING.html index dccec58..29fb923 100644 --- a/docs/BUILDING.html +++ b/docs/BUILDING.html @@ -36,10 +36,11 @@