Ejemplo 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))
}
Ejemplo 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))
}
Ejemplo 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))
}
Ejemplo n.º 4
0
func GL_GetProcAddress(proc string) unsafe.Pointer {
	_proc := (C.CString)(proc)
	return (unsafe.Pointer)(C.SDL_GL_GetProcAddress(_proc))
}