mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-08 04:08:32 +09:00
[Misc]: bringing in DiligentCore
This commit is contained in:
@@ -3,3 +3,4 @@
|
||||
################################################################################
|
||||
|
||||
/build
|
||||
.cxx
|
||||
+2
-1
@@ -109,7 +109,8 @@ target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE
|
||||
|
||||
target_include_directories(MobileGL PUBLIC
|
||||
${CMAKE_SOURCE_DIR}/include
|
||||
)
|
||||
${CMAKE_SOURCE_DIR}/3rdparty/DiligentCore
|
||||
)
|
||||
|
||||
add_subdirectory(3rdparty/DiligentCore)
|
||||
|
||||
|
||||
@@ -177,6 +177,7 @@ namespace MG_Constants {
|
||||
#define BACKEND_VULKAN 0x0015
|
||||
#define BACKEND_METAL 0x0016
|
||||
#define BACKEND_GLES 0x0017
|
||||
#define BACKEND_DILIGENT 0x0018
|
||||
}
|
||||
|
||||
inline const char* RenderName = "MobileGL";
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
//
|
||||
|
||||
#include "Constants.h"
|
||||
#define BACKEND_TYPE BACKEND_GLES
|
||||
#define BACKEND_TYPE BACKEND_DILIGENT
|
||||
#include "Global.h"
|
||||
#ifndef MOBILEGL_GLES_LOADER_H
|
||||
#include "MG_GL/BackendLoader/GLES/Loader.h"
|
||||
|
||||
@@ -48,7 +48,12 @@ MG_EXPORT EGLBoolean eglGetConfigAttrib(EGLDisplay dpy, EGLConfig config, EGLint
|
||||
|
||||
MG_EXPORT EGLSurface eglCreateWindowSurface(EGLDisplay dpy, EGLConfig config, EGLNativeWindowType win, const EGLint *attrib_list) {
|
||||
LOAD_EGL(eglCreateWindowSurface)
|
||||
return egl_eglCreateWindowSurface(dpy, config, win, attrib_list);
|
||||
EGLSurface surface = egl_eglCreateWindowSurface(dpy, config, win, attrib_list);
|
||||
|
||||
// auto* pFactoryOpenGL = GetEngineFactoryOpenGL();
|
||||
|
||||
|
||||
return surface;
|
||||
}
|
||||
|
||||
MG_EXPORT EGLSurface eglCreatePbufferSurface(EGLDisplay dpy, EGLConfig config, const EGLint *attrib_list) {
|
||||
|
||||
Reference in New Issue
Block a user