SFML community forums

Help => General => Topic started by: _4004 on April 02, 2020, 12:53:46 pm

Title: Effects
Post by: _4004 on April 02, 2020, 12:53:46 pm
Hello. I want working with effects(for example: fade effect, opening effect, loading effect, blob effect or any effects). But I want do without the Swoosh lib. What do I need to know for this?
Title: Re: Effects
Post by: Hapax on April 02, 2020, 04:54:11 pm
There's been a similar question on here before.
This thread may help:
https://en.sfml-dev.org/forums/index.php?topic=21487
Title: Re: Effects
Post by: _4004 on April 02, 2020, 08:16:42 pm
Oh thanks. I read. But, I couldn't find any information about include in the project in this link: https://github.com/Hapaxia/Plinth/wiki. Do I need to drop the .hpp files in the folder to the main directory of the project?
Title: Re: Effects
Post by: Hapax on April 03, 2020, 12:18:11 am
Plinth (https://github.com/Hapaxia/Plinth/wiki) is a separate library (one of mine, actually). You can compile it yourself and then link it in as you would others (such as SFML).
One thing to note is that the base library doesn't require SFML but the SFML module does. The SFML module should be compiled separately from the base part. This allows the non-SFML part to be used without linking in SFML.
The base part has no dependencies and the SFML module (if required) is only dependent on SFML.
Title: Re: Effects
Post by: _4004 on April 03, 2020, 12:08:07 pm
I say what I understand: Plinth is used in two ways: with and without SFML. If I want to use it with SFML to the project, I need to include SFML folder, right? I'm sorry I dont know enough english  :-\.
Title: Re: Effects
Post by: Hapax on April 03, 2020, 05:52:48 pm
Plinth without SFML would be the base part i.e. just the stuff in Plinth directory (built as a library).
Plinth with SFML would require both the base part and the stuff in the SFML directory (built as a separate library).

If you use any of the SFML parts yourself, you need to include SFML yourself, yes.
If you use Plinth's SFML module, you need to link in SFML as well.
Title: Re: Effects
Post by: _4004 on April 03, 2020, 07:40:51 pm
Thank you so much. One last question: Where can I get the api documentation for to practice?
Title: Re: Effects
Post by: Hapax on April 03, 2020, 09:06:12 pm
There's currently very little documentation for Plinth. The wiki (https://github.com/Hapaxia/Plinth/wiki) provides an overview but no examples as yet. The majority of it should be quite easy to use and the headers should be relatively self-explanatory, hopefully.

I almost always use Plinth in my own work so there will be some examples of its use in some of my GitHub repositories.

I may also make a thread on SFML forum at some point although that would really only cover the SFML part.