mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-01-22 05:30:06 -05:00
5cdfe0b6b9
--User changes -Add many tooltips to help clarify functionality. -Select multiple flames in library for del/move. Still only one allowed to be set as the current. -Show checkbox for current flame. Remember this is not necessarily what's selected. -User can now drag a square to select xforms, which keeps in sync with checkboxes. -Remove --nframes from command line. Replace with new params: --loopframes, --interpframes, --interploops. -Add two new options to EmberGenome: --cwloops --cwinterploops to specify whether rotation should go clockwise instead of the default counter clockwise. -Add these to Fractorium as checkboxes. -Apply All now also works for toggling animate flag on xforms. -Options dialog now allows user to set whether double click toggles spinners, or right click does. --Bug fixes -Selecting final and non-final xforms, and then dragging the non-final did not drag the final with it. -Selecting all xforms when a final was present, then deleting crashed the program. -Remove support for ppm files in the command line programs, it's an outdated format. -Switching between SP and DP kept reapplying the palette adjustments. --Code changes -Move build system to Visual Studio 2015 and Qt 5.6. -SSE used during addition of points to the histogram. -Remove last remnants of old flam3 C code and replace with C++. -Remove unused code involving tbb::task_group. -Make settings object a global shared_ptr singleton, so it doesn't have to be passed around.
94 lines
2.0 KiB
C++
94 lines
2.0 KiB
C++
#ifdef _WIN32
|
|
#pragma once
|
|
#endif
|
|
|
|
/// <summary>
|
|
/// Precompiled header file. Place all system includes here with appropriate #defines for different operating systems and compilers.
|
|
/// </summary>
|
|
|
|
#define NOMINMAX
|
|
#define _USE_MATH_DEFINES
|
|
#define __TBB_NO_IMPLICIT_LINKAGE 1//Prevent tbb from automatically looking for tbb_debug.lib. We only care about the release tbb.lib/dll.
|
|
|
|
#ifdef _WIN32
|
|
#pragma warning(disable : 4251; disable : 4661; disable : 4100)
|
|
#define basename(x) _strdup(x)
|
|
#define WIN32_LEAN_AND_MEAN
|
|
#define EMBER_OS "WIN"
|
|
|
|
#include <SDKDDKVer.h>
|
|
#include <windows.h>
|
|
#elif __APPLE__
|
|
#define EMBER_OS "OSX"
|
|
#else
|
|
#include <libgen.h>
|
|
#include <unistd.h>
|
|
#define EMBER_OS "LNX"
|
|
#endif
|
|
|
|
//Standard headers.
|
|
#include <algorithm>
|
|
#include <array>
|
|
#include <chrono>
|
|
#include <complex>
|
|
#include <cstdint>
|
|
#include <fstream>
|
|
#include <functional>
|
|
#include <inttypes.h>
|
|
#include <iostream>
|
|
#include <iomanip>
|
|
#include <limits>
|
|
#include <list>
|
|
#ifdef __APPLE__
|
|
#include <malloc/malloc.h>
|
|
#else
|
|
#include <malloc.h>
|
|
#endif
|
|
#include <map>
|
|
#include <math.h>
|
|
#include <memory>
|
|
#include <mutex>
|
|
#include <numeric>
|
|
#include <ostream>
|
|
#include <sstream>
|
|
#include <sys/types.h>
|
|
#include <sys/stat.h>
|
|
#include <thread>
|
|
#include <time.h>
|
|
#include <type_traits>
|
|
#include <vector>
|
|
#include <unordered_map>
|
|
|
|
//Third party headers.
|
|
#ifdef _WIN32
|
|
#include "libxml/parser.h"
|
|
#else
|
|
#include "libxml2/libxml/parser.h"
|
|
#endif
|
|
|
|
//Intel's Threading Building Blocks is what's used for all threading.
|
|
#include <tbb/parallel_for.h>
|
|
#include <tbb/task_scheduler_init.h>
|
|
|
|
#define GLM_FORCE_RADIANS 1
|
|
#define GLM_ENABLE_EXPERIMENTAL 1
|
|
|
|
#ifndef __APPLE__
|
|
#define GLM_FORCE_INLINE 1
|
|
#endif
|
|
|
|
//glm is what's used for matrix math.
|
|
#include <glm/glm.hpp>
|
|
#include <glm/detail/type_int.hpp>
|
|
#include <glm/gtc/matrix_transform.hpp>
|
|
#include <glm/gtc/type_ptr.hpp>
|
|
#include <glm/gtx/string_cast.hpp>
|
|
|
|
using namespace tbb;
|
|
using namespace std;
|
|
using namespace std::chrono;
|
|
using namespace glm;
|
|
using namespace glm::detail;
|
|
using glm::uint;
|
|
using glm::uint16;
|