mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
ebiten: Update comments
This commit is contained in:
parent
448a863eb1
commit
83ead375a4
5
image.go
5
image.go
@ -122,9 +122,6 @@ type DrawImageOptions struct {
|
||||
|
||||
// Filter is a type of texture filter.
|
||||
// The default (zero) value is FilterNearest.
|
||||
//
|
||||
// Filter can also be specified at NewImage* functions, but
|
||||
// specifying filter at DrawImageOptions is recommended (as of 1.7.0).
|
||||
Filter Filter
|
||||
}
|
||||
|
||||
@ -635,7 +632,7 @@ func (i *Image) ColorModel() color.Model {
|
||||
// Note that an important logic should not rely on values returned by At, since
|
||||
// the returned values can include very slight differences between some machines.
|
||||
//
|
||||
// At can't be called outside the main loop (ebiten.Run's updating function) starts (as of version 1.4.0).
|
||||
// At can't be called outside the main loop (ebiten.Run's updating function) starts.
|
||||
func (i *Image) At(x, y int) color.Color {
|
||||
if i.isDisposed() {
|
||||
return color.RGBA{}
|
||||
|
@ -816,9 +816,6 @@ func TestImageOutsideUpperLeft(t *testing.T) {
|
||||
dst1.DrawImage(src.SubImage(image.Rect(-4, -4, 8, 8)).(*Image), op)
|
||||
|
||||
op = &DrawImageOptions{}
|
||||
// The outside part of the source rect is just ignored.
|
||||
// This behavior was changed as of 1.9.0-alpha.
|
||||
// op.GeoM.Translate(4, 4)
|
||||
op.GeoM.Rotate(math.Pi / 4)
|
||||
dst2.DrawImage(src, op)
|
||||
|
||||
|
3
input.go
3
input.go
@ -99,9 +99,6 @@ func Wheel() (xoff, yoff float64) {
|
||||
// use inpututil.IsMouseButtonJustPressed
|
||||
//
|
||||
// IsMouseButtonPressed is concurrent-safe.
|
||||
//
|
||||
// Note that touch events not longer affect IsMouseButtonPressed's result as of 1.4.0-alpha.
|
||||
// Use Touches instead.
|
||||
func IsMouseButtonPressed(mouseButton MouseButton) bool {
|
||||
return uiDriver().Input().IsMouseButtonPressed(driver.MouseButton(mouseButton))
|
||||
}
|
||||
|
12
run.go
12
run.go
@ -244,11 +244,7 @@ func SetCursorMode(mode CursorModeType) {
|
||||
|
||||
// IsFullscreen reports whether the current mode is fullscreen or not.
|
||||
//
|
||||
// IsFullscreen always returns false on browsers.
|
||||
// IsFullscreen works as this as of 1.10.0-alpha.
|
||||
// Before that, IsFullscreen reported whether the current mode is fullscreen or not.
|
||||
//
|
||||
// IsFullscreen always returns false on mobiles.
|
||||
// IsFullscreen always returns false on browsers or mobiles.
|
||||
//
|
||||
// IsFullscreen is concurrent-safe.
|
||||
func IsFullscreen() bool {
|
||||
@ -263,11 +259,7 @@ func IsFullscreen() bool {
|
||||
// On desktops, Ebiten uses 'windowed' fullscreen mode, which doesn't change
|
||||
// your monitor's resolution.
|
||||
//
|
||||
// SetFullscreen does nothing on browsers.
|
||||
// SetFullscreen works as this as of 1.10.0-alpha.
|
||||
// Before that, SetFullscreen affected the fullscreen mode.
|
||||
//
|
||||
// SetFullscreen does nothing on mobiles.
|
||||
// SetFullscreen does nothing on browsers or mobiles.
|
||||
//
|
||||
// SetFullscreen is concurrent-safe.
|
||||
func SetFullscreen(fullscreen bool) {
|
||||
|
@ -74,9 +74,7 @@ func SetWindowResizable(resizable bool) {
|
||||
|
||||
// SetWindowTitle sets the title of the window.
|
||||
//
|
||||
// SetWindowTitle updated the title on browsers, but now does nothing on browsers as of 1.11.0-alpha.
|
||||
//
|
||||
// SetWindowTitle does nothing on mobiles.
|
||||
// SetWindowTitle does nothing on browsers or mobiles.
|
||||
//
|
||||
// SetWindowTitle is concurrent-safe.
|
||||
func SetWindowTitle(title string) {
|
||||
|
Loading…
Reference in New Issue
Block a user