diff --git a/image.go b/image.go index c1e3a9392..c69b2d415 100644 --- a/image.go +++ b/image.go @@ -399,7 +399,7 @@ func (i *Image) DrawTriangles(vertices []Vertex, indices []uint16, img *Image, o i.mipmap.DrawTriangles(srcs, vs, is, options.ColorM.impl, mode, filter, address, sr, [graphics.ShaderImageNum - 1][2]float32{}, nil, nil, false) } -// DrawTrianglesShaderOptions represents options for DrawTrianglesShader +// DrawTrianglesShaderOptions represents options for DrawTrianglesShader. // // This API is experimental. type DrawTrianglesShaderOptions struct { @@ -531,7 +531,7 @@ func (i *Image) DrawTrianglesShader(vertices []Vertex, indices []uint16, shader i.mipmap.DrawTriangles(imgs, vs, is, nil, mode, driver.FilterNearest, driver.AddressUnsafe, sr, offsets, shader.shader, us, false) } -// DrawRectShaderOptions represents options for DrawRectShader +// DrawRectShaderOptions represents options for DrawRectShader. // // This API is experimental. type DrawRectShaderOptions struct { diff --git a/internal/graphicsdriver/opengl/gl/package_notwindows.go b/internal/graphicsdriver/opengl/gl/package_notwindows.go index eda4f2224..2a3d5a17a 100644 --- a/internal/graphicsdriver/opengl/gl/package_notwindows.go +++ b/internal/graphicsdriver/opengl/gl/package_notwindows.go @@ -727,7 +727,9 @@ func Viewport(x int32, y int32, width int32, height int32) { } // InitWithProcAddrFunc intializes the package using the specified OpenGL -// function pointer loading function. For more cases Init should be used +// function pointer loading function. +// +// For more cases Init should be used. func InitWithProcAddrFunc(getProcAddr func(name string) unsafe.Pointer) error { gpActiveTexture = (C.GPACTIVETEXTURE)(getProcAddr("glActiveTexture")) if gpActiveTexture == nil { diff --git a/internal/graphicsdriver/opengl/gl/package_windows.go b/internal/graphicsdriver/opengl/gl/package_windows.go index 9d1faf152..082c73272 100644 --- a/internal/graphicsdriver/opengl/gl/package_windows.go +++ b/internal/graphicsdriver/opengl/gl/package_windows.go @@ -360,7 +360,9 @@ func Viewport(x int32, y int32, width int32, height int32) { } // InitWithProcAddrFunc intializes the package using the specified OpenGL -// function pointer loading function. For more cases Init should be used +// function pointer loading function. +// +// For more cases Init should be used. func InitWithProcAddrFunc(getProcAddr func(name string) uintptr) error { gpActiveTexture = getProcAddr("glActiveTexture") if gpActiveTexture == 0 { diff --git a/run.go b/run.go index 7dfc012f5..c2aa2e9b1 100644 --- a/run.go +++ b/run.go @@ -366,7 +366,7 @@ func ScreenSizeInFullscreen() (int, int) { return uiDriver().ScreenSizeInFullscreen() } -// MonitorSize is an old name for ScreenSizeInFullscreen +// MonitorSize is an old name for ScreenSizeInFullscreen. // // Deprecated: (as of 1.8.0) Use ScreenSizeInFullscreen instead. func MonitorSize() (int, int) {