Skip to content

Commit

Permalink
rename internal/glfwwin -> internal/goglfw
Browse files Browse the repository at this point in the history
  • Loading branch information
hajimehoshi committed Jan 21, 2023
1 parent aebb7e9 commit 35e25a3
Show file tree
Hide file tree
Showing 18 changed files with 238 additions and 238 deletions.
14 changes: 7 additions & 7 deletions internal/glfw/callback_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
package glfw

import (
"github.com/hajimehoshi/ebiten/v2/internal/glfwwin"
"github.com/hajimehoshi/ebiten/v2/internal/goglfw"
)

func ToCharModsCallback(cb func(window *Window, char rune, mods ModifierKey)) CharModsCallback {
if cb == nil {
return nil
}
return func(window *glfwwin.Window, char rune, mods glfwwin.ModifierKey) {
return func(window *goglfw.Window, char rune, mods goglfw.ModifierKey) {
cb((*Window)(window), char, ModifierKey(mods))
}
}
Expand All @@ -31,7 +31,7 @@ func ToCloseCallback(cb func(window *Window)) CloseCallback {
if cb == nil {
return nil
}
return func(window *glfwwin.Window) {
return func(window *goglfw.Window) {
cb((*Window)(window))
}
}
Expand All @@ -40,7 +40,7 @@ func ToFramebufferSizeCallback(cb func(window *Window, width int, height int)) F
if cb == nil {
return nil
}
return func(window *glfwwin.Window, width int, height int) {
return func(window *goglfw.Window, width int, height int) {
cb((*Window)(window), width, height)
}
}
Expand All @@ -49,7 +49,7 @@ func ToMonitorCallback(cb func(monitor *Monitor, event PeripheralEvent)) Monitor
if cb == nil {
return nil
}
return func(monitor *glfwwin.Monitor, event glfwwin.PeripheralEvent) {
return func(monitor *goglfw.Monitor, event goglfw.PeripheralEvent) {
cb((*Monitor)(monitor), PeripheralEvent(event))
}
}
Expand All @@ -58,7 +58,7 @@ func ToScrollCallback(cb func(window *Window, xoff float64, yoff float64)) Scrol
if cb == nil {
return nil
}
return func(window *glfwwin.Window, xoff float64, yoff float64) {
return func(window *goglfw.Window, xoff float64, yoff float64) {
cb((*Window)(window), xoff, yoff)
}
}
Expand All @@ -67,7 +67,7 @@ func ToSizeCallback(cb func(window *Window, width int, height int)) SizeCallback
if cb == nil {
return nil
}
return func(window *glfwwin.Window, width int, height int) {
return func(window *goglfw.Window, width int, height int) {
cb((*Window)(window), width, height)
}
}
Loading

0 comments on commit 35e25a3

Please sign in to comment.