mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
Fix the comment style cause heading in pkgsite (#1369)
This commit is contained in:
parent
b264a421ae
commit
0d29979296
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)
|
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 {
|
||||||
|
@ -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 {
|
||||||
|
@ -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
2
run.go
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user