mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
Fix comments
This commit is contained in:
parent
78ed824351
commit
dd59d8ae6e
4
doc.go
4
doc.go
@ -34,7 +34,9 @@
|
||||
//
|
||||
// func main() {
|
||||
// // Call ebiten.Run to start your game loop.
|
||||
// ebiten.Run(update, 320, 240, 2, "Your game's title")
|
||||
// if err := ebiten.Run(update, 320, 240, 2, "Your game's title"); err != nil {
|
||||
// log.Fatal(err)
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// The EBITEN_SCREENSHOT_KEY environment variable specifies the key
|
||||
|
4
image.go
4
image.go
@ -533,7 +533,7 @@ func (i *Image) ColorModel() color.Model {
|
||||
// Note that important logic should not rely on At result since
|
||||
// At might include a very slight error on some machines.
|
||||
//
|
||||
// At can't be called before the main loop (ebiten.Run) starts (as of version 1.4.0-alpha).
|
||||
// At can't be called outside the main loop (ebiten.Run's updating function) starts (as of version 1.4.0-alpha).
|
||||
func (i *Image) At(x, y int) color.Color {
|
||||
if i.isDisposed() {
|
||||
return color.RGBA{}
|
||||
@ -550,7 +550,7 @@ func (i *Image) At(x, y int) color.Color {
|
||||
//
|
||||
// Set loads pixels from GPU to system memory if necessary, which means that Set can be slow.
|
||||
//
|
||||
// Set can't be called before the main loop (ebiten.Run) starts.
|
||||
// Set can't be called outside the main loop (ebiten.Run's updating function) starts.
|
||||
//
|
||||
// If the image is disposed, Set does nothing.
|
||||
func (img *Image) Set(x, y int, clr color.Color) {
|
||||
|
Loading…
Reference in New Issue
Block a user