Skip to content

Commit

Permalink
Fix the comment style cause heading in pkgsite (hajimehoshi#1369)
Browse files Browse the repository at this point in the history
  • Loading branch information
trongbq authored and hajimehoshi committed Sep 29, 2020
1 parent 14fc77f commit 985ee12
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions image.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down
4 changes: 3 additions & 1 deletion internal/graphicsdriver/opengl/gl/package_notwindows.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 3 additions & 1 deletion internal/graphicsdriver/opengl/gl/package_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion run.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 985ee12

Please sign in to comment.