24 lines
352 B
Go
24 lines
352 B
Go
package glfw
|
|
|
|
import (
|
|
engine "dev.euph.git/snoweuph/game-engine/pkg/engine/ports"
|
|
_glfw "github.com/go-gl/glfw/v3.3/glfw"
|
|
)
|
|
|
|
type GLFWPackage struct{}
|
|
|
|
func NewGLFWPackage() engine.Package {
|
|
return &GLFWPackage{}
|
|
}
|
|
|
|
|
|
func (pkg *GLFWPackage) Load() error {
|
|
return _glfw.Init()
|
|
}
|
|
|
|
func (pkg *GLFWPackage) Terminate() {
|
|
_glfw.Terminate()
|
|
}
|
|
|
|
|
|
|