Esempio n. 1
0
func GL_GetProcAddress(proc string) unsafe.Pointer {
	_proc := C.CString(proc)
	defer C.free(unsafe.Pointer(_proc))
	return (unsafe.Pointer)(C.SDL_GL_GetProcAddress(_proc))
}
Esempio n. 2
0
// GL_GetProcAddress (https://wiki.libsdl.org/SDL_GL_GetProcAddress)
func GL_GetProcAddress(proc string) unsafe.Pointer {
	_proc := C.CString(proc)
	return unsafe.Pointer(C.SDL_GL_GetProcAddress(_proc))
}
Esempio n. 3
0
func GL_GetProcAddress(proc string) uintptr {
	cproc := C.CString(proc)
	defer C.free(unsafe.Pointer(cproc))

	return uintptr(C.SDL_GL_GetProcAddress(cproc))
}
Esempio n. 4
0
func GL_GetProcAddress(proc string) unsafe.Pointer {
	_proc := (C.CString)(proc)
	return (unsafe.Pointer)(C.SDL_GL_GetProcAddress(_proc))
}