/* -*- tab-width: 4; -*- */ /* vi: set sw=2 ts=4 expandtab: */ /* $Id: c29f4818e74655d62754e26efdab99cb2d2ca638 $ */ /* * ©2010-2017 The khronos Group, Inc. * * 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. */ /* * Author: Mark Callow based on code from Georg Kolling */ #ifndef GL_FUNCPTRS_H #define GL_FUNCPTRS_H #ifdef __cplusplus extern "C" { #endif #if KTX_USE_GETPROC // Not defined in glew.h. typedef void (GL_APIENTRY* PFNGLTEXIMAGE1DPROC) ( GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels ); #endif extern PFNGLTEXIMAGE1DPROC pfGlTexImage1D; extern PFNGLTEXIMAGE3DPROC pfGlTexImage3D; extern PFNGLCOMPRESSEDTEXIMAGE1DPROC pfGlCompressedTexImage1D; extern PFNGLCOMPRESSEDTEXIMAGE3DPROC pfGlCompressedTexImage3D; extern PFNGLGENERATEMIPMAPPROC pfGlGenerateMipmap; extern PFNGLGETSTRINGIPROC pfGlGetStringi; #define DECLARE_GL_FUNCPTRS \ PFNGLTEXIMAGE1DPROC pfGlTexImage1D; \ PFNGLTEXIMAGE3DPROC pfGlTexImage3D; \ PFNGLCOMPRESSEDTEXIMAGE1DPROC pfGlCompressedTexImage1D; \ PFNGLCOMPRESSEDTEXIMAGE3DPROC pfGlCompressedTexImage3D; \ PFNGLGENERATEMIPMAPPROC pfGlGenerateMipmap; \ PFNGLGETSTRINGIPROC pfGlGetStringi; #define INITIALIZE_GL_FUNCPTRS \ pfGlTexImage1D = glTexImage1D; \ pfGlTexImage3D = glTexImage3D; \ pfGlCompressedTexImage1D = glCompressedTexImage1D; \ pfGlCompressedTexImage3D = glCompressedTexImage3D; \ pfGlGenerateMipmap = glGenerateMipmap; \ pfGlGetStringi = glGetStringi; #ifdef __cplusplus } #endif #endif /* GL_FUNCPTRS_H */