I tried using the SFML.NET RC and it did not work because of m_Target.Draw cannot accept 5 params and I believe you are using a snapshot which will not have any dlls and have to be compiled to dll. Any way since my interest is only in OpenTK which is working in android, i will defer the SFML. I have just started to port the code Mono for Android and it is working without the Texturer and Text and will update you once i get the full thing working with your unit tests.
do you have a working sfml example with everything up to date? I’ve been trying for the past few hours or so to get the Gwen.Sample.SFML project to work unsuccessfuly.
Thanks, I’ve gotten it working now. One thing to note though, in in SFML.cs in the SFML renderer project, I had to change:
m_Target.Draw(m_VertexCache, 0, m_CacheSize, PrimitiveType.Quads, m_RenderState);
to:
m_Target.Draw(m_VertexCache, PrimitiveType.Quads, m_RenderState);
I’m not sure if that is how it should be, but it does compile and work for me.
I tried compiling Gwen.Renderer.SFML and It is failing because of RenderStates and Vertex not found.
I am porting your code to Android and IOS using Mono for Android and MonoTouch and hit this error. Will you be interested in woroking with me to do this. Currently I have ported to Android using Mono for Android by rewriting your OpenTK renderer to use Triangles instead of Quad (Found examples in your older version) but it will be awesome if you can also help/collaborate in my venture to build a cross platform deployment and development framework.
Sridharan Srinivasan said this on May 14, 2012 at 10:50 |
Make sure you have the latest SFML.Net snapshot – its API was changed quite a lot in the latest builds.
omeg said this on May 14, 2012 at 16:38 |
I tried using the SFML.NET RC and it did not work because of m_Target.Draw cannot accept 5 params and I believe you are using a snapshot which will not have any dlls and have to be compiled to dll. Any way since my interest is only in OpenTK which is working in android, i will defer the SFML. I have just started to port the code Mono for Android and it is working without the Texturer and Text and will update you once i get the full thing working with your unit tests.
Anyway thanks for the great work
Sridharan Srinivassan said this on May 15, 2012 at 16:39 |
Yeah, the latest snapshot of SFML needs to be compiled. Good luck with the Android port!
omeg said this on May 16, 2012 at 13:17 |
http://code.google.com/p/gwen-dotnet/issues/detail?id=25 and http://code.google.com/p/gwen-dotnet/issues/detail?id=27 SFML is broken
Squizzle said this on June 23, 2012 at 23:12 |
Yeah, some recent SFML change caused that. I wish Laurent published all (possibly) breaking modifications in one place. :/
omeg said this on June 24, 2012 at 12:49 |
Fixed.
omeg said this on June 25, 2012 at 11:31 |
do you have a working sfml example with everything up to date? I’ve been trying for the past few hours or so to get the Gwen.Sample.SFML project to work unsuccessfuly.
Steven said this on September 13, 2012 at 00:19 |
I see there were some breaking changes again. I’ll post an update shortly.
omeg said this on September 13, 2012 at 12:47 |
Thanks, I’ve gotten it working now. One thing to note though, in in SFML.cs in the SFML renderer project, I had to change:
m_Target.Draw(m_VertexCache, 0, m_CacheSize, PrimitiveType.Quads, m_RenderState);
to:
m_Target.Draw(m_VertexCache, PrimitiveType.Quads, m_RenderState);
I’m not sure if that is how it should be, but it does compile and work for me.
Steven said this on September 13, 2012 at 18:50 |