Jump to content

  • Log In with Google      Sign In   
  • Create Account


- - - - -

Angelscript and C#


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
4 replies to this topic

#1 macinkross   Members   -  Reputation: 224

Like
Likes
Like

Posted 10 May 2004 - 05:52 AM

Is it possible to use Angelscript in C#?

Sponsor:

#2 meink   Members   -  Reputation: 133

Like
Likes
Like

Posted 10 May 2004 - 12:54 PM

I haven''t used C#, but if it can interface with a dll, which I presume it can, then it should work. You''d just have to modify the syntax of angelscript.h

- Xavier

#3 Andreas Jonsson   Moderators   -  Reputation: 3220

Like
Likes
Like

Posted 11 May 2004 - 11:18 AM

I cannot say. I don''t know how function pointers work in C#. If there is a way to take the pointer of a function in C# then I think it would only be a matter of wrapping AngelScript in a more .NET friendly shell.

There is also the difference between C# compiled to intermediate code, and C# compiled to machine code. How would this affect AngelScript? I don''t know.

__________________________________________________________
www.AngelCode.com - game development and more...
AngelScript - free scripting library - Tower - free puzzle game

#4 Arild Fines   Members   -  Reputation: 968

Like
Likes
Like

Posted 12 May 2004 - 02:41 AM

quote:
Original post by WitchLord
I cannot say. I don''t know how function pointers work in C#. If there is a way to take the pointer of a function in C# then I think it would only be a matter of wrapping AngelScript in a more .NET friendly shell.


The .NET interop marshaller will marshal a .NET/C# delegate as a function pointer to unmanaged code via P/Invoke. See http://msdn.microsoft.com/library/en-us/cpguide/html/cpconusingcallbackfunctions.asp

--
AnkhSVN - A Visual Studio .NET Addin for the Subversion version control system.
[Project site] [Blog] [RSS] [Browse the source] [IRC channel]

#5 Andreas Jonsson   Moderators   -  Reputation: 3220

Like
Likes
Like

Posted 12 May 2004 - 09:13 AM

Excellent reference! Thank you, Arild Fines.




__________________________________________________________
www.AngelCode.com - game development and more...
AngelScript - free scripting library - Tower - free puzzle game




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS