Page 1 of 1

Can i interface PB+OGre with C#

Posted: Wed Mar 28, 2007 4:57 pm
by Nueng
I am c# programmer and want to make some graphics software.
i like PB because it's has a lot function for graphics while c# is none.

how should i do, if i want write code in C# and part of graphics i will
use Purebasic..

introduce me easy way please ...



best regard

ps. sorry am not strong English language..

Posted: Wed Mar 28, 2007 5:01 pm
by thefool
Write your own 3d engine in pb :P

Posted: Wed Mar 28, 2007 5:33 pm
by Thalius
Yes you can.. However you would have to wrap OGRE's C++ Object Model to a flat commandset. Its bit tricky at times but mostly its tons of work...

Currently neotoma and i working on Irrlicht the same way.

Thalius

Re: Can i interface PB+OGre with C#

Posted: Wed Mar 28, 2007 6:01 pm
by Kale
Nueng wrote:I am c# programmer and want to make some graphics software.
i like PB because it's has a lot function for graphics while c# is none.
In C# use the 'System.Drawing' and related namespaces. Other than that you can code DLLs using Purebasic and import them using this syntax:

Code: Select all

[DllImport("user32.dll", EntryPoint = "GetSystemMenu")]
public static extern IntPtr GetSystemMenu(IntPtr hwnd, int revert);
etc...

Re: Can i interface PB+OGre with C#

Posted: Wed Jan 21, 2009 4:10 am
by Intrigued
Kale wrote:
Nueng wrote:I am c# programmer and want to make some graphics software.
i like PB because it's has a lot function for graphics while c# is none.
In C# use the 'System.Drawing' and related namespaces. Other than that you can code DLLs using Purebasic and import them using this syntax:

Code: Select all

[DllImport("user32.dll", EntryPoint = "GetSystemMenu")]
public static extern IntPtr GetSystemMenu(IntPtr hwnd, int revert);
etc...
Perfect! Thanks for shooting this one out... it really helped in a crunch!

Posted: Wed Jan 21, 2009 9:47 am
by Rings
if it is on Ogre, you can also use the native
NET-Part of ogre,
http://www.ogre3d.org/wiki/index.php/MOGRE

Posted: Wed Jan 21, 2009 4:06 pm
by Violet
For C# there is the wonderful XNA Game Development Studio, why don't you use that?

Posted: Thu Jan 22, 2009 1:09 am
by Kale
Violet wrote:For C# there is the wonderful XNA Game Development Studio, why don't you use that?
http://www.blade3d.com/ is better than coding with the raw framework, but a bit pricey!