Update GDNative repository and demo URLs

This closes #4329.
This commit is contained in:
Hugo Locurcio
2020-10-31 13:57:44 +01:00
parent 8b65e6d4f5
commit f5779082d4
2 changed files with 9 additions and 9 deletions

View File

@@ -13,7 +13,7 @@ that is to come after this.
Before we begin, you can download the source code to the example object we
describe below in the `GDNative-demos repository
<https://github.com/GodotNativeTools/GDNative-demos/tree/master/c/SimpleDemo>`_.
<https://docs.godotengine.org/en/latest/tutorials/scripting/gdnative/gdnative_c_example.html>`_.
This example project also contains a SConstruct file that makes compiling a
little easier, but in this tutorial we'll be doing things by hand to
@@ -53,7 +53,7 @@ Before we start you'll need a few things:
manager. On macOS, you can install Xcode from the Mac App Store. On Windows,
you can use Visual Studio 2015 or later, or MinGW-w64.
3) A Git clone of the `godot_headers
repository <https://github.com/GodotNativeTools/godot_headers>`_: these are
repository <https://github.com/godotengine/godot_headers>`_: these are
the C headers for Godot's public API exposed to GDNative.
For the latter, we suggest that you create a dedicated folder for this GDNative
@@ -61,7 +61,7 @@ example project, open a terminal in that folder and execute:
.. code-block:: none
git clone https://github.com/GodotNativeTools/godot_headers
git clone https://github.com/godotengine/godot_headers
This will download the required files into that folder.
@@ -515,7 +515,7 @@ select our ``.gdnlib`` file by clicking on *Library* and selecting *Load*:
The *Class Name* must have the same spelling as the one given in ``godot_nativescript_init``
when registering the class.
Finally, click on the save icon and save this as ``bin/simple.gdns``:
.. image:: img/save_gdns.gif

View File

@@ -33,7 +33,7 @@ There are a few prerequisites you'll need:
- a C++ compiler,
- SCons as a build tool,
- a copy of the `godot-cpp
repository <https://github.com/GodotNativeTools/godot-cpp>`__.
repository <https://github.com/godotengine/godot-cpp>`__.
See also :ref:`Compiling <toc-devel-compiling>` as the build tools are identical
to the ones you need to compile Godot from source.
@@ -55,7 +55,7 @@ Git submodules:
mkdir gdnative_cpp_example
cd gdnative_cpp_example
git init
git submodule add https://github.com/GodotNativeTools/godot-cpp
git submodule add https://github.com/godotengine/godot-cpp
cd godot-cpp
git submodule update --init
@@ -64,7 +64,7 @@ Git submodules:
mkdir gdnative_cpp_example
cd gdnative_cpp_example
git init
git submodule add -b 3.0 https://github.com/GodotNativeTools/godot-cpp
git submodule add -b 3.0 https://github.com/godotengine/godot-cpp
cd godot-cpp
git submodule update --init
@@ -80,13 +80,13 @@ Do make sure you clone recursive to pull in both repositories:
mkdir gdnative_cpp_example
cd gdnative_cpp_example
git clone --recursive https://github.com/GodotNativeTools/godot-cpp
git clone --recursive https://github.com/godotengine/godot-cpp
.. code-tab:: none Godot 3.0
mkdir gdnative_cpp_example
cd gdnative_cpp_example
git clone --recursive -b 3.0 https://github.com/GodotNativeTools/godot-cpp
git clone --recursive -b 3.0 https://github.com/godotengine/godot-cpp
.. note::