Repository navigation
Conversation
|
Can you verify |
|
I checked |
|
I see. Okay I will kind of fix the examples and check to get the rest done |
|
Let me know if you need/want help fixing up things 🙂 |
|
Give me tomorrow but if I am not done by the evening, I'll happily turn it over. I think, I also need to implement that SFML/CSFML@f5f2629#diff-2c6355cf7f0794f34931096fdf0d3918b8cfe8a81144dabe2e4236d7675cb2cd, right? |
|
The biggest thing holding me up is my time rn ^^ |
8f7d900 to
9613faf
Compare
9613faf to
11e476b
Compare
|
Okay, I think I got most. I can remove the local publish script and the example changes. But I figured I leave them for now |
eXpl0it3r
left a comment
There was a problem hiding this comment.
Some marshalling things to fix.
I tested the PlaybackDevice and it returns devices for me once a sound object exists
| /// <summary> Starting offset of the vertex data belonging to this glyph </summary> | ||
| public uint VertexOffset; | ||
|
|
||
| /// <summary> Count of vertices belonging to this glyph </summary> | ||
| public uint VertexCount; |
There was a problem hiding this comment.
vertexOffset and vertexCount are size_t in CSFML, so this struct doesn't match the C one, and GetShapedGlyphs() returns garbage after the first glyph.
I'd keep uint in the public ShapedGlyph and do the same as for Font.Info by adding a private marshal struct with UIntPtr for the two fields read that in GetShapedGlyphs() and in the pre-processor callback, then convert it to ShapedGlyph.
There was a problem hiding this comment.
We could also do ulong in the public API which is more correct but probably doesn't matter because who uses text that long
11e476b to
d305de3
Compare
|
yes the PlaybackDevices work |
Not fully finished but I figured I share the progress so far. Depends on SFML/CSFML#419
The text shaping stuff ate too much time (idk 3hrs probably ^^) because I fought against the Arrays as return values. The glyph callback was successful first try, though xD
I struggle a little to pull SFML.Net as a local package on my machine that's why I butchered the examples to test the features. I left them in for now.
Hopefully, I can finish the PlaybackDevice soon (like after I got some sleep).
Let me know if I forgot anything else. I'd like to get this done as I depend with a feature in my project on this release. I need these text vertex data arrays. Is the CSFML PR done or is there more work besides writing tests and examples?
I will rebase when I finished.