Skip to content

Commit 42d6762

Browse files
update raylib to 4.5
1 parent cbcb071 commit 42d6762

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+6591
-18350
lines changed

.github/workflows/build.yml

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: macos-10.15
1818
strategy:
1919
matrix:
20-
python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11.0-alpha - 3.11.0', 'pypy-3.7', 'pypy-3.8', 'pypy-3.9' ]
20+
python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11', 'pypy-3.7', 'pypy-3.8', 'pypy-3.9' ]
2121
steps:
2222
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
2323
- uses: actions/checkout@v2
@@ -164,7 +164,7 @@ jobs:
164164
# You can use PyPy versions in python-version.
165165
# For example, pypy2 and pypy3
166166
matrix:
167-
python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11.0-alpha - 3.11.0', 'pypy-3.7', 'pypy-3.8', 'pypy-3.9' ]
167+
python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11', 'pypy-3.7', 'pypy-3.8', 'pypy-3.9' ]
168168
steps:
169169
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
170170
- uses: actions/checkout@v2
@@ -208,36 +208,36 @@ jobs:
208208
path: dist/*
209209

210210

211-
build-rpi:
212-
runs-on: rpi
213-
steps:
214-
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
215-
- uses: actions/checkout@v2
216-
with:
217-
submodules: recursive
218-
219-
- name: Build raylib
220-
run: |
221-
cd raylib-c
222-
mkdir build
223-
cd build
224-
cmake -DBUILD_EXAMPLES=off -DINCLUDE_EVERYTHING=on -DSUPPORT_FILEFORMAT_JPG=on -DWITH_PIC=on -DCMAKE_BUILD_TYPE=Release -DOpenGL_GL_PREFERENCE=GLVND ..
225-
make -j2
226-
make install
227-
- name: Copy extras
228-
run: |
229-
cp physac/src/physac.h /usr/local/include/
230-
cp raygui/src/raygui.h /usr/local/include/
231-
232-
- name: Build raylib-python-cffi
233-
run: |
234-
python3 setup.py bdist_wheel
235-
236-
- name: Upload build Artifact wheel
237-
uses: actions/[email protected]
238-
with:
239-
name: wheel
240-
path: dist/*
211+
# build-rpi:
212+
# runs-on: rpi
213+
# steps:
214+
# # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
215+
# - uses: actions/checkout@v2
216+
# with:
217+
# submodules: recursive
218+
#
219+
# - name: Build raylib
220+
# run: |
221+
# cd raylib-c
222+
# mkdir build
223+
# cd build
224+
# cmake -DBUILD_EXAMPLES=off -DINCLUDE_EVERYTHING=on -DSUPPORT_FILEFORMAT_JPG=on -DWITH_PIC=on -DCMAKE_BUILD_TYPE=Release -DOpenGL_GL_PREFERENCE=GLVND ..
225+
# make -j2
226+
# make install
227+
# - name: Copy extras
228+
# run: |
229+
# cp physac/src/physac.h /usr/local/include/
230+
# cp raygui/src/raygui.h /usr/local/include/
231+
#
232+
# - name: Build raylib-python-cffi
233+
# run: |
234+
# python3 setup.py bdist_wheel
235+
#
236+
# - name: Upload build Artifact wheel
237+
# uses: actions/[email protected]
238+
# with:
239+
# name: wheel
240+
# path: dist/*
241241

242242
build-windows:
243243
# The type of runner that the job will run on
@@ -246,7 +246,7 @@ jobs:
246246
# You can use PyPy versions in python-version.
247247
# For example, pypy2 and pypy3
248248
matrix:
249-
python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11.0-alpha - 3.11.0', 'pypy-3.7', 'pypy-3.8', 'pypy-3.9' ]
249+
python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11', 'pypy-3.7', 'pypy-3.8', 'pypy-3.9' ]
250250
steps:
251251
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
252252
- uses: actions/checkout@v2

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Python Bindings for Raylib 4.2
1+
# Python Bindings for Raylib 4.5
22

33
New CFFI API static bindings.
44
* Automatically generated to be as close as possible to

docs-src/raylib.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ Example program:
1515
SetTargetFPS(60)
1616
1717
camera = ffi.new("struct Camera3D *", [[18.0, 16.0, 18.0], [0.0, 0.0, 0.0], [0.0, 1.0, 0.0], 45.0, 0])
18-
SetCameraMode(camera[0], CAMERA_ORBITAL)
1918
2019
while not WindowShouldClose():
21-
UpdateCamera(camera)
20+
UpdateCamera(camera, CAMERA_ORBITAL)
2221
BeginDrawing()
2322
ClearBackground(RAYWHITE)
2423
BeginMode3D(camera[0])

docs/.buildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: 999398ae0ca6fd9fb3a4ff0f644e1a93
3+
config: d3f6c06ab2f036ecf2386ff26e8dd625
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

docs/BUILDING.html

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html class="writer-html5" lang="en" >
33
<head>
4-
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
4+
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" />
55

66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<title>Building from source &mdash; Raylib Python documentation</title>
@@ -12,10 +12,11 @@
1212
<script src="_static/js/html5shiv.min.js"></script>
1313
<![endif]-->
1414

15-
<script data-url_root="./" id="documentation_options" src="_static/documentation_options.js"></script>
1615
<script src="_static/jquery.js"></script>
17-
<script src="_static/underscore.js"></script>
16+
<script src="_static/_sphinx_javascript_frameworks_compat.js"></script>
17+
<script data-url_root="./" id="documentation_options" src="_static/documentation_options.js"></script>
1818
<script src="_static/doctools.js"></script>
19+
<script src="_static/sphinx_highlight.js"></script>
1920
<script src="_static/js/theme.js"></script>
2021
<link rel="index" title="Index" href="genindex.html" />
2122
<link rel="search" title="Search" href="search.html" />
@@ -28,19 +29,23 @@
2829
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
2930
<div class="wy-side-scroll">
3031
<div class="wy-side-nav-search" >
31-
<a href="index.html" class="icon icon-home"> Raylib Python
32+
33+
34+
35+
<a href="index.html" class="icon icon-home">
36+
Raylib Python
3237
</a>
3338
<div role="search">
3439
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
35-
<input type="text" name="q" placeholder="Search docs" />
40+
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" />
3641
<input type="hidden" name="check_keywords" value="yes" />
3742
<input type="hidden" name="area" value="default" />
3843
</form>
3944
</div>
4045
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
4146
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
4247
<ul class="current">
43-
<li class="toctree-l1"><a class="reference internal" href="README.html">Python Bindings for Raylib 4.2</a></li>
48+
<li class="toctree-l1"><a class="reference internal" href="README.html">Python Bindings for Raylib 4.5</a></li>
4449
<li class="toctree-l1"><a class="reference internal" href="README.html#quickstart">Quickstart</a></li>
4550
<li class="toctree-l1"><a class="reference internal" href="README.html#installation">Installation</a></li>
4651
<li class="toctree-l1"><a class="reference internal" href="README.html#how-to-use">How to use</a></li>
@@ -80,8 +85,8 @@
8085
<div class="rst-content">
8186
<div role="navigation" aria-label="Page navigation">
8287
<ul class="wy-breadcrumbs">
83-
<li><a href="index.html" class="icon icon-home"></a> &raquo;</li>
84-
<li>Building from source</li>
88+
<li><a href="index.html" class="icon icon-home" aria-label="Home"></a></li>
89+
<li class="breadcrumb-item active">Building from source</li>
8590
<li class="wy-breadcrumbs-aside">
8691
<a href="_sources/BUILDING.rst.txt" rel="nofollow"> View page source</a>
8792
</li>
@@ -92,9 +97,9 @@
9297
<div itemprop="articleBody">
9398

9499
<section id="building-from-source">
95-
<h1>Building from source<a class="headerlink" href="#building-from-source" title="Permalink to this headline"></a></h1>
100+
<h1>Building from source<a class="headerlink" href="#building-from-source" title="Permalink to this heading"></a></h1>
96101
<section id="have-pip-build-from-source">
97-
<h2>Have Pip build from source<a class="headerlink" href="#have-pip-build-from-source" title="Permalink to this headline"></a></h2>
102+
<h2>Have Pip build from source<a class="headerlink" href="#have-pip-build-from-source" title="Permalink to this heading"></a></h2>
98103
<p>This is useful if the binaries don’t work on your system, or you want to use a newer version of Raylib.</p>
99104
<p>First make sure Raylib is installed. On Linux/Mac it must include the pkg-config files. Best way to ensure this
100105
is to compile and install Raylib using CMake: <a class="reference external" href="https://github.com/raysan5/raylib/wiki/Working-on-GNU-Linux#build-raylib-using-cmake">https://github.com/raysan5/raylib/wiki/Working-on-GNU-Linux#build-raylib-using-cmake</a></p>
@@ -113,7 +118,7 @@ <h2>Have Pip build from source<a class="headerlink" href="#have-pip-build-from-s
113118
</div>
114119
</section>
115120
<section id="or-build-from-source-manually">
116-
<h2>Or, Build from source manually<a class="headerlink" href="#or-build-from-source-manually" title="Permalink to this headline"></a></h2>
121+
<h2>Or, Build from source manually<a class="headerlink" href="#or-build-from-source-manually" title="Permalink to this heading"></a></h2>
117122
<p>Useful if the Pip build doesn’t work and you want to debug it, or you want to contribute to the
118123
project.</p>
119124
<div class="admonition attention">
@@ -124,7 +129,7 @@ <h2>Or, Build from source manually<a class="headerlink" href="#or-build-from-sou
124129
<p>Manual instructions follow, but may be outdated, so see also how we actually build the wheels
125130
at <a class="reference external" href="https://github.com/electronstudio/raylib-python-cffi/blob/master/.github/workflows/build.yml">https://github.com/electronstudio/raylib-python-cffi/blob/master/.github/workflows/build.yml</a></p>
126131
<section id="windows-manual-build">
127-
<h3>Windows manual build<a class="headerlink" href="#windows-manual-build" title="Permalink to this headline"></a></h3>
132+
<h3>Windows manual build<a class="headerlink" href="#windows-manual-build" title="Permalink to this heading"></a></h3>
128133
<p>Clone this repo including submodules so you get correct version of
129134
Raylib.</p>
130135
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">git</span> <span class="n">clone</span> <span class="o">--</span><span class="n">recurse</span><span class="o">-</span><span class="n">submodules</span> <span class="n">https</span><span class="p">:</span><span class="o">//</span><span class="n">github</span><span class="o">.</span><span class="n">com</span><span class="o">/</span><span class="n">electronstudio</span><span class="o">/</span><span class="n">raylib</span><span class="o">-</span><span class="n">python</span><span class="o">-</span><span class="n">cffi</span>
@@ -166,7 +171,7 @@ <h3>Windows manual build<a class="headerlink" href="#windows-manual-build" title
166171
here.)</p>
167172
</section>
168173
<section id="linux-manual-build">
169-
<h3>Linux manual build<a class="headerlink" href="#linux-manual-build" title="Permalink to this headline"></a></h3>
174+
<h3>Linux manual build<a class="headerlink" href="#linux-manual-build" title="Permalink to this heading"></a></h3>
170175
<p>Clone this repo including submodules so you get correct version of
171176
Raylib.</p>
172177
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">git</span> <span class="n">clone</span> <span class="o">--</span><span class="n">recurse</span><span class="o">-</span><span class="n">submodules</span> <span class="n">https</span><span class="p">:</span><span class="o">//</span><span class="n">github</span><span class="o">.</span><span class="n">com</span><span class="o">/</span><span class="n">electronstudio</span><span class="o">/</span><span class="n">raylib</span><span class="o">-</span><span class="n">python</span><span class="o">-</span><span class="n">cffi</span>
@@ -240,7 +245,7 @@ <h3>Linux manual build<a class="headerlink" href="#linux-manual-build" title="Pe
240245
</div>
241246
</section>
242247
<section id="macos-manual-build">
243-
<h3>Macos manual build<a class="headerlink" href="#macos-manual-build" title="Permalink to this headline"></a></h3>
248+
<h3>Macos manual build<a class="headerlink" href="#macos-manual-build" title="Permalink to this heading"></a></h3>
244249
<p>These instructions have been tested on Macos 10.14.</p>
245250
<p>Clone this repo including submodules so you get correct version of
246251
Raylib.</p>

0 commit comments

Comments
 (0)