[Misc] (...): Define BACKEND_TYPE in Includes.h. Fix some compiling errors of GL_Common.

This commit is contained in:
BZLZHH
2025-04-04 09:32:27 +08:00
parent 6b102c67c3
commit c12e353c68
3 changed files with 8 additions and 12 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ namespace MG_Global {
}
namespace Backend {
#define BACKEND_TYPE BACKEND_VULKAN
// BACKEND_TYPE is defined in Includes.h
}
namespace GL {
+4 -8
View File
@@ -3,9 +3,8 @@
//
#include "Constants.h"
#ifndef MOBILEGL_GLOBAL_H
#define BACKEND_TYPE BACKEND_VULKAN
#include "Global.h"
#endif
#ifndef MOBILEGL_GL_FRAMEBUFFER_H
#include "MG_GL/GL/Framebuffer/GL_Framebuffer.h"
#endif
@@ -21,14 +20,11 @@
#ifndef MOBILEGL_DEBUG_H
#include "MG_UTIL/Debug/Debug.h"
#endif
//#ifndef MOBILEGL_MESAEMU_H
//#include "MG_GL/TEMP_MESA/MesaEmu.h"
//#endif
#ifndef MOBILEGL_GL_DEPTH_H
#include "MG_GL/GL/Depth/GL_Depth.h"
#include "MG_GL/GL/Common/GL_Common.h"
#endif
#ifndef MOBILEGL_EGL_EMU_H
#include "MG_GL/EGL/EGL_EMU.h"
#ifndef MOBILEGL_EGL_VK_EMU_H
#include "MG_GL/EGL/VK/EGL_EMU.h"
#endif
#include <cstring>
+3 -3
View File
@@ -2,8 +2,8 @@
// Created by BZLZHH on 2025/3/15.
//
#ifndef MOBILEGL_GL_DEPTH_H
#define MOBILEGL_GL_DEPTH_H
#ifndef MOBILEGL_GL_COMMON_H
#define MOBILEGL_GL_COMMON_H
#include "../../../Includes.h"
@@ -13,4 +13,4 @@ namespace MG_GL::GL {
void Clear(GLbitfield mask);
}
#endif //MOBILEGL_GL_DEPTH_H
#endif //MOBILEGL_GL_COMMON_H