mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 13:07:26 +01:00
b6ed95750b
Closes #2451
15 lines
334 B
Go
15 lines
334 B
Go
// SPDX-License-Identifier: MIT
|
|
// SPDX-FileCopyrightText: 2014 Eric Woroshow
|
|
|
|
package gl
|
|
|
|
import (
|
|
"github.com/ebitengine/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)
|
|
}
|