-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimisation, possibilité de zoomer, changement des couleurs, adapté …
…à l'écran, multithreading
- Loading branch information
0 parents
commit 7a48293
Showing
169 changed files
with
27,077 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
dependencies/* linguist-vendored |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
cmake_minimum_required(VERSION 3.10) | ||
|
||
project(Fractal_generator) | ||
|
||
file(GLOB PROJ_SRC | ||
"sources/*.cpp" | ||
"includes/*.h" | ||
) | ||
if ((NOT DEFINED VCPKG_TARGET_TRIPLET) AND ("${CMAKE_CXX_COMPILER}" MATCHES g\\+\\+\\.exe) AND (${CMAKE_SIZEOF_VOID_P} EQUAL 4)) | ||
message("Configuiration pour MinGW 32") | ||
set(SFML_DIR "${CMAKE_SOURCE_DIR}/dependencies/SFML/lib/cmake/SFML" CACHE FILEPATH "The directory containing a CMake configuration file for SFML.") | ||
endif() | ||
|
||
add_executable(Fractal_generator ${PROJ_SRC}) | ||
target_include_directories(Fractal_generator PRIVATE ${CMAKE_SOURCE_DIR}/includes) | ||
|
||
find_package(SFML COMPONENTS system window graphics REQUIRED) | ||
target_link_libraries(Fractal_generator PRIVATE | ||
sfml-system | ||
sfml-main | ||
sfml-window | ||
sfml-graphics | ||
) | ||
target_include_directories(Fractal_generator PRIVATE ${SFML_INCLUDE_DIR}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Fractal generator | ||
|
||
![release](https://img.shields.io/badge/release-v1.0-blueviolet) | ||
![language](https://img.shields.io/badge/language-C%2B%2B-0052cf) | ||
![library](https://img.shields.io/badge/library-SFML-00cf2c) | ||
![size](https://img.shields.io/badge/size-32%20Mo-f12222) | ||
![license](https://img.shields.io/badge/license-CC--0-0bb9ec) | ||
|
||
<br/> | ||
|
||
Ce dépôt contient le code source d'un générateur de formes fractales (l'ensemble de **Julia** et de **Mandelbrot**). | ||
|
||
<br/> | ||
|
||
<p align="center"> | ||
<img src="https://i.imgur.com/TZCJbUn.gif" width="700"> | ||
</p> | ||
|
||
<br/> | ||
|
||
# Utilisation | ||
|
||
Le zoom avant/arrière se fait avec la molette de la souris, pour passer de Mandelbrot à Julia il faut cliquer sur la molette et pour passer à l'ensemble de Julia suivant/précédent, c'est avec le bouton gauche et droit de la souris, si vous souhaitez uniquement tester la simulation, vous pouvez consulter les [Releases](https://github.com/angeluriot/Fractal_generator/releases). | ||
|
||
<br/> | ||
|
||
# Tests | ||
|
||
Voici plusieurs tests faits à partir du programme : | ||
|
||
<br/> | ||
|
||
<p align="center"> | ||
<img src="https://i.imgur.com/1hbRPge.png" width="700"> | ||
</p> | ||
|
||
<p align="center"> | ||
<img src="https://i.imgur.com/7LHDutl.png" width="700"> | ||
</p> | ||
|
||
<p align="center"> | ||
<img src="https://i.imgur.com/CpI8v3J.png" width="700"> | ||
</p> | ||
|
||
<br/> | ||
|
||
# Crédits | ||
|
||
* [Angel Uriot](https://github.com/angeluriot) : Créateur du projet. |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
//////////////////////////////////////////////////////////// | ||
// | ||
// SFML - Simple and Fast Multimedia Library | ||
// Copyright (C) 2007-2018 Laurent Gomila (laurent@sfml-dev.org) | ||
// | ||
// This software is provided 'as-is', without any express or implied warranty. | ||
// In no event will the authors be held liable for any damages arising from the use of this software. | ||
// | ||
// Permission is granted to anyone to use this software for any purpose, | ||
// including commercial applications, and to alter it and redistribute it freely, | ||
// subject to the following restrictions: | ||
// | ||
// 1. The origin of this software must not be misrepresented; | ||
// you must not claim that you wrote the original software. | ||
// If you use this software in a product, an acknowledgment | ||
// in the product documentation would be appreciated but is not required. | ||
// | ||
// 2. Altered source versions must be plainly marked as such, | ||
// and must not be misrepresented as being the original software. | ||
// | ||
// 3. This notice may not be removed or altered from any source distribution. | ||
// | ||
//////////////////////////////////////////////////////////// | ||
|
||
#ifndef SFML_AUDIO_HPP | ||
#define SFML_AUDIO_HPP | ||
|
||
//////////////////////////////////////////////////////////// | ||
// Headers | ||
//////////////////////////////////////////////////////////// | ||
|
||
#include <SFML/System.hpp> | ||
#include <SFML/Audio/InputSoundFile.hpp> | ||
#include <SFML/Audio/Listener.hpp> | ||
#include <SFML/Audio/Music.hpp> | ||
#include <SFML/Audio/OutputSoundFile.hpp> | ||
#include <SFML/Audio/Sound.hpp> | ||
#include <SFML/Audio/SoundBuffer.hpp> | ||
#include <SFML/Audio/SoundBufferRecorder.hpp> | ||
#include <SFML/Audio/SoundFileFactory.hpp> | ||
#include <SFML/Audio/SoundFileReader.hpp> | ||
#include <SFML/Audio/SoundFileWriter.hpp> | ||
#include <SFML/Audio/SoundRecorder.hpp> | ||
#include <SFML/Audio/SoundSource.hpp> | ||
#include <SFML/Audio/SoundStream.hpp> | ||
|
||
|
||
#endif // SFML_AUDIO_HPP | ||
|
||
//////////////////////////////////////////////////////////// | ||
/// \defgroup audio Audio module | ||
/// | ||
/// Sounds, streaming (musics or custom sources), recording, | ||
/// spatialization. | ||
/// | ||
//////////////////////////////////////////////////////////// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
//////////////////////////////////////////////////////////// | ||
// | ||
// SFML - Simple and Fast Multimedia Library | ||
// Copyright (C) 2007-2018 Laurent Gomila (laurent@sfml-dev.org) | ||
// | ||
// This software is provided 'as-is', without any express or implied warranty. | ||
// In no event will the authors be held liable for any damages arising from the use of this software. | ||
// | ||
// Permission is granted to anyone to use this software for any purpose, | ||
// including commercial applications, and to alter it and redistribute it freely, | ||
// subject to the following restrictions: | ||
// | ||
// 1. The origin of this software must not be misrepresented; | ||
// you must not claim that you wrote the original software. | ||
// If you use this software in a product, an acknowledgment | ||
// in the product documentation would be appreciated but is not required. | ||
// | ||
// 2. Altered source versions must be plainly marked as such, | ||
// and must not be misrepresented as being the original software. | ||
// | ||
// 3. This notice may not be removed or altered from any source distribution. | ||
// | ||
//////////////////////////////////////////////////////////// | ||
|
||
#ifndef SFML_ALRESOURCE_HPP | ||
#define SFML_ALRESOURCE_HPP | ||
|
||
//////////////////////////////////////////////////////////// | ||
// Headers | ||
//////////////////////////////////////////////////////////// | ||
#include <SFML/Audio/Export.hpp> | ||
|
||
|
||
namespace sf | ||
{ | ||
//////////////////////////////////////////////////////////// | ||
/// \brief Base class for classes that require an OpenAL context | ||
/// | ||
//////////////////////////////////////////////////////////// | ||
class SFML_AUDIO_API AlResource | ||
{ | ||
protected: | ||
|
||
//////////////////////////////////////////////////////////// | ||
/// \brief Default constructor | ||
/// | ||
//////////////////////////////////////////////////////////// | ||
AlResource(); | ||
|
||
//////////////////////////////////////////////////////////// | ||
/// \brief Destructor | ||
/// | ||
//////////////////////////////////////////////////////////// | ||
~AlResource(); | ||
}; | ||
|
||
} // namespace sf | ||
|
||
|
||
#endif // SFML_ALRESOURCE_HPP | ||
|
||
//////////////////////////////////////////////////////////// | ||
/// \class sf::AlResource | ||
/// \ingroup audio | ||
/// | ||
/// This class is for internal use only, it must be the base | ||
/// of every class that requires a valid OpenAL context in | ||
/// order to work. | ||
/// | ||
//////////////////////////////////////////////////////////// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
//////////////////////////////////////////////////////////// | ||
// | ||
// SFML - Simple and Fast Multimedia Library | ||
// Copyright (C) 2007-2018 Laurent Gomila (laurent@sfml-dev.org) | ||
// | ||
// This software is provided 'as-is', without any express or implied warranty. | ||
// In no event will the authors be held liable for any damages arising from the use of this software. | ||
// | ||
// Permission is granted to anyone to use this software for any purpose, | ||
// including commercial applications, and to alter it and redistribute it freely, | ||
// subject to the following restrictions: | ||
// | ||
// 1. The origin of this software must not be misrepresented; | ||
// you must not claim that you wrote the original software. | ||
// If you use this software in a product, an acknowledgment | ||
// in the product documentation would be appreciated but is not required. | ||
// | ||
// 2. Altered source versions must be plainly marked as such, | ||
// and must not be misrepresented as being the original software. | ||
// | ||
// 3. This notice may not be removed or altered from any source distribution. | ||
// | ||
//////////////////////////////////////////////////////////// | ||
|
||
#ifndef SFML_AUDIO_EXPORT_HPP | ||
#define SFML_AUDIO_EXPORT_HPP | ||
|
||
//////////////////////////////////////////////////////////// | ||
// Headers | ||
//////////////////////////////////////////////////////////// | ||
#include <SFML/Config.hpp> | ||
|
||
|
||
//////////////////////////////////////////////////////////// | ||
// Define portable import / export macros | ||
//////////////////////////////////////////////////////////// | ||
#if defined(SFML_AUDIO_EXPORTS) | ||
|
||
#define SFML_AUDIO_API SFML_API_EXPORT | ||
|
||
#else | ||
|
||
#define SFML_AUDIO_API SFML_API_IMPORT | ||
|
||
#endif | ||
|
||
|
||
#endif // SFML_AUDIO_EXPORT_HPP |
Oops, something went wrong.