mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +01:00
726e88e520
Updates #1162
14 lines
284 B
Go
14 lines
284 B
Go
// 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)
|
|
}
|