mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-14 04:13:59 +02:00
define M_PI in tpt-math.h
This commit is contained in:
@@ -97,9 +97,6 @@
|
|||||||
//Number of unique thumbnails to have in cache at one time
|
//Number of unique thumbnails to have in cache at one time
|
||||||
#define THUMB_CACHE_SIZE 256
|
#define THUMB_CACHE_SIZE 256
|
||||||
|
|
||||||
#ifndef M_PI
|
|
||||||
#define M_PI 3.14159265f
|
|
||||||
#endif
|
|
||||||
#ifndef M_GRAV
|
#ifndef M_GRAV
|
||||||
#define M_GRAV 6.67300e-1
|
#define M_GRAV 6.67300e-1
|
||||||
#endif
|
#endif
|
||||||
|
@@ -1,6 +1,13 @@
|
|||||||
#ifndef TPT_MATH_
|
#ifndef TPT_MATH_
|
||||||
#define TPT_MATH_
|
#define TPT_MATH_
|
||||||
|
|
||||||
|
#ifndef M_PI
|
||||||
|
#define M_PI 3.14159265f
|
||||||
|
#endif
|
||||||
|
#ifndef M_PI_2
|
||||||
|
#define M_PI_2 1.57079633f
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace tpt
|
namespace tpt
|
||||||
{
|
{
|
||||||
float sin(float angle);
|
float sin(float angle);
|
||||||
|
@@ -7,6 +7,7 @@
|
|||||||
#include "Misc.h"
|
#include "Misc.h"
|
||||||
#include "Renderer.h"
|
#include "Renderer.h"
|
||||||
#include "Graphics.h"
|
#include "Graphics.h"
|
||||||
|
#include "common/tpt-math.h"
|
||||||
#include "common/tpt-minmax.h"
|
#include "common/tpt-minmax.h"
|
||||||
#include "gui/game/RenderPreset.h"
|
#include "gui/game/RenderPreset.h"
|
||||||
#include "simulation/Elements.h"
|
#include "simulation/Elements.h"
|
||||||
|
@@ -3,11 +3,12 @@
|
|||||||
// This header should be included by all files in src/elements/
|
// This header should be included by all files in src/elements/
|
||||||
|
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include "Simulation.h"
|
#include "ElementGraphics.h"
|
||||||
#include "graphics/Renderer.h"
|
|
||||||
#include "Gravity.h"
|
#include "Gravity.h"
|
||||||
#include "Misc.h"
|
#include "Misc.h"
|
||||||
#include "ElementGraphics.h"
|
#include "Simulation.h"
|
||||||
|
#include "common/tpt-math.h"
|
||||||
|
#include "graphics/Renderer.h"
|
||||||
|
|
||||||
#define IPL -257.0f
|
#define IPL -257.0f
|
||||||
#define IPH 257.0f
|
#define IPH 257.0f
|
||||||
|
@@ -19,6 +19,7 @@
|
|||||||
#include "ToolClasses.h"
|
#include "ToolClasses.h"
|
||||||
#include "client/GameSave.h"
|
#include "client/GameSave.h"
|
||||||
#include "common/tpt-compat.h"
|
#include "common/tpt-compat.h"
|
||||||
|
#include "common/tpt-math.h"
|
||||||
#include "common/tpt-minmax.h"
|
#include "common/tpt-minmax.h"
|
||||||
#include "gui/game/Brush.h"
|
#include "gui/game/Brush.h"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user