Files
Seele/src/Engine/Math/Vector.h
T

41 lines
961 B
C++
Raw Normal View History

#pragma once
2023-10-09 15:12:07 +02:00
#ifdef WIN32
#pragma warning(push)
#pragma warning(disable: 4201)
2023-10-09 15:12:07 +02:00
#endif
#include <glm/vec2.hpp>
#include <glm/vec3.hpp>
#include <glm/vec4.hpp>
2020-05-05 01:51:13 +02:00
2020-04-15 02:03:56 +02:00
#include <glm/gtc/quaternion.hpp>
2023-10-09 15:12:07 +02:00
#ifdef WIN32
#pragma warning(pop)
2023-10-09 15:12:07 +02:00
#endif
2023-01-21 18:43:21 +01:00
#include <nlohmann/json_fwd.hpp>
2023-02-13 14:56:13 +01:00
2020-04-12 15:47:19 +02:00
namespace Seele
{
typedef glm::vec2 Vector2;
2020-04-15 02:03:56 +02:00
typedef glm::vec3 Vector;
2020-04-12 15:47:19 +02:00
typedef glm::vec4 Vector4;
2020-04-12 15:47:19 +02:00
typedef glm::uvec2 UVector2;
2023-02-13 14:56:13 +01:00
typedef glm::uvec3 UVector;
2020-04-12 15:47:19 +02:00
typedef glm::uvec4 UVector4;
2020-04-12 15:47:19 +02:00
typedef glm::ivec2 IVector2;
2023-02-13 14:56:13 +01:00
typedef glm::ivec3 IVector;
2020-04-12 15:47:19 +02:00
typedef glm::ivec4 IVector4;
2020-04-15 02:03:56 +02:00
typedef glm::quat Quaternion;
2020-06-02 11:46:18 +02:00
Vector parseVector(const char*);
2023-01-21 18:43:21 +01:00
void to_json(nlohmann::json& j, const Vector& vec);
void from_json(nlohmann::json& j, Vector& vec);
2022-11-17 16:47:42 +01:00
} // namespace Seele
2023-01-21 18:43:21 +01:00
std::ostream& operator<<(std::ostream& stream, const Seele::Vector2& vector);
std::ostream& operator<<(std::ostream& stream, const Seele::Vector& vector);
2023-02-13 14:56:13 +01:00
std::ostream& operator<<(std::ostream& stream, const Seele::Vector4& vector);