Can i interface PB+OGre with C#

Advanced game related topics
Nueng
User
User
Posts: 35
Joined: Fri May 27, 2005 11:16 am

Can i interface PB+OGre with C#

Post 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..
\\ (^O^) //

Thank god for send you to Help me..
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

Write your own 3d engine in pb :P
Thalius
Enthusiast
Enthusiast
Posts: 711
Joined: Thu Jul 17, 2003 4:15 pm
Contact:

Post 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
"In 3D there is never enough Time to do Things right,
but there's always enough Time to make them *look* right."
"psssst! i steal signatures... don't tell anyone! ;)"
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Re: Can i interface PB+OGre with C#

Post 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...
--Kale

Image
Intrigued
Enthusiast
Enthusiast
Posts: 501
Joined: Thu Jun 02, 2005 3:55 am
Location: U.S.A.

Re: Can i interface PB+OGre with C#

Post 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!
Intrigued - Registered PureBasic, lifetime updates user
User avatar
Rings
Moderator
Moderator
Posts: 1435
Joined: Sat Apr 26, 2003 1:11 am

Post 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
SPAMINATOR NR.1
Violet
Enthusiast
Enthusiast
Posts: 106
Joined: Sun Dec 23, 2007 6:30 pm

Post by Violet »

For C# there is the wonderful XNA Game Development Studio, why don't you use that?
best regards,

Violet
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post 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!
--Kale

Image
Post Reply