mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-11 21:58:31 +09:00
[Test] (BufferTest): add Binding test, and fix compile errors
This commit is contained in:
+17
-1
@@ -68,6 +68,23 @@
|
||||
#include <pthread.h>
|
||||
#endif
|
||||
|
||||
#ifndef __ANDROID__
|
||||
// Define a stub for __android_log_print if not on Android
|
||||
#define ANDROID_LOG_UNKNOWN 0
|
||||
#define ANDROID_LOG_DEFAULT 1
|
||||
#define ANDROID_LOG_VERBOSE 2
|
||||
#define ANDROID_LOG_DEBUG 3
|
||||
#define ANDROID_LOG_INFO 4
|
||||
#define ANDROID_LOG_WARN 5
|
||||
#define ANDROID_LOG_ERROR 6
|
||||
#define ANDROID_LOG_FATAL 7
|
||||
#define ANDROID_LOG_SILENT 8
|
||||
|
||||
typedef int android_LogPriority;
|
||||
|
||||
int __android_log_print(int prio, const char *tag, const char *fmt, ...);
|
||||
#endif
|
||||
|
||||
#include <EGL/egl.h>
|
||||
#include <GL/gl.h>
|
||||
#include <GL/glext.h>
|
||||
@@ -90,7 +107,6 @@
|
||||
|
||||
#include "MG_Util/Pipelines/PipelineExecutor.hpp"
|
||||
|
||||
#include "MG_Util/Pipelines/Shader/GLSLtoSPIRVPipeline.h"
|
||||
#include "MG_Util/Pipelines/ShaderCompilationPipeline.h"
|
||||
|
||||
#include "MG_State/GLState/BufferState/BufferObject.h"
|
||||
|
||||
Reference in New Issue
Block a user