Пример #1
0
// GL_LoadLibrary (https://wiki.libsdl.org/SDL_GL_LoadLibrary)
func GL_LoadLibrary(path string) error {
	_path := C.CString(path)
	if C.SDL_GL_LoadLibrary(_path) != 0 {
		return GetError()
	}
	return nil
}
Пример #2
0
func GL_LoadLibrary(path string) error {
	cpath := C.CString(path)
	defer C.free(unsafe.Pointer(cpath))

	if C.SDL_GL_LoadLibrary(cpath) != 0 {
		return getError()
	}

	return nil
}
Пример #3
0
func GL_LoadLibrary(path string) int {
	_path := C.CString(path)
	defer C.free(unsafe.Pointer(_path))
	return (int)(C.SDL_GL_LoadLibrary(_path))
}
Пример #4
0
func GL_LoadLibrary(path string) int {
	_path := (C.CString)(path)
	return (int)(C.SDL_GL_LoadLibrary(_path))
}