]> git.tdb.fi Git - libs/gl.git/blobdiff - source/backends/vulkan/camera_backend.cpp
Initial implementation of Vulkan backend
[libs/gl.git] / source / backends / vulkan / camera_backend.cpp
diff --git a/source/backends/vulkan/camera_backend.cpp b/source/backends/vulkan/camera_backend.cpp
new file mode 100644 (file)
index 0000000..9eba428
--- /dev/null
@@ -0,0 +1,17 @@
+#include "camera_backend.h"
+#include "matrix.h"
+
+namespace Msp {
+namespace GL {
+
+void VulkanCamera::adjust_projection_matrix(Matrix &proj_matrix)
+{
+       Matrix adjust;
+       adjust(1, 1) = -1.0f;
+       adjust(2, 2) = 0.5f;
+       adjust(2, 3) = 0.5f;
+       proj_matrix = adjust*proj_matrix;
+}
+
+} // namespace GL
+} // namespace Msp