Skip to content

Commit

Permalink
all: make function and struct comments match the names
Browse files Browse the repository at this point in the history
Change-Id: I26f303201caebbe159f2e79f577e8d05b325c6ee
Reviewed-on: https://go-review.googlesource.com/c/mobile/+/639615
Reviewed-by: Jorropo <[email protected]>
Auto-Submit: Jorropo <[email protected]>
Auto-Submit: Ian Lance Taylor <[email protected]>
Reviewed-by: Hyang-Ah Hana Kim <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>
Reviewed-by: Dmitri Shuralyov <[email protected]>
  • Loading branch information
cuishuang authored and gopherbot committed Jan 3, 2025
1 parent a87c1cf commit 5e5de4c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions gl/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ type Context interface {
// http://www.khronos.org/opengles/sdk/docs/man3/html/glBlendFunc.xhtml
BlendFunc(sfactor, dfactor Enum)

// BlendFunc sets the pixel RGB and alpha blending factors separately.
// BlendFuncSeparate sets the pixel RGB and alpha blending factors separately.
//
// http://www.khronos.org/opengles/sdk/docs/man3/html/glBlendFuncSeparate.xhtml
BlendFuncSeparate(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha Enum)
Expand Down Expand Up @@ -192,7 +192,7 @@ type Context interface {
// http://www.khronos.org/opengles/sdk/docs/man3/html/glGenTextures.xhtml
CreateTexture() Texture

// CreateTVertexArray creates a vertex array.
// CreateVertexArray creates a vertex array.
//
// http://www.khronos.org/opengles/sdk/docs/man3/html/glGenVertexArrays.xhtml
CreateVertexArray() VertexArray
Expand Down Expand Up @@ -599,7 +599,7 @@ type Context interface {
// http://www.khronos.org/opengles/sdk/docs/man3/html/glStencilFunc.xhtml
StencilFunc(fn Enum, ref int, mask uint32)

// StencilFunc sets the front or back stencil test reference value.
// StencilFuncSeparate sets the front or back stencil test reference value.
//
// http://www.khronos.org/opengles/sdk/docs/man3/html/glStencilFuncSeparate.xhtml
StencilFuncSeparate(face, fn Enum, ref int, mask uint32)
Expand Down Expand Up @@ -737,7 +737,7 @@ type Context interface {
// http://www.khronos.org/opengles/sdk/docs/man3/html/glUniform.xhtml
Uniform4i(dst Uniform, v0, v1, v2, v3 int32)

// Uniform4i writes an ivec4 uniform array of len(src)/4 elements.
// Uniform4iv writes an ivec4 uniform array of len(src)/4 elements.
//
// http://www.khronos.org/opengles/sdk/docs/man3/html/glUniform.xhtml
Uniform4iv(dst Uniform, src []int32)
Expand Down
2 changes: 1 addition & 1 deletion gl/work.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func (ctx *context) cString(str string) (uintptr, func()) {
return uintptr(ptr), func() { C.free(ptr) }
}

// cString creates a pointer to a C string off the Go heap.
// cStringPtr creates a pointer to a C string off the Go heap.
// ret is a **char.
func (ctx *context) cStringPtr(str string) (uintptr, func()) {
s, free := ctx.cString(str)
Expand Down

0 comments on commit 5e5de4c

Please sign in to comment.