mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
graphicsdriver/opengl/gl: Unexport or remove C symbols (#786)
This commit is contained in:
parent
9da54db1d9
commit
fd4cdd445c
@ -1,6 +1,6 @@
|
|||||||
// +build !windows
|
// +build !windows
|
||||||
|
|
||||||
// Code generated by glow (https://github.com/go-gl/glow). DO NOT EDIT.
|
// Code generated by glow (https://github.com/hajimehoshi/glow's for_ebiten branch). DO NOT EDIT.
|
||||||
|
|
||||||
package gl
|
package gl
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// +build windows
|
// +build windows
|
||||||
|
|
||||||
// Code generated by glow (https://github.com/go-gl/glow). DO NOT EDIT.
|
// Code generated by glow (https://github.com/hajimehoshi/glow's for_ebiten branch). DO NOT EDIT.
|
||||||
|
|
||||||
package gl
|
package gl
|
||||||
|
|
||||||
|
@ -1,33 +0,0 @@
|
|||||||
// +build !windows
|
|
||||||
|
|
||||||
// Code generated by glow (https://github.com/go-gl/glow). DO NOT EDIT.
|
|
||||||
|
|
||||||
package gl
|
|
||||||
|
|
||||||
import "C"
|
|
||||||
import "unsafe"
|
|
||||||
|
|
||||||
type DebugProc func(
|
|
||||||
source uint32,
|
|
||||||
gltype uint32,
|
|
||||||
id uint32,
|
|
||||||
severity uint32,
|
|
||||||
length int32,
|
|
||||||
message string,
|
|
||||||
userParam unsafe.Pointer)
|
|
||||||
|
|
||||||
var userDebugCallback DebugProc
|
|
||||||
|
|
||||||
//export glowDebugCallback_gl21
|
|
||||||
func glowDebugCallback_gl21(
|
|
||||||
source uint32,
|
|
||||||
gltype uint32,
|
|
||||||
id uint32,
|
|
||||||
severity uint32,
|
|
||||||
length int32,
|
|
||||||
message *uint8,
|
|
||||||
userParam unsafe.Pointer) {
|
|
||||||
if userDebugCallback != nil {
|
|
||||||
userDebugCallback(source, gltype, id, severity, length, GoStr(message), userParam)
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,14 +0,0 @@
|
|||||||
// Code generated by glow (https://github.com/go-gl/glow). DO NOT EDIT.
|
|
||||||
|
|
||||||
package gl
|
|
||||||
|
|
||||||
import "unsafe"
|
|
||||||
|
|
||||||
type DebugProc func(
|
|
||||||
source uint32,
|
|
||||||
gltype uint32,
|
|
||||||
id uint32,
|
|
||||||
severity uint32,
|
|
||||||
length int32,
|
|
||||||
message string,
|
|
||||||
userParam unsafe.Pointer)
|
|
@ -1,4 +1,4 @@
|
|||||||
// Code generated by glow (https://github.com/go-gl/glow). DO NOT EDIT.
|
// Code generated by glow (https://github.com/hajimehoshi/glow's for_ebiten branch). DO NOT EDIT.
|
||||||
|
|
||||||
// Copyright (c) 2010 Khronos Group.
|
// Copyright (c) 2010 Khronos Group.
|
||||||
// This material may be distributed subject to the terms and conditions
|
// This material may be distributed subject to the terms and conditions
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// +build !windows
|
// +build !windows
|
||||||
|
|
||||||
// Code generated by glow (https://github.com/go-gl/glow). DO NOT EDIT.
|
// Code generated by glow (https://github.com/hajimehoshi/glow's for_ebiten branch). DO NOT EDIT.
|
||||||
|
|
||||||
package gl
|
package gl
|
||||||
|
|
||||||
@ -103,10 +103,6 @@ package gl
|
|||||||
// typedef unsigned short GLhalfNV;
|
// typedef unsigned short GLhalfNV;
|
||||||
// typedef GLintptr GLvdpauSurfaceNV;
|
// typedef GLintptr GLvdpauSurfaceNV;
|
||||||
// typedef void (APIENTRY *GLVULKANPROCNV)(void);
|
// typedef void (APIENTRY *GLVULKANPROCNV)(void);
|
||||||
// extern void glowDebugCallback_gl21(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* message, const void* userParam);
|
|
||||||
// static void APIENTRY glowCDebugCallback(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* message, const void* userParam) {
|
|
||||||
// glowDebugCallback_gl21(source, type, id, severity, length, message, userParam);
|
|
||||||
// }
|
|
||||||
// typedef void (APIENTRYP GPACCUM)(GLenum op, GLfloat value);
|
// typedef void (APIENTRYP GPACCUM)(GLenum op, GLfloat value);
|
||||||
// typedef void (APIENTRYP GPACCUMXOES)(GLenum op, GLfixed value);
|
// typedef void (APIENTRYP GPACCUMXOES)(GLenum op, GLfixed value);
|
||||||
// typedef GLboolean (APIENTRYP GPACQUIREKEYEDMUTEXWIN32EXT)(GLuint memory, GLuint64 key, GLuint timeout);
|
// typedef GLboolean (APIENTRYP GPACQUIREKEYEDMUTEXWIN32EXT)(GLuint memory, GLuint64 key, GLuint timeout);
|
||||||
@ -3971,16 +3967,16 @@ package gl
|
|||||||
// (*fnptr)(index);
|
// (*fnptr)(index);
|
||||||
// }
|
// }
|
||||||
// static void glowDebugMessageCallback(GPDEBUGMESSAGECALLBACK fnptr, GLDEBUGPROC callback, const void * userParam) {
|
// static void glowDebugMessageCallback(GPDEBUGMESSAGECALLBACK fnptr, GLDEBUGPROC callback, const void * userParam) {
|
||||||
// (*fnptr)(glowCDebugCallback, userParam);
|
// (*fnptr)(callback, userParam);
|
||||||
// }
|
// }
|
||||||
// static void glowDebugMessageCallbackAMD(GPDEBUGMESSAGECALLBACKAMD fnptr, GLDEBUGPROCAMD callback, void * userParam) {
|
// static void glowDebugMessageCallbackAMD(GPDEBUGMESSAGECALLBACKAMD fnptr, GLDEBUGPROCAMD callback, void * userParam) {
|
||||||
// (*fnptr)(callback, userParam);
|
// (*fnptr)(callback, userParam);
|
||||||
// }
|
// }
|
||||||
// static void glowDebugMessageCallbackARB(GPDEBUGMESSAGECALLBACKARB fnptr, GLDEBUGPROCARB callback, const void * userParam) {
|
// static void glowDebugMessageCallbackARB(GPDEBUGMESSAGECALLBACKARB fnptr, GLDEBUGPROCARB callback, const void * userParam) {
|
||||||
// (*fnptr)(glowCDebugCallback, userParam);
|
// (*fnptr)(callback, userParam);
|
||||||
// }
|
// }
|
||||||
// static void glowDebugMessageCallbackKHR(GPDEBUGMESSAGECALLBACKKHR fnptr, GLDEBUGPROCKHR callback, const void * userParam) {
|
// static void glowDebugMessageCallbackKHR(GPDEBUGMESSAGECALLBACKKHR fnptr, GLDEBUGPROCKHR callback, const void * userParam) {
|
||||||
// (*fnptr)(glowCDebugCallback, userParam);
|
// (*fnptr)(callback, userParam);
|
||||||
// }
|
// }
|
||||||
// static void glowDebugMessageControl(GPDEBUGMESSAGECONTROL fnptr, GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint * ids, GLboolean enabled) {
|
// static void glowDebugMessageControl(GPDEBUGMESSAGECONTROL fnptr, GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint * ids, GLboolean enabled) {
|
||||||
// (*fnptr)(source, type, severity, count, ids, enabled);
|
// (*fnptr)(source, type, severity, count, ids, enabled);
|
||||||
@ -15369,8 +15365,8 @@ func CurrentPaletteMatrixARB(index int32) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// specify a callback to receive debugging messages from the GL
|
// specify a callback to receive debugging messages from the GL
|
||||||
func DebugMessageCallback(callback DebugProc, userParam unsafe.Pointer) {
|
// Parameter callback has type C.GLDEBUGPROC.
|
||||||
userDebugCallback = callback
|
func DebugMessageCallback(callback unsafe.Pointer, userParam unsafe.Pointer) {
|
||||||
C.glowDebugMessageCallback(gpDebugMessageCallback, (C.GLDEBUGPROC)(unsafe.Pointer(&callback)), userParam)
|
C.glowDebugMessageCallback(gpDebugMessageCallback, (C.GLDEBUGPROC)(unsafe.Pointer(&callback)), userParam)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -15378,12 +15374,14 @@ func DebugMessageCallback(callback DebugProc, userParam unsafe.Pointer) {
|
|||||||
func DebugMessageCallbackAMD(callback unsafe.Pointer, userParam unsafe.Pointer) {
|
func DebugMessageCallbackAMD(callback unsafe.Pointer, userParam unsafe.Pointer) {
|
||||||
C.glowDebugMessageCallbackAMD(gpDebugMessageCallbackAMD, (C.GLDEBUGPROCAMD)(callback), userParam)
|
C.glowDebugMessageCallbackAMD(gpDebugMessageCallbackAMD, (C.GLDEBUGPROCAMD)(callback), userParam)
|
||||||
}
|
}
|
||||||
func DebugMessageCallbackARB(callback DebugProc, userParam unsafe.Pointer) {
|
|
||||||
userDebugCallback = callback
|
// Parameter callback has type C.GLDEBUGPROCARB.
|
||||||
|
func DebugMessageCallbackARB(callback unsafe.Pointer, userParam unsafe.Pointer) {
|
||||||
C.glowDebugMessageCallbackARB(gpDebugMessageCallbackARB, (C.GLDEBUGPROCARB)(unsafe.Pointer(&callback)), userParam)
|
C.glowDebugMessageCallbackARB(gpDebugMessageCallbackARB, (C.GLDEBUGPROCARB)(unsafe.Pointer(&callback)), userParam)
|
||||||
}
|
}
|
||||||
func DebugMessageCallbackKHR(callback DebugProc, userParam unsafe.Pointer) {
|
|
||||||
userDebugCallback = callback
|
// Parameter callback has type C.GLDEBUGPROCKHR.
|
||||||
|
func DebugMessageCallbackKHR(callback unsafe.Pointer, userParam unsafe.Pointer) {
|
||||||
C.glowDebugMessageCallbackKHR(gpDebugMessageCallbackKHR, (C.GLDEBUGPROCKHR)(unsafe.Pointer(&callback)), userParam)
|
C.glowDebugMessageCallbackKHR(gpDebugMessageCallbackKHR, (C.GLDEBUGPROCKHR)(unsafe.Pointer(&callback)), userParam)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Code generated by glow (https://github.com/go-gl/glow). DO NOT EDIT.
|
// Code generated by glow (https://github.com/hajimehoshi/glow's for_ebiten branch). DO NOT EDIT.
|
||||||
|
|
||||||
package gl
|
package gl
|
||||||
|
|
||||||
@ -4108,7 +4108,8 @@ func CurrentPaletteMatrixARB(index int32) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// specify a callback to receive debugging messages from the GL
|
// specify a callback to receive debugging messages from the GL
|
||||||
func DebugMessageCallback(callback DebugProc, userParam unsafe.Pointer) {
|
// Parameter callback has type C.GLDEBUGPROC.
|
||||||
|
func DebugMessageCallback(callback unsafe.Pointer, userParam unsafe.Pointer) {
|
||||||
syscall.Syscall(gpDebugMessageCallback, 2, syscall.NewCallback(callback), uintptr(userParam), 0)
|
syscall.Syscall(gpDebugMessageCallback, 2, syscall.NewCallback(callback), uintptr(userParam), 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4116,10 +4117,14 @@ func DebugMessageCallback(callback DebugProc, userParam unsafe.Pointer) {
|
|||||||
func DebugMessageCallbackAMD(callback unsafe.Pointer, userParam unsafe.Pointer) {
|
func DebugMessageCallbackAMD(callback unsafe.Pointer, userParam unsafe.Pointer) {
|
||||||
syscall.Syscall(gpDebugMessageCallbackAMD, 2, uintptr(callback), uintptr(userParam), 0)
|
syscall.Syscall(gpDebugMessageCallbackAMD, 2, uintptr(callback), uintptr(userParam), 0)
|
||||||
}
|
}
|
||||||
func DebugMessageCallbackARB(callback DebugProc, userParam unsafe.Pointer) {
|
|
||||||
|
// Parameter callback has type C.GLDEBUGPROCARB.
|
||||||
|
func DebugMessageCallbackARB(callback unsafe.Pointer, userParam unsafe.Pointer) {
|
||||||
syscall.Syscall(gpDebugMessageCallbackARB, 2, syscall.NewCallback(callback), uintptr(userParam), 0)
|
syscall.Syscall(gpDebugMessageCallbackARB, 2, syscall.NewCallback(callback), uintptr(userParam), 0)
|
||||||
}
|
}
|
||||||
func DebugMessageCallbackKHR(callback DebugProc, userParam unsafe.Pointer) {
|
|
||||||
|
// Parameter callback has type C.GLDEBUGPROCKHR.
|
||||||
|
func DebugMessageCallbackKHR(callback unsafe.Pointer, userParam unsafe.Pointer) {
|
||||||
syscall.Syscall(gpDebugMessageCallbackKHR, 2, syscall.NewCallback(callback), uintptr(userParam), 0)
|
syscall.Syscall(gpDebugMessageCallbackKHR, 2, syscall.NewCallback(callback), uintptr(userParam), 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// +build !windows
|
// +build !windows
|
||||||
|
|
||||||
// Code generated by glow (https://github.com/go-gl/glow). DO NOT EDIT.
|
// Code generated by glow (https://github.com/hajimehoshi/glow's for_ebiten branch). DO NOT EDIT.
|
||||||
|
|
||||||
// This file implements GlowGetProcAddress for every supported platform. The
|
// This file implements GlowGetProcAddress for every supported platform. The
|
||||||
// correct version is chosen automatically based on build tags:
|
// correct version is chosen automatically based on build tags:
|
||||||
@ -28,19 +28,19 @@ package gl
|
|||||||
#if defined(TAG_EGL)
|
#if defined(TAG_EGL)
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <EGL/egl.h>
|
#include <EGL/egl.h>
|
||||||
void* GlowGetProcAddress_gl21(const char* name) {
|
static void* GlowGetProcAddress_gl21(const char* name) {
|
||||||
return eglGetProcAddress(name);
|
return eglGetProcAddress(name);
|
||||||
}
|
}
|
||||||
#elif defined(TAG_DARWIN)
|
#elif defined(TAG_DARWIN)
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
void* GlowGetProcAddress_gl21(const char* name) {
|
static void* GlowGetProcAddress_gl21(const char* name) {
|
||||||
return dlsym(RTLD_DEFAULT, name);
|
return dlsym(RTLD_DEFAULT, name);
|
||||||
}
|
}
|
||||||
#elif defined(TAG_POSIX)
|
#elif defined(TAG_POSIX)
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <GL/glx.h>
|
#include <GL/glx.h>
|
||||||
void* GlowGetProcAddress_gl21(const char* name) {
|
static void* GlowGetProcAddress_gl21(const char* name) {
|
||||||
return glXGetProcAddress((const GLubyte *) name);
|
return glXGetProcAddress((const GLubyte *) name);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Code generated by glow (https://github.com/go-gl/glow). DO NOT EDIT.
|
// Code generated by glow (https://github.com/hajimehoshi/glow's for_ebiten branch). DO NOT EDIT.
|
||||||
|
|
||||||
package gl
|
package gl
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user