TheCherno / Sparky

Cross-Platform High Performance 2D/3D game engine for people like me who like to write code.
Apache License 2.0
1.09k stars 222 forks source link

CLI Generator #101

Open TheCherno opened 8 years ago

TheCherno commented 8 years ago

Sparky needs to have a C++/CLI generator, which is essentially a tool that wraps all of Sparky's exposed API into C++/CLI code, so that any API changes/additions to Sparky-core can automatically be accessed in C# after running the tool to generate the code.

This is particularly important for tools, as most large tools (such as the level editor) will be written in C#, and they need to access Sparky-core which is written in C++.

This will also theoretically allow applications for Sparky to be written in C# rather than C++, which will be great for prototyping and using Sparky for Sandbox-like purposes (or even making complete games, although they will be Windows-only).

TheCherno commented 8 years ago

I'll be working on this for the remainder of the month, and hopefully finish this for the April release. See the cligen branch for code.

KevinW1998 commented 8 years ago

Java bindings with JNI might be interesting too. Maybe this can be added in the future too.

csnewman commented 8 years ago

With the use of mono shouldn't it be possible to write cross platform games in C#? (Like unity)

TheCherno commented 8 years ago

Pushed to May 2016 release.