2 registered members (Akow, tomaslolo),
1,536
guests, and 12
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: C# wrapper 2.2.1 - RELEASE
[Re: Stromausfall]
#363937
03/15/11 17:11
03/15/11 17:11
|
Joined: Dec 2006
Posts: 434 UK,Terra, SolarSystem, Milky W...
pararealist
Senior Member
|
Senior Member
Joined: Dec 2006
Posts: 434
UK,Terra, SolarSystem, Milky W...
|
Its in my app, but System.Collections.Generic could well be the cause if that is a new requirement, as i may well not have that included in my main.cs. Will try this in about 5 mins as i am not at home. thanks for quick reply.
A8.3x Commercial, AcknexWrapper and VS 2010 Express ○pararealist now.
|
|
|
Re: C# wrapper 2.2.1 - RELEASE
[Re: monotonic]
#364592
03/19/11 13:49
03/19/11 13:49
|
Joined: Dec 2002
Posts: 616 Austria
Stromausfall
OP
User
|
OP
User
Joined: Dec 2002
Posts: 616
Austria
|
Hmmm yes, this should be possible i guess, because C# functions are called from the engine, for example in ent_create or when events occur ! But I don't really see a need for lite-c if you use C# ! The only thing were you really need (from what i know) lite-c instead of C# is for declaring bitmaps which you use in shader (at least i know of no workaround for this..). You can also access all engine objects like entities and modify them in C#, the wrapper also has a scheduler, similar to the one in lite-c ! Did you have a look at the examples at the wrapper homepage ? http://acknexwrapper2.matthias-auer.net/If you got more questions don't hesitate to post or e-mail them !
Last edited by Stromausfall; 03/19/11 13:56.
|
|
|
Re: C# wrapper 2.2.1 - RELEASE
[Re: monotonic]
#364709
03/20/11 03:52
03/20/11 03:52
|
Joined: Nov 2007
Posts: 1,143 United Kingdom
DJBMASTER
Serious User
|
Serious User
Joined: Nov 2007
Posts: 1,143
United Kingdom
|
I think you'll have to make a choice - either C# or lite-c mixing them isn't possible. 'acknex.dll' is the heart of the engine which C# uses, so I can't see any reason why you would want to call lite-c functions. You can of course write a lite-c parser which converts lite-c code to C# wrapper code.
|
|
|
Re: C# wrapper 2.2.1 - RELEASE
[Re: ventilator]
#364715
03/20/11 08:35
03/20/11 08:35
|
Joined: Mar 2011
Posts: 13 Yorkshire, England
monotonic
Newbie
|
Newbie
Joined: Mar 2011
Posts: 13
Yorkshire, England
|
Hi Ventilator, Yeah this is what I've been contemplating over the past day or so. The reason why I'm trying to figure out if Lite-C is suitable for my needs is that the functionality is already there for me to load and call the functions within LC code from C#. Now if I interface with LUA or something similar it would require me integrating it (not a difficult task I know, but still a task none the less). Thus using LC would save me time, plus LC obviously already has full integration with all the engine functionality, whereas LUA does not and it would require me to implement this functionality myself. I'm aware that LC is not a "scripting" language, I'm trying to figure out if it would lend itself to my needs or not. I have several options, I could use dynamically compiled C# code as my script, LUA or Lite-C. To be honest I will probablly go with C# for the scripts, but I thought I would just ask you kind people for your input because you have far more experience with 3DGS than I. Thank you for your help guys and sorry for derailing this thread a little
|
|
|
|