SFML community forums
General => SFML projects => Topic started by: Deathbeam on April 14, 2014, 06:59:53 pm
-
Hello everyone. This is thing what I made mainly becouse I needed it for my framework, but I thought I will also share it.
What is this?
It is rewrite of Gwen.NET SFML binding using modern code formatting. But yes, this isn´t reason for rewrite, I know. This SFML binding was broken, it was not able to load custom fonts correctly, it loaded them correctly only from Windows Fonts folder. Yes, it was bad. I also removed this ability to load fonts from windows fonts folder. Why? Becouse I like linux more and I do not like pre-installed fonts.
In short...
This is fixed Gwen.NET for SFML without windows thingies.
WHERE IS MY .EXE?
*crying*.... Here is source code: https://github.com/eatenbrain/Gwen.SFML
Okay, give me 3D glasses and let me watch!
Okay, here is Gwen in action (this example application can be downloaded from official Gwen.NET repository hosted on Google Code, link to it is on bottom of this post):
(http://i.imgur.com/9hiQn.png)
Original version can be downloaded here along with Gwen.NET source code here: https://code.google.com/p/gwen-dotnet/
-
Some things sound funnier in one own's head, I think the same applies to these "titles" - there's no need for swearing and no need for über-large fonts...
It's nice that you've taken on the task to rewrite things, did you consider providing a patch to the original repository? I let omeg (original author) know about your version, maybe you two can work something out. :)
Edit: omeg said, he'd be even willing to give out commit access, as he's done in the past.
-
Yep one more thing to add to my collection. XD
-
Some things sound funnier in one own's head, I think the same applies to these "titles" - there's no need for swearing and no need for über-large fonts...
It's nice that you've taken on the task to rewrite things, did you consider providing a patch to the original repository? I let omeg (original author) know about your version, maybe you two can work something out. :)
Edit: omeg said, he'd be even willing to give out commit access, as he's done in the past.
Sounds good. Btw, I made new update for this.
Text caching (not really)
In this commit I removed creating new instance of Text class everytime when text was drawn. Now, when drawing begins, new instance of Text class is created, and then drawing text is just changing properties of it and at end of drawing this text is disposed. Simple enought, and I think it speeded up things a bit. Also, removed empty try of getting font kerning, what was not used anywhere in MeasureText sub.
Here is all changes detailed: https://github.com/eatenbrain/Gwen.SFML/commit/4120a847a5a8e03744ffa4da3d2d0b36d487357f