Fix the comment style cause heading in pkgsite (#1369)

This commit is contained in:
Bui Quoc Trong 2020-09-29 14:55:39 +07:00 committed by GitHub
parent b264a421ae
commit 0d29979296
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 5 deletions

View File

@ -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) 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. // This API is experimental.
type DrawTrianglesShaderOptions struct { 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) 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. // This API is experimental.
type DrawRectShaderOptions struct { type DrawRectShaderOptions struct {

View File

@ -727,7 +727,9 @@ func Viewport(x int32, y int32, width int32, height int32) {
} }
// InitWithProcAddrFunc intializes the package using the specified OpenGL // 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 { func InitWithProcAddrFunc(getProcAddr func(name string) unsafe.Pointer) error {
gpActiveTexture = (C.GPACTIVETEXTURE)(getProcAddr("glActiveTexture")) gpActiveTexture = (C.GPACTIVETEXTURE)(getProcAddr("glActiveTexture"))
if gpActiveTexture == nil { if gpActiveTexture == nil {

View File

@ -360,7 +360,9 @@ func Viewport(x int32, y int32, width int32, height int32) {
} }
// InitWithProcAddrFunc intializes the package using the specified OpenGL // 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 { func InitWithProcAddrFunc(getProcAddr func(name string) uintptr) error {
gpActiveTexture = getProcAddr("glActiveTexture") gpActiveTexture = getProcAddr("glActiveTexture")
if gpActiveTexture == 0 { if gpActiveTexture == 0 {

2
run.go
View File

@ -366,7 +366,7 @@ func ScreenSizeInFullscreen() (int, int) {
return uiDriver().ScreenSizeInFullscreen() 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. // Deprecated: (as of 1.8.0) Use ScreenSizeInFullscreen instead.
func MonitorSize() (int, int) { func MonitorSize() (int, int) {