Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Topic Gosu / Extending Gosu / c# and gosu
- By Basic Date 2009-08-22 13:02
Would it be possible to compile gosu to work under C# ?

I've found some bits and bobs that suggest it is possible
http://www.codeproject.com/KB/mcpp/usingcppdll.aspx
http://www.codeproject.com/kb/cs/interopBycchrism.aspx

Was thinking about trying this out the weekend, but wanted to check if a) anybody has done this, and b) does anybody know if there any reason this will explode?
- By Basic Date 2009-08-22 14:40
poking around the gosu source files, I found Swig. which looks like how you get the ruby side of gosu working. digging around swig I notice that they have among other things a C# wrapper.

So I know this must be possible.

So I've started by simply trying to compile gosu in visual c++, this is already not going well. the compiler is complaining it cant find files.

1>..\GosuImpl\Graphics\TextWin.cpp(4) : fatal error C1083: Cannot open include file: 'Gosu/Bitmap.hpp': No such file or directory

and this goes on and on.

the files are there, but not in the directory thats its looking in. 'Gosu/..'. Although I vaguely remember that directory structure doesn't really matter to the compiler anyway. (or am I confused).

I must stress that I have only rudimentary c++ and I compile in mac using g++
- By Maverick Date 2009-08-22 17:22
This is MADNESS.

If you could manage to get Gosu and C# working as one, the Xbox Community will flood this server.
- By jlnr (dev) Date 2009-08-22 19:36

> Xbox Community


Just because it works with C# on Windows doesn't mean it has to work on an Xbox :( Which would be cool of course. I like PowerPC more than x86 anyway :P

> Gosu/Bitmap.hpp


You have to have the Gosu main folder in the header search path, as described in the Wiki page on getting Gosu to work with C++ in general. You will need the DX9 SDK to compile Gosu, and I guess you will have to extend/change the RubyGosu.swg a lot too. Some stuff in there is specific to Ruby. But yes, in theory, it is relatively easy to port Gosu to either of SWIG's supported languages, which also include Java, Python, …
- By Maverick Date 2009-08-23 19:42

> Just because it works with C# on Windows doesn't mean it has to work on an Xbox :( Which would be cool of course. I like PowerPC more than x86 anyway :P


Go ahead and crush my hopes and dreams. I'll return the favor. *cracks knuckles and puts on shades*

:D
Up Topic Gosu / Extending Gosu / c# and gosu

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill