mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-08 20:28:32 +09:00
[Misc] (...): Define BACKEND_TYPE in Includes.h. Fix some compiling errors of GL_Common.
This commit is contained in:
+1
-1
@@ -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
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user