Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Gwen.SFML  (Read 3870 times)

0 Members and 1 Guest are viewing this topic.

Deathbeam

  • Jr. Member
  • **
  • Posts: 82
  • VB6, VB.NET, C#, HTML, PHP, CSS, JavaScript nerd.
    • View Profile
    • My portfolio
    • Email
Gwen.SFML
« 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):


Original version can be downloaded here along with Gwen.NET source code here: https://code.google.com/p/gwen-dotnet/
« Last Edit: April 27, 2014, 08:21:50 pm by Deathbeam »
Spooker Framework - Open source gaming library
My portfolio
Indie Armory - Small community of a game developers. Everyone is welcome. Bring your friends, family, pets...

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10819
    • View Profile
    • development blog
    • Email
Re: Gwen.SFML
« Reply #1 on: April 14, 2014, 07:31:13 pm »
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.
« Last Edit: April 14, 2014, 08:42:25 pm by eXpl0it3r »
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

StormWingDelta

  • Sr. Member
  • ****
  • Posts: 365
    • View Profile
Re: Gwen.SFML
« Reply #2 on: April 15, 2014, 01:10:33 am »
Yep one more thing to add to my collection. XD
I have many ideas but need the help of others to find way to make use of them.

Deathbeam

  • Jr. Member
  • **
  • Posts: 82
  • VB6, VB.NET, C#, HTML, PHP, CSS, JavaScript nerd.
    • View Profile
    • My portfolio
    • Email
Re: Gwen.SFML
« Reply #3 on: April 27, 2014, 08:21:24 pm »
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
Spooker Framework - Open source gaming library
My portfolio
Indie Armory - Small community of a game developers. Everyone is welcome. Bring your friends, family, pets...