Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] C# Bindings #32

Closed
douglasg14b opened this issue Mar 31, 2021 · 5 comments
Closed

[Feature Request] C# Bindings #32

douglasg14b opened this issue Mar 31, 2021 · 5 comments
Labels
enhancement New feature or request

Comments

@douglasg14b
Copy link

douglasg14b commented Mar 31, 2021

As the title says, C# bindings!

I would love to use this library in C#, and I'm sure it would attract attention from Unity devs as well. I have no experience with C++, and honestly didn't make much progress in attempting this myself. Somewhat compounded by some of the methods being a bit obtuse without describing comments (For me anyways).

Hopefully this isn't too large of an ask.

@Auburn
Copy link
Owner

Auburn commented Mar 31, 2021

Hi, I've had this request from a few people. Getting it working for "Encoded Node Trees" should be reasonably easy, since it doesn't require exposing all the node type classes. Instead of exposing all the node classes individually it probably makes more sense to expose the node type metadata, would mean the dll interface wouldn't need updating when new node types are added.

I'll probably start looking at it over the next week or so, well at least the C interface DLL, but from that it should be easy to create a C# wrapper

@Auburn Auburn added the enhancement New feature or request label Mar 31, 2021
@douglasg14b
Copy link
Author

douglasg14b commented Mar 31, 2021

That's great to hear! Thanks for considering this.

Love your work, and the new node-based system has been interesting to play around vs my own internal noise system. Being able to design nodes and just use the encoded node will be awesome.

@Auburn
Copy link
Owner

Auburn commented Apr 5, 2021

I've added DLL support to the FastNoise API and a C interface, that should let you call the functions from C#. Currently the C interface only has support for creating nodes from encoded node trees, I will look at adding direct node creation later.

The C interface is in FastNoise_C.h

Here are the binaries from the latest CI build, I will make a new release that has them soon too.

Win64-MSVC (9).zip

@Auburn
Copy link
Owner

Auburn commented Jul 23, 2021

@Auburn Auburn closed this as completed Jul 23, 2021
@douglasg14b
Copy link
Author

@Auburn Thanks! I really appreciate that ^_^

Just now circling back around to the process of switching from my own noise generation to this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants