PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Any C# wrappers?

I was wondering if you could use PH in C#?
anyone?
PsychoPenguin37 · 25 Jun 2006, 21:09 UTC
I'm wondering the same thing. Anyone have any idea?
Here: http://xymus.net/PocketFrog_cs.rar
It contains the wrapper wrote mainly by Jeremie Weldin, with some of my modifications and a simple c# game to test it.

The code is free, but the game's images belong to me.

...my web server is unstable so please be patient! ... or pm me
Hi, Xymus!

I have looked at a code of your wrapper and have noticed that there is used LockInfo (Lock), PixelShader (SetPixelShader) and HDC (GetHDC, ReleaseHDC).
In wrapper I have written for my new game, I could not use normally methods with this classes in c# code. Does you tried to use them in your variant? Whether they work?
Also would like to note that there is no necessity to wrap classes Rect and Point from PocketFrog. You can use classes from .Net Framework
Is there still interest in this? If so I might put up the files in a proper site where ppl can get them and discuss them and such.
jweldin wrote:Is there still interest in this? If so I might put up the files in a proper site where ppl can get them and discuss them and such.


If you're using SetPixelShader in your wrapper, it may be interesting :)

By the way, i've already used my own wrapper in demo of my new game - "Ginger: The Fox". And this demo won first place at Computer Art festival "Chaos Constructions 2006" (http://cc6.org.ru/index.php?uid=english) in Combined: Mobile contest.
Here is link to video from the game: ftp://ftp.cc.org.ru/pub/2006/mobile/Ginger_fox_divx.avi
Xymus wrote:Here: http://xymus.net/PocketFrog_cs.rar
It contains the wrapper wrote mainly by Jeremie Weldin, with some of my modifications and a simple c# game to test it.

The code is free, but the game's images belong to me.

...my web server is unstable so please be patient! ... or pm me


Thanks for posting your version of Jeremie's wrapper. I have now upgraded it to build successfully in VS 2005 and I included the PocketHAL lib which Kzinti posted containing the fix for landscape smartphones such as the MotoQ and the HTC S620.

Note I didnt fix your game for landscape so there is a drawing bug since you designed it for a portrait res. And one thing I am unsure of if the fix you applied for wm5 image loading (i.e. using SHLoadImageFile and linking to AygShell.lib) means that you can't load images in 2003, I didnt test that.

If for any reason this file becomes unavailable just PM me.

http://www.dcs.gla.ac.uk/~hall/download ... g_csV2.rar