Jelajahi Sumber

Move video_core/math.h to common/vector_math.h

The file only contained vector manipulation code, and such widely-useable code doesn't belong in video_core.
archshift 11 tahun lalu
induk
melakukan
5df2d1b5f7

+ 2 - 2
src/citra_qt/debugger/graphics_cmdlists.cpp

@@ -11,10 +11,10 @@
 #include <QSpinBox>
 #include <QComboBox>
 
-#include "video_core/pica.h"
-#include "video_core/math.h"
+#include "common/vector_math.h"
 
 #include "video_core/debug_utils/debug_utils.h"
+#include "video_core/pica.h"
 
 #include "graphics_cmdlists.h"
 

+ 1 - 0
src/common/CMakeLists.txt

@@ -54,6 +54,7 @@ set(HEADERS
             thread_queue_list.h
             thunk.h
             timer.h
+            vector_math.h
             )
 
 create_directory_groups(${SRCS} ${HEADERS})

+ 0 - 0
src/video_core/math.h → src/common/vector_math.h


+ 0 - 1
src/video_core/CMakeLists.txt

@@ -33,7 +33,6 @@ set(HEADERS
             command_processor.h
             gpu_debugger.h
             hwrasterizer_base.h
-            math.h
             pica.h
             primitive_assembly.h
             rasterizer.h

+ 1 - 2
src/video_core/color.h

@@ -6,8 +6,7 @@
 
 #include "common/common_types.h"
 #include "common/swap.h"
-
-#include "video_core/math.h"
+#include "common/vector_math.h"
 
 namespace Color {
 

+ 1 - 1
src/video_core/debug_utils/debug_utils.cpp

@@ -19,9 +19,9 @@
 #include "common/assert.h"
 #include "common/file_util.h"
 #include "common/math_util.h"
+#include "common/vector_math.h"
 
 #include "video_core/color.h"
-#include "video_core/math.h"
 #include "video_core/pica.h"
 #include "video_core/utils.h"
 #include "video_core/video_core.h"

+ 2 - 1
src/video_core/debug_utils/debug_utils.h

@@ -12,7 +12,8 @@
 #include <mutex>
 #include <vector>
 
-#include "video_core/math.h"
+#include "common/vector_math.h"
+
 #include "video_core/pica.h"
 
 namespace Pica {

+ 1 - 2
src/video_core/pica.h

@@ -15,8 +15,7 @@
 #include "common/common_funcs.h"
 #include "common/common_types.h"
 #include "common/logging/log.h"
-
-#include "math.h"
+#include "common/vector_math.h"
 
 namespace Pica {
 

+ 1 - 1
src/video_core/renderer_opengl/gl_rasterizer_cache.cpp

@@ -4,13 +4,13 @@
 
 #include "common/make_unique.h"
 #include "common/math_util.h"
+#include "common/vector_math.h"
 
 #include "core/memory.h"
 
 #include "video_core/renderer_opengl/gl_rasterizer_cache.h"
 #include "video_core/renderer_opengl/pica_to_gl.h"
 #include "video_core/debug_utils/debug_utils.h"
-#include "video_core/math.h"
 
 RasterizerCacheOpenGL::~RasterizerCacheOpenGL() {
     FullFlush();