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

Author Topic: SFGUI (0.4.0 released)  (Read 393179 times)

0 Members and 2 Guests are viewing this topic.

ChronicRat

  • Sr. Member
  • ****
  • Posts: 327
  • C++ programmer
    • View Profile
    • My blog
Re: SFGUI (0.1.1 released)
« Reply #480 on: November 18, 2013, 09:28:43 am »
I commented one line in CMakeLists.txt:
# Find packages.
find_package( OpenGL REQUIRED )
#find_package( SFML 2.1 REQUIRED COMPONENTS GRAPHICS WINDOW SYSTEM )
 
I have not found another solution. After creating the project files need a little correct them manually.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: SFGUI (0.1.1 released)
« Reply #481 on: November 18, 2013, 09:32:19 am »
I have not found another solution. After creating the project files need a little correct them manually.
No idea what you're talking about, but if you prevent the SFGUI CMake script from finding SFML, you'll have problems building SFGUI, since it depends on SFML... ???
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

binary1248

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1405
  • I am awesome.
    • View Profile
    • The server that really shouldn't be running
Re: SFGUI (0.1.1 released)
« Reply #482 on: November 18, 2013, 09:39:11 am »
Try one of these:
git clone git://boxbox.org/SFGUI-binary1248.git -b testing
https://github.com/binary1248/SFGUI/tree/testing

I changed the CMake configuration a bit to make it easier to understand what is asked of you. And setting SFML_ROOT (either as an environment variable or in CMake) is all that is required to get a working SFGUI build configuration.

A word of warning though: Due to a limitation of CMake, if you want to link SFML statically, you need to delete it's library entries and let CMake search for the static ones again. It won't change the paths unless they don't previously exist. Would be nice if Laurent could think of a solution to this ;). Maybe an SFMLConfig.cmake or sfml-config.cmake? :P
SFGUI # SFNUL # GLS # Wyrm <- Why do I waste my time on such a useless project? Because I am awesome (first meaning).

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: SFGUI (0.1.1 released)
« Reply #483 on: November 18, 2013, 09:46:35 am »
Quote
Maybe an SFMLConfig.cmake or sfml-config.cmake?
Where is the pull request? :P
Laurent Gomila - SFML developer

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
Re: SFGUI (0.2.0 released)
« Reply #484 on: November 22, 2013, 02:54:46 pm »
SFGUI 0.2.0 released

Version 0.2.0 of SFGUI has just been released. Changes include:

Enhancements:
  • Conversion of codebase to use C++11 features.
  • Implemented two backend renderers (one uses vertex buffer objects, the other client-side vertex arrays).
  • Generalized renderer textured quad creation from CreateImage into CreateSprite allowing Engine developers more freedom to manage resources and convey their usage.
  • Allow creation of RadioButtonGroups in advance.
Fixes:
  • Fixed linking and general building errors on OSX.
  • Fixed corner case bug with canvas.
  • Fixed viewports not propagating properly.
  • Fixed index count not being reduced in renderer when primitives are removed.
  • Fixed FindSFGUI.cmake ignoring standard arguments.
  • Removed obsolete UpdateViewRect() from sfg::Desktop.
  • Fixed renderer crashing when drawing without any textures loaded into the atlas.
  • Fixed loading fonts in renderer.
  • Adapted CMake configuration to the new SFML linking system.
  • Got rid of SFML as an extlib (Git submodule).
  • Cleaned up CMake configuration file.

WEBSITE http://sfgui.sfml-dev.de/

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: SFGUI (0.2.0 released)
« Reply #485 on: November 22, 2013, 03:01:24 pm »
HAX! ;D

You forgot one point: Made a nicer website. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
Re: SFGUI (0.2.0 released)
« Reply #486 on: November 22, 2013, 03:01:50 pm »
Thanks. ;)

FRex

  • Hero Member
  • *****
  • Posts: 1848
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: SFGUI (0.2.0 released)
« Reply #487 on: November 22, 2013, 04:16:31 pm »
Quote
Conversion of codebase to use C++11 features.
I swear to God I was going to troll about that on your forum. I even had it in my TODO list:
Quote
sfg cus its 2013 and they still dont use std::function or shared ptr

