X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=src%2Ftype3_AndroidCloud%2Fanbox-master%2Fexternal%2Fandroid-emugl%2Fhost%2Finclude%2FOpenGLESDispatch%2FGLESv1Dispatch.h;fp=src%2Ftype3_AndroidCloud%2Fanbox-master%2Fexternal%2Fandroid-emugl%2Fhost%2Finclude%2FOpenGLESDispatch%2FGLESv1Dispatch.h;h=464fa3925821ac638f982b6e043920ce43ba0e6b;hb=e26c1ec581be598521517829adba8c8dd23a768f;hp=0000000000000000000000000000000000000000;hpb=6699c1aea74eeb0eb400e6299079f0c7576f716f;p=iec.git diff --git a/src/type3_AndroidCloud/anbox-master/external/android-emugl/host/include/OpenGLESDispatch/GLESv1Dispatch.h b/src/type3_AndroidCloud/anbox-master/external/android-emugl/host/include/OpenGLESDispatch/GLESv1Dispatch.h new file mode 100644 index 0000000..464fa39 --- /dev/null +++ b/src/type3_AndroidCloud/anbox-master/external/android-emugl/host/include/OpenGLESDispatch/GLESv1Dispatch.h @@ -0,0 +1,42 @@ +/* +* Copyright (C) 2011 The Android Open Source Project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ +#pragma once + +#include "OpenGLESDispatch/gldefs.h" +#include "OpenGLESDispatch/gles_functions.h" +#include "KHR/khrplatform.h" + +// Define function pointer types. +#define GLES1_DISPATCH_DEFINE_TYPE(return_type,func_name,signature,callargs) \ + typedef return_type (KHRONOS_APIENTRY * func_name ## _t) signature; + +LIST_GLES1_FUNCTIONS(GLES1_DISPATCH_DEFINE_TYPE,GLES1_DISPATCH_DEFINE_TYPE) + +struct GLESv1Dispatch { + bool initialized = false; +#define GLES1_DISPATCH_DECLARE_POINTER(return_type,func_name,signature,callargs) \ + func_name ## _t func_name; + LIST_GLES1_FUNCTIONS(GLES1_DISPATCH_DECLARE_POINTER, + GLES1_DISPATCH_DECLARE_POINTER) +}; + +#undef GLES1_DISPATCH_DECLARE_POINTER +#undef GLES1_DISPATCH_DEFINE_TYPE + +bool gles1_dispatch_init(const char *path, GLESv1Dispatch* dispatch_table); + +// Used to initialize the decoder. +void* gles1_dispatch_get_proc_func(const char* name, void* userData);