GameEngine/pkg/glfw/adapters/package.go

25 lines
352 B
Go
Raw Normal View History

2024-09-16 17:47:12 +00:00
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()
}