That and one other usability defect that I won't yet say what it was, but I think that fixes it: :P
Quote
Implemented two backend renderers (one uses vertex buffer objects, the other client-side vertex arrays).
I'm going to check it out now.
Back to C++ gamedev with SFML in May 2023

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: SFGUI (0.2.0 released)
« Reply #488 on: November 22, 2013, 10:20:49 pm »
Hey, that website background is stolen from me :P

Cool to see SFGUI being actively developed! I think you once discussed that, do you still plan to move SFGUI away from SFML in the long term? Did you ever consider making it compatible with other graphics libraries, such as Irrlicht or OGRE?
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
AW: Re: SFGUI (0.2.0 released)
« Reply #489 on: November 22, 2013, 11:39:09 pm »
Hey, that website background is stolen from me :P
Did you say something? I only hear NOISE. :P

I think you once discussed that, do you still plan to move SFGUI away from SFML in the long term? Did you ever consider making it compatible with other graphics libraries, such as Irrlicht or OGRE?
As by the FAQ and the various discussions on IRC, that seems to be the goal, but I rather let the master(s) speak. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
Re: SFGUI (0.2.0 released)
« Reply #490 on: November 25, 2013, 08:42:55 am »
Quote
Did you say something? I only hear NOISE. :P
It indeed looks like yours. However it's just the GIMP noise filter to make the background less boring. :)

Quote
I think you once discussed that, do you still plan to move SFGUI away from SFML in the long term?
Yes, absolutely, SFGUI will be completely decoupled from SFML. We will initially provide drivers for using SFGUI together with SFML and raw OpenGL applications/games. With some effort it should be possible to use SFGUI with OGRE and Irrlicht as well, then (of course only if the OpenGL drivers are used, DX is not and will never be supported).

FRex

  • Hero Member
  • *****
  • Posts: 1848
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: SFGUI (0.2.0 released)
« Reply #491 on: November 25, 2013, 09:44:12 pm »
What about making it so that SFG doesn't use much(or any) globals and sfg::Desktop or sfg::SFGUI is 100% self contained so that weird problems like I-removed-widget-from-desktop-but-it-still-renders and i-want-to-have-few-guis-in-one-app are solved? :-\
Back to C++ gamedev with SFML in May 2023

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
Re: SFGUI (0.2.0 released)
« Reply #492 on: November 26, 2013, 04:18:04 pm »
What about making it so that SFG doesn't use much(or any) globals and sfg::Desktop or sfg::SFGUI is 100% self contained so that weird problems like I-removed-widget-from-desktop-but-it-still-renders and i-want-to-have-few-guis-in-one-app are solved? :-\
Widgets that are removed from desktop but still render is not related to globals at all. A widget you hold a reference to will itself hold a reference to its visual render object. That's why you still see it even if it's removed from the widget graph. It's a behavior that I don't like as well, but changing that will also introduce a big change of the underlying memory model, i.e. how widgets are managed. It's something that can't be done in a couple of days.

I don't understand your second issue.

FRex

  • Hero Member
  • *****
  • Posts: 1848
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: SFGUI (0.2.0 released)
« Reply #493 on: November 26, 2013, 04:39:21 pm »
Quote
I don't understand your second issue.
Quote
    The desktop manages stackable children and manages an own rendering engine.

    The desktop should be use as a managing class for all your windows/widgets. Set your properties here so that your children refresh automagically.
http://sfgui.sfml-dev.de/forum/post1199.html#p1199
This in docs, this quote from binary, and the fact that code that has two desktops will render both on Display() suggest that it's not so supported to have few independent interfaces in one app(such as few windows, or , after you divorce with SFML - a 3D app with pcs/interactive surfaces/menus/hud, all independent of each other) unless you explicitly iterate aaaallllllll widgets in the world and call Show(false) on them while also calling Show(true) on all of the ones you want to render...
Back to C++ gamedev with SFML in May 2023

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
Re: SFGUI (0.2.0 released)
« Reply #494 on: November 26, 2013, 04:43:40 pm »
You don't have to iterate all widgets, you can hide parent widgets easily. It's a problem if multiple instances of sfg::Desktop don't work, but using one of it shouldn't be a big deal.

 

anything