mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
internal/graphicsdriver/opengl/gl: remove an unused function GetBufferSubData
This is basically a revert of 86a0c7aa82
This commit is contained in:
parent
a1370a4791
commit
3745c0a2e0
@ -130,7 +130,6 @@ package gl
|
||||
// typedef void (APIENTRYP GPGENFRAMEBUFFERSEXT)(GLsizei n, GLuint * framebuffers);
|
||||
// typedef void (APIENTRYP GPGENRENDERBUFFERSEXT)(GLsizei n, GLuint * renderbuffers);
|
||||
// typedef void (APIENTRYP GPGENTEXTURES)(GLsizei n, GLuint * textures);
|
||||
// typedef void (APIENTRYP GPGETBUFFERSUBDATA)(GLenum target, GLintptr offset, GLsizeiptr size, void * data);
|
||||
// typedef void (APIENTRYP GPGETDOUBLEI_V)(GLenum target, GLuint index, GLdouble * data);
|
||||
// typedef void (APIENTRYP GPGETDOUBLEI_VEXT)(GLenum pname, GLuint index, GLdouble * params);
|
||||
// typedef GLenum (APIENTRYP GPGETERROR)();
|
||||
@ -280,9 +279,6 @@ package gl
|
||||
// static void glowGenTextures(GPGENTEXTURES fnptr, GLsizei n, GLuint * textures) {
|
||||
// (*fnptr)(n, textures);
|
||||
// }
|
||||
// static void glowGetBufferSubData(GPGETBUFFERSUBDATA fnptr, GLenum target, GLintptr offset, GLsizeiptr size, void * data) {
|
||||
// (*fnptr)(target, offset, size, data);
|
||||
// }
|
||||
// static void glowGetDoublei_v(GPGETDOUBLEI_V fnptr, GLenum target, GLuint index, GLdouble * data) {
|
||||
// (*fnptr)(target, index, data);
|
||||
// }
|
||||
@ -463,7 +459,6 @@ var (
|
||||
gpGenFramebuffersEXT C.GPGENFRAMEBUFFERSEXT
|
||||
gpGenRenderbuffersEXT C.GPGENRENDERBUFFERSEXT
|
||||
gpGenTextures C.GPGENTEXTURES
|
||||
gpGetBufferSubData C.GPGETBUFFERSUBDATA
|
||||
gpGetDoublei_v C.GPGETDOUBLEI_V
|
||||
gpGetDoublei_vEXT C.GPGETDOUBLEI_VEXT
|
||||
gpGetError C.GPGETERROR
|
||||
@ -658,10 +653,6 @@ func GenTextures(n int32, textures *uint32) {
|
||||
C.glowGenTextures(gpGenTextures, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(textures)))
|
||||
}
|
||||
|
||||
func GetBufferSubData(target uint32, offset int, size int, data unsafe.Pointer) {
|
||||
C.glowGetBufferSubData(gpGetBufferSubData, (C.GLenum)(target), (C.GLintptr)(offset), (C.GLsizeiptr)(size), data)
|
||||
}
|
||||
|
||||
func GetDoublei_v(target uint32, index uint32, data *float64) {
|
||||
C.glowGetDoublei_v(gpGetDoublei_v, (C.GLenum)(target), (C.GLuint)(index), (*C.GLdouble)(unsafe.Pointer(data)))
|
||||
}
|
||||
@ -958,10 +949,6 @@ func InitWithProcAddrFunc(getProcAddr func(name string) unsafe.Pointer) error {
|
||||
if gpGenTextures == nil {
|
||||
return errors.New("glGenTextures")
|
||||
}
|
||||
gpGetBufferSubData = (C.GPGETBUFFERSUBDATA)(getProcAddr("glGetBufferSubData"))
|
||||
if gpGetBufferSubData == nil {
|
||||
return errors.New("glGetBufferSubData")
|
||||
}
|
||||
gpGetDoublei_v = (C.GPGETDOUBLEI_V)(getProcAddr("glGetDoublei_v"))
|
||||
gpGetDoublei_vEXT = (C.GPGETDOUBLEI_VEXT)(getProcAddr("glGetDoublei_vEXT"))
|
||||
gpGetError = (C.GPGETERROR)(getProcAddr("glGetError"))
|
||||
|
@ -44,7 +44,6 @@ var (
|
||||
gpGenFramebuffersEXT uintptr
|
||||
gpGenRenderbuffersEXT uintptr
|
||||
gpGenTextures uintptr
|
||||
gpGetBufferSubData uintptr
|
||||
gpGetDoublei_v uintptr
|
||||
gpGetDoublei_vEXT uintptr
|
||||
gpGetError uintptr
|
||||
@ -239,10 +238,6 @@ func GenTextures(n int32, textures *uint32) {
|
||||
syscall.Syscall(gpGenTextures, 2, uintptr(n), uintptr(unsafe.Pointer(textures)), 0)
|
||||
}
|
||||
|
||||
func GetBufferSubData(target uint32, offset int, size int, data unsafe.Pointer) {
|
||||
syscall.Syscall6(gpGetBufferSubData, 4, uintptr(target), uintptr(offset), uintptr(size), uintptr(data), 0, 0)
|
||||
}
|
||||
|
||||
func GetDoublei_v(target uint32, index uint32, data *float64) {
|
||||
syscall.Syscall(gpGetDoublei_v, 3, uintptr(target), uintptr(index), uintptr(unsafe.Pointer(data)))
|
||||
}
|
||||
@ -539,10 +534,6 @@ func InitWithProcAddrFunc(getProcAddr func(name string) uintptr) error {
|
||||
if gpGenTextures == 0 {
|
||||
return errors.New("glGenTextures")
|
||||
}
|
||||
gpGetBufferSubData = getProcAddr("glGetBufferSubData")
|
||||
if gpGetBufferSubData == 0 {
|
||||
return errors.New("glGetBufferSubData")
|
||||
}
|
||||
gpGetDoublei_v = getProcAddr("glGetDoublei_v")
|
||||
gpGetDoublei_vEXT = getProcAddr("glGetDoublei_vEXT")
|
||||
gpGetError = getProcAddr("glGetError")
|
||||
|
Loading…
Reference in New Issue
Block a user