GameEngine/pkg/glfw/adapters/package.go
Snoweuph 7489c466e6
Some checks failed
Quality Check / Linting (push) Successful in 11s
Quality Check / Static Analysis (push) Failing after 9s
Init
2024-09-16 20:13:50 +02:00

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()
}