2 registered members (Ayumi, AndrewAMD),
770
guests, and 4
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: C# wrapper
[Re: pararealist]
#310986
02/18/10 00:57
02/18/10 00:57
|
Joined: Oct 2004
Posts: 4,134 Netherlands
Joozey
Expert
|
Expert
Joined: Oct 2004
Posts: 4,134
Netherlands
|
Hm, I see. Luckily it's not fatal. Another question: Can I assign pointers to engine object parameters? e.g.
override public unsafe void createComponent(int *posX, int *posY)
{
BMAP myMap = EngFun.bmap_create("component.tga");
myPan = EngFun.pan_create(null, 1);
myPan.bmap = myMap;
myPan.flags |= Flags.VISIBLE;
myPan.pos_x.IntValue = *posX;
myPan.pos_y.IntValue = *posY;
}
If the application behind the interface then changes the integers given through the function, the panel should move... but nothing appears to happen. Is it jammed at the IntValue part? EDIT: Nvm, I see now that I -sort of- can't pull pointers out of classes.
Last edited by Joozey; 02/18/10 01:06.
Click and join the 3dgs irc community! Room: #3dgs
|
|
|
Re: C# wrapper - RELEASE
[Re: mikaldinho]
#311283
02/19/10 11:40
02/19/10 11:40
|
Joined: Nov 2007
Posts: 1,143 United Kingdom
DJBMASTER
Serious User
|
Serious User
Joined: Nov 2007
Posts: 1,143
United Kingdom
|
hmm, I'm interested in how you could extend the wrapper so that we can use DirectX functions. You can do that in lite-c, by calling draw_begin() and then calling DX functions. Instead of having to wrap d3dx9.dll for C#, maybe the D3D device created by the engine could be exposed so that we can use managed DirectX.
I'm going to need this so I can add blocks in the level editor of easy scripter. Any thoughts?
Last edited by DJBMASTER; 02/19/10 11:40.
|
|
|
Re: C# wrapper - RELEASE
[Re: mikaldinho]
#312581
02/25/10 16:09
02/25/10 16:09
|
Joined: Nov 2007
Posts: 2,568 Germany, BW, Stuttgart
MasterQ32
Expert
|
Expert
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
|
i tried it! super but whats about a statment like this:
ENTITY my = ent_create("guard.mdl",new Vector(0,0,50),null);
my.animate("stand", my.skill1, (Var)(int)EngFun.ent_anim_FLAGS.ANM_CYCLE);
or better:
ENTITY my = ent_create("guard.mdl",new Vector(0,0,50),null);
my.animate("stand", my.skill1, EngFun.ent_anim_FLAGS.ANM_CYCLE);
Richi007
Last edited by Richi007; 02/25/10 16:09.
|
|
|
|