Added Eigen, replacing ZMath

This commit is contained in:
Vladislav Khorev committed 2026-01-03 20:38:36 +03:00
1 parent 9bfe2bef89
commit 144978bfa2
20 files changed
+167 -936

No files matched your search

+14 -1
View File
@@ -1,13 +1,26 @@
#pragma once
#include "OpenGlExtensions.h"
#include "utils/ZLMath.h"
#include <exception>
#include <stdexcept>
#include "ShaderManager.h"
#include <Eigen/Dense>
namespace ZL {
using Eigen::Vector2f;
using Eigen::Vector3f;
using Eigen::Vector4f;
using Eigen::Matrix3f;
using Eigen::Matrix4f;
Matrix4f MakeOrthoMatrix(float width, float height, float zNear, float zFar);
Matrix4f MakeOrthoMatrix(float xmin, float xmax, float ymin, float ymax, float zNear, float zFar);
Matrix4f MakePerspectiveMatrix(float fovY, float aspectRatio, float zNear, float zFar);
constexpr size_t CONST_MATRIX_STACK_SIZE = 64;
class VBOHolder {