mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-09 20:41:29 -04:00
get dusk past compilation and into linking
This commit is contained in:
@@ -5,6 +5,9 @@
|
||||
#include <cmath>
|
||||
|
||||
#define m_PI_D 3.141592653589793
|
||||
#ifndef __MWERKS__
|
||||
#include "dusk/math.h"
|
||||
#endif
|
||||
|
||||
namespace JStudio {
|
||||
namespace math {
|
||||
|
||||
@@ -7,4 +7,8 @@
|
||||
#include "d/dolzel.pch"
|
||||
#endif
|
||||
|
||||
#ifndef __MWERKS__
|
||||
#include "dusk/math.h"
|
||||
#endif
|
||||
|
||||
#endif // dolzel.h
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
#ifndef _SRC_EXTRAS_H_
|
||||
#define _SRC_EXTRAS_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
int strnicmp(const char* str1, const char* str2, int n);
|
||||
int stricmp(const char* str1, const char* str2);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // _SRC_EXTRAS_H_
|
||||
@@ -0,0 +1,17 @@
|
||||
#ifndef _SRC_DUSK_MATH_H_
|
||||
#define _SRC_DUSK_MATH_H_
|
||||
|
||||
#include <cmath>
|
||||
|
||||
#define M_PI 3.14159265358979323846f
|
||||
#define M_SQRT3 1.73205f
|
||||
|
||||
#define DEG_TO_RAD(degrees) (degrees * (M_PI / 180.0f))
|
||||
#define RAD_TO_DEG(radians) (radians * (180.0f / M_PI))
|
||||
|
||||
inline float i_sinf(float x) { return sin(x); }
|
||||
inline float i_cosf(float x) { return cos(x); }
|
||||
inline float i_tanf(float x) { return tan(x); }
|
||||
inline float i_acosf(float x) { return acos(x); }
|
||||
|
||||
#endif // _SRC_DUSK_MATH_H_
|
||||
Reference in New Issue
Block a user