Archived project to wrap the Urho3D engine for C#, allowing it to be used on any .net core (NetStandard 2.0+ ie .net6/7/8) runtime and is fully mobile supported.
|
|
10 лет назад | |
|---|---|---|
| Nuget | 10 лет назад | |
| ProjectTemplates | 10 лет назад | |
| Samples @ f6852e01e6 | 10 лет назад | |
| Screenshots | 10 лет назад | |
| SharpieBinder | 10 лет назад | |
| Urho3D | 10 лет назад | |
| bindings | 10 лет назад | |
| docs | 10 лет назад | |
| .gitignore | 10 лет назад | |
| .gitmodules | 10 лет назад | |
| ClassHierarchy.md | 10 лет назад | |
| MakeAndroid | 10 лет назад | |
| MakeMac | 10 лет назад | |
| MakeWindows | 10 лет назад | |
| Makefile | 10 лет назад | |
| MakeiOS | 10 лет назад | |
| MaketvOS | 10 лет назад | |
| README.md | 10 лет назад | |
| TODO.md | 10 лет назад | |
| Urho.nuspec | 10 лет назад | |
| Urho.sln | 10 лет назад | |
| UrhoSharp.png | 10 лет назад | |
| nuget.config | 10 лет назад |
Code to integrate with the Urho3D engine
This is designed to be a binding to the C++ API of the Urho3D engine.
For information on the binding strategy, see the document at:
In order to compile binaries for all platforms you will need both Windows and OS X environment. Please follow these steps:
1. Install:
2. Clone the repository including submodules
git clone [email protected]:xamarin/urho.git
git submodule update --init
3. Compile Urho.pch
The following command will download Clang 3.7.0 if you do not have it installed, and use this to scan the Urho header files:
make PchMac
4. Generate C# bindings from Urho.pch
Open SharpieBinder/SharpieBinder.sln via Xamarin Studio and change .NET runtime to 64 bit mono (installed from homebrew is usually located in "/usr/local/Cellar/4.x.x.x"). Run SharpieBinder project and make sure it generated *.cs files in /bindings/generated dir. Then execute:
make ParseEventsMac
it should generate bindings/generated/events.cpp file
5. Compile UrhoSharp for Mac (fat dylib)
make Mac
it takes 5-10 minutes.
6. Compile UrhoSharp for iOS (fat dylib: i386, armv7, arm64)
make iOS
7. Compile UrhoSharp for Android (armeabi, armeabi-v7a, x86)
make -j3 Android
-j3 means a job per ABI. Make sure you have installed Android SDK and NDK (see MakeAndroid file)
8. Compile UrhoSharp for Windows (64 bit)
Obviously you can't do it on OS X so you have to switch to Windows environment. Make sure you have installed:
SharpieBinder doesn't work on Windows yet so you will have to copy bindings/generated folder from OS X environment to Windows.
Execute:
make Windows
(you can also compile Android on Windows via "make Android") Then, open Urho.sln and compile MonoUrho.Windows project in Release configuration.
All compiled binaries could be found in the Bin/{platform} folder.
Sample code lives in https://github.com/xamarin/urho-samples and repository has them as a git submodule. Samples use Urho via nuget.
Some screencasts: