GameEngine/pkg/glfw/adapters/package.go
Snoweuph e19048569f
Some checks failed
Quality Check / Static Analysis (push) Failing after 12s
Quality Check / Linting (push) Failing after 15s
Init
2024-09-16 19:47:12 +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()
}