mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
Fix the comment style cause heading in pkgsite (#1369)
This commit is contained in:
parent
14fc77f776
commit
985ee12164
4
image.go
4
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 {
|
||||
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
2
run.go
2
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user