mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
all: update comments
This commit is contained in:
parent
da54f19df5
commit
8864ce1291
2
internal/processtest/testdata/issue2079.go
vendored
2
internal/processtest/testdata/issue2079.go
vendored
@ -39,7 +39,7 @@ func (g *Game) Draw(screen *ebiten.Image) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (g *Game) Layout(width, height int) (int, int) {
|
func (g *Game) Layout(width, height int) (int, int) {
|
||||||
// Ebiten's image function should be able to be called even in Layout.
|
// Ebitengine's image function should be able to be called even in Layout.
|
||||||
done := make(chan struct{})
|
done := make(chan struct{})
|
||||||
timeout := time.After(time.Second)
|
timeout := time.After(time.Second)
|
||||||
go func() {
|
go func() {
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
// to make more room on GPU memory.
|
// to make more room on GPU memory.
|
||||||
// This can happen e.g. when GPU memory usage is high, or just switching applications
|
// This can happen e.g. when GPU memory usage is high, or just switching applications
|
||||||
// might cause context lost on mobiles.
|
// might cause context lost on mobiles.
|
||||||
// As Ebiten's image data is on GPU memory, the game can't continue when context lost happens
|
// As Ebitengine's image data is on GPU memory, the game can't continue when context lost happens
|
||||||
// without restoring image information.
|
// without restoring image information.
|
||||||
// The package restorable is the package to record information for such restoring.
|
// The package restorable is the package to record information for such restoring.
|
||||||
//
|
//
|
||||||
|
@ -89,7 +89,7 @@ func videoModeScaleUncached(m *glfw.Monitor) float64 {
|
|||||||
|
|
||||||
// Note: GLFW currently returns physical pixel sizes,
|
// Note: GLFW currently returns physical pixel sizes,
|
||||||
// but we need to predict the window system-side size of the fullscreen window
|
// but we need to predict the window system-side size of the fullscreen window
|
||||||
// for Ebiten's `ScreenSizeInFullscreen` public API.
|
// for Ebitengine's `ScreenSizeInFullscreen` public API.
|
||||||
// Also at the moment we need this prior to switching to fullscreen, but that might be replaceable.
|
// Also at the moment we need this prior to switching to fullscreen, but that might be replaceable.
|
||||||
// So this function computes the ratio of physical per logical pixels.
|
// So this function computes the ratio of physical per logical pixels.
|
||||||
xconn, err := xgb.NewConn()
|
xconn, err := xgb.NewConn()
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// Package text offers functions to draw texts on an Ebiten's image.
|
// Package text offers functions to draw texts on an Ebitengine's image.
|
||||||
//
|
//
|
||||||
// For the example using a TTF font, see font package in the examples.
|
// For the example using a TTF font, see font package in the examples.
|
||||||
package text
|
package text
|
||||||
|
Loading…
Reference in New Issue
Block a user