From 63d06ef9537453f089104c83d14880326f2474f3 Mon Sep 17 00:00:00 2001 From: Quentin Date: Sun, 31 Mar 2024 21:11:14 +0200 Subject: [PATCH] viewport (#166) --- graphics/CViewport.hpp | 14 ++++++++++++++ rage/grcViewport.hpp | 15 +++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 graphics/CViewport.hpp create mode 100644 rage/grcViewport.hpp diff --git a/graphics/CViewport.hpp b/graphics/CViewport.hpp new file mode 100644 index 0000000..91e054e --- /dev/null +++ b/graphics/CViewport.hpp @@ -0,0 +1,14 @@ +#pragma once +#include "rage/grcViewport.hpp" + +struct CViewportGame +{ +public: + virtual ~CViewportGame() = 0; + +private: + char m_pad[8]; + +public: + rage::grcViewport viewport; +}; \ No newline at end of file diff --git a/rage/grcViewport.hpp b/rage/grcViewport.hpp new file mode 100644 index 0000000..88034b9 --- /dev/null +++ b/rage/grcViewport.hpp @@ -0,0 +1,15 @@ +#pragma once +#include "vector.hpp" + +namespace rage +{ + struct grcViewport + { + fmatrix44 m_world; + fmatrix44 m_worldView; + fmatrix44 m_worldViewProj; + fmatrix44 m_inverseView; + fmatrix44 m_view; + fmatrix44 m_projection; + }; +} \ No newline at end of file