[Improvement] (...): Stub imcomplete GL functions of GLES.

Signed-off-by: BZLZHH <admin@bzlzhh.top>
This commit is contained in:
BZLZHH 2025-01-29 16:21:13 +08:00
parent cdc96fd73d
commit 29d65245d3
6 changed files with 4689 additions and 3248 deletions

View File

@ -21,6 +21,7 @@ find_library(GLSLANG_LIB glslang PATHS ${CMAKE_SOURCE_DIR}/libraries/arm64-v8a/)
add_library(${CMAKE_PROJECT_NAME} SHARED
init.cpp
main.c
gl/gl_stub.c
gl/gl_native.c
gl/gl.c
gl/envvars.c

File diff suppressed because it is too large Load Diff

2484
src/main/cpp/gl/gl_stub.c Normal file

File diff suppressed because it is too large Load Diff

View File

@ -78,4 +78,16 @@ GLAPI GLAPIENTRY type name(__VA_ARGS__) { \
LOG_E("ERROR: %d", ERR) \
}
#define STUB_FUNCTION_HEAD(type,name,...) \
GLAPI GLAPIENTRY type name(__VA_ARGS__) {
#define STUB_FUNCTION_END(type,name,...) \
LOG_W("No function: %s @ %s(...)", RENDERERNAME, __FUNCTION__); \
return (type)0; \
}
#define STUB_FUNCTION_END_NO_RETURN(type,name,...) \
LOG_W("No function: %s @ %s(...)", RENDERERNAME, __FUNCTION__); \
}
#endif // _MOBILEGLUES_LOADER_H_

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,27 @@
#ifndef __gl3platform_h_
#define __gl3platform_h_
/*
** Copyright 2017-2020 The Khronos Group Inc.
** SPDX-License-Identifier: Apache-2.0
*/
/* Platform-specific types and definitions for OpenGL ES 3.X gl3.h
*
* Adopters may modify khrplatform.h and this file to suit their platform.
* Please contribute modifications back to Khronos as pull requests on the
* public github repository:
* https://github.com/KhronosGroup/OpenGL-Registry
*/
#include <KHR/khrplatform.h>
#ifndef GL_APICALL
#define GL_APICALL KHRONOS_APICALL
#endif
#ifndef GL_APIENTRY
#define GL_APIENTRY KHRONOS_APIENTRY
#endif
#endif /* __gl3platform_h_ */