mirror of
https://github.com/MobileGL-Dev/MobileGlues.git
synced 2025-09-24 03:31:43 -04:00
[Improvement] (...): Stub imcomplete GL functions of GLES.
Signed-off-by: BZLZHH <admin@bzlzhh.top>
This commit is contained in:
parent
cdc96fd73d
commit
29d65245d3
@ -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
2484
src/main/cpp/gl/gl_stub.c
Normal file
File diff suppressed because it is too large
Load Diff
@ -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_
|
||||
|
1808
src/main/cpp/include/GLES/gl32.h
Normal file
1808
src/main/cpp/include/GLES/gl32.h
Normal file
File diff suppressed because it is too large
Load Diff
27
src/main/cpp/include/GLES/gl3platform.h
Normal file
27
src/main/cpp/include/GLES/gl3platform.h
Normal 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_ */
|
Loading…
x
Reference in New Issue
Block a user