ebiten/internal/graphicsdriver/opengl/gl/procaddr_darwin.go

14 lines
284 B
Go
Raw Normal View History

// SPDX-License-Identifier: MIT
package gl
import (
"github.com/ebiten/purego"
)
var opengl = purego.Dlopen("/System/Library/Frameworks/OpenGL.framework/Versions/Current/OpenGL", purego.RTLD_GLOBAL)
func getProcAddress(name string) uintptr {
return purego.Dlsym(opengl, name)
}