mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-14 23:17:27 +01:00
parent
0a73cbfce4
commit
98d386f249
@ -129,7 +129,7 @@ func (g *gameForUI) DrawFinalScreen(scale, offsetX, offsetY float64) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
DefaultDrawFinalsScreen(g.screen, g.offscreen, geoM)
|
DefaultDrawFinalScreen(g.screen, g.offscreen, geoM)
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@ -137,12 +137,12 @@ var (
|
|||||||
theScreenShaderOnce sync.Once
|
theScreenShaderOnce sync.Once
|
||||||
)
|
)
|
||||||
|
|
||||||
// DefaultDrawFinalsScreen is the default implementation of [FinalScreenDrawer.DrawFinalScreen],
|
// DefaultDrawFinalScreen is the default implementation of [FinalScreenDrawer.DrawFinalScreen],
|
||||||
// used when a [Game] doesn't implement [FinalScreenDrawer].
|
// used when a [Game] doesn't implement [FinalScreenDrawer].
|
||||||
//
|
//
|
||||||
// You can use DefaultDrawFinalsScreen when you need the default implementation of [FinalScreenDrawer.DrawFinalScreen]
|
// You can use DefaultDrawFinalScreen when you need the default implementation of [FinalScreenDrawer.DrawFinalScreen]
|
||||||
// in your implementation of [FinalScreenDrawer], for example.
|
// in your implementation of [FinalScreenDrawer], for example.
|
||||||
func DefaultDrawFinalsScreen(screen *Image, offscreen *Image, geoM GeoM) {
|
func DefaultDrawFinalScreen(screen *Image, offscreen *Image, geoM GeoM) {
|
||||||
theScreenShaderOnce.Do(func() {
|
theScreenShaderOnce.Do(func() {
|
||||||
s, err := newShader(builtinshader.ScreenShaderSource, "screen")
|
s, err := newShader(builtinshader.ScreenShaderSource, "screen")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user