Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/KorokEngine/Korok
/ functions
Functions
1,776 in github.com/KorokEngine/Korok
⨍
Functions
1,776
◇
Types & classes
332
↓ 5 callers
Method
Create
(vsh, fsh string)
gfx/bk/shader.go:110
↓ 5 callers
Method
CreateProgram
Creates an empty WebGLProgram object to which vector and fragment WebGLShader objects can be bound.
webav/webgl.go:528
↓ 5 callers
Method
CreateShader
Returns an empty vertex or fragment shader object based on the type specified.
webav/webgl.go:538
↓ 5 callers
Method
DepthMask
Sets whether or not you can write to the depth buffer.
webav/webgl.go:596
↓ 5 callers
Method
Down
()
hid/input/button.go:30
↓ 5 callers
Method
DrawArrays
Render geometric primitives from bound and enabled vertex data.
webav/webgl.go:621
↓ 5 callers
Method
DrawElements
Renders geometric primitives indexed by element array data.
webav/webgl.go:626
↓ 5 callers
Method
DrawRect
(bb *Rect, fill gfx.Color, round float32)
gui/gui_lib.go:381
↓ 5 callers
Method
EnableVertexAttribArray
Turns on a vertex attribute at a specific index position in a vertex attribute array.
webav/webgl.go:637
↓ 5 callers
Method
EndElement
结束绘制, 每绘制完一个元素都要偏移一下光标
gui/auto/gui_lib.go:192
↓ 5 callers
Method
GetError
Returns a value for the WebGL error flag and clears the flag.
webav/webgl.go:712
↓ 5 callers
Method
GetProgramInfoLog
Returns information about the last error that occurred during the failed linking or validation of a WebGL program object.
webav/webgl.go:742
↓ 5 callers
Method
GetShaderInfoLog
Returns errors which occur when compiling a shader.
webav/webgl.go:764
↓ 5 callers
Method
Glyph
(rune rune)
gfx/font/font.go:32
↓ 5 callers
Method
JustPressed
()
hid/input/button.go:22
↓ 5 callers
Method
LinkProgram
Links an attached vertex shader and an attached fragment shader to a program so it can be used by the graphics processing unit (GPU).
webav/webgl.go:862
↓ 5 callers
Method
NewComp
(entity engi.Entity)
gfx/sprite.go:103
↓ 5 callers
Method
OnKeyEvent
(key int, pressed bool)
hid/lifecycle.go:29
↓ 5 callers
Method
PathFillConvex
(col uint32)
gui/drawing.go:153
↓ 5 callers
Method
Pop
()
gfx/bk/R.go:54
↓ 5 callers
Method
Push
(slot uint16)
gfx/bk/R.go:63
↓ 5 callers
Method
PushTextureId
(texId uint16)
gui/drawing.go:235
↓ 5 callers
Method
Scissor
func (c *Context) SampleCoverage(value float64, invert bool) { c.Call("sampleCoverage", value, invert) } Sets the dimensions of the scissor box.
webav/webgl.go:895
↓ 5 callers
Method
ShaderSource
Sets and replaces shader source code in a shader object.
webav/webgl.go:900
↓ 5 callers
Method
Sibling
()
gfx/transform.go:228
↓ 5 callers
Method
Size
()
game/script.go:85
↓ 5 callers
Method
Stop
()
effect/simulate.go:85
↓ 5 callers
Method
Tex
return texture id
gfx/R.go:11
↓ 5 callers
Method
TexImage2D
public function stencilFunc(func:GLenum, ref:GLint, mask:GLuint) : Void; public function stencilFuncSeparate(face:GLenum, func:GLenum, ref:GLint, mask
webav/webgl.go:912
↓ 5 callers
Method
TexSubImage2D
Replaces a portion of an existing 2D texture image with all of another image.
webav/webgl.go:922
↓ 5 callers
Method
Uniform1f
Assigns a floating point value to a uniform variable for the current program object.
webav/webgl.go:927
↓ 5 callers
Method
Uniform1fv
Assigns a floating point value to a uniform variable for the current program object.
webav/webgl.go:967
↓ 5 callers
Method
Uniform1iv
Assigns a integer value to a uniform variable for the current program object.
webav/webgl.go:972
↓ 5 callers
Method
Uniform2f
Assigns 2 floating point values to a uniform variable for the current program object.
webav/webgl.go:937
↓ 5 callers
Method
Uniform3f
Assigns 3 floating point values to a uniform variable for the current program object.
webav/webgl.go:947
↓ 5 callers
Method
Uniform4f
Assigns 4 floating point values to a uniform variable for the current program object.
webav/webgl.go:957
↓ 5 callers
Method
UniformMatrix3fv
Sets values for a 3x3 floating point vector matrix into a uniform location as a matrix or a matrix array.
webav/webgl.go:1014
↓ 5 callers
Method
VertexAttribPointer
(index, size, typ int, normal bool, stride int, offset int)
webav/webgl.go:1034
↓ 5 callers
Function
binarySearch
(values []float32, target float32, step int)
anim/spine/anim.go:67
↓ 5 callers
Method
clamp
()
gfx/camera.go:192
↓ 5 callers
Method
findBone
(name string)
anim/spine/skeleton.go:20
↓ 5 callers
Method
frameCount
()
anim/spine/anim.go:279
↓ 5 callers
Function
readValue
(expectedKey string, s *bufio.Scanner)
anim/spine/atlas.go:236
↓ 4 callers
Method
Add
(n int32, x, y float32)
effect/chan.go:73
↓ 4 callers
Method
AllocIndexBuffer
AllocIndexBuffer alloc a new Index-Buffer, Return the resource handler.
gfx/bk/R.go:111
↓ 4 callers
Method
AttachmentBySlotIndex
(index int, name string)
anim/spine/skeleton.go:169
↓ 4 callers
Method
Buffer
()
audio/sine/decoder.go:15
↓ 4 callers
Method
Comp
(entity engi.Entity)
game/tag.go:56
↓ 4 callers
Method
CurvePercent
(index int, percent float32)
anim/spine/curve.go:47
↓ 4 callers
Method
Delete
Swap erase the TransformComp if exist Delete will unlink the parent-child relation
gfx/transform.go:300
↓ 4 callers
Method
DrawImage
(bound *Rect, tex gfx.Tex2D, style *ImageStyle)
gui/gui_lib.go:426
↓ 4 callers
Method
DrawText
绘制元素, bb 存储相对于父容器的相对坐标..
gui/gui_lib.go:459
↓ 4 callers
Method
End
()
gfx/batch_render.go:97
↓ 4 callers
Method
GetUniformLocation
Returns a WebGLUniformLocation object for the location of a uniform variable within a WebGLProgram object.
webav/webgl.go:797
↓ 4 callers
Method
InRange
(p f32.Vec2)
gui/gui_lib.go:64
↓ 4 callers
Method
InView
(xf *Transform, size, gravity f32.Vec2)
gfx/camera.go:208
↓ 4 callers
Method
NewComp
(entity engi.Entity)
gfx/text.go:176
↓ 4 callers
Method
NewComp
(entity engi.Entity)
gfx/mesh.go:134
↓ 4 callers
Method
NewComp
(entity engi.Entity)
effect/particle.go:104
↓ 4 callers
Function
NewCurve
(frameCount int)
anim/spine/curve.go:7
↓ 4 callers
Function
NewScriptTable
(cap int)
game/script.go:32
↓ 4 callers
Function
NewTransformTable
(cap int)
gfx/transform.go:251
↓ 4 callers
Method
OnResize
Resize...
hid/lifecycle.go:9
↓ 4 callers
Method
PathArcToFast
此处圆角的算法: 使用一个12边形近似圆形,采用中心放射算法,计算出 各个角度的sin/cos, 然后通过公式,得到圆圆形顶点 f(x) = centre.x + cos()*radius f(y) = centre.y + sin()*radius 以上, 可以提前算好 sin/cos 加速整个过
gui/drawing.go:401
↓ 4 callers
Method
Play
()
effect/simulate.go:86
↓ 4 callers
Method
PopTextureId
()
gui/drawing.go:239
↓ 4 callers
Method
Position
()
gfx/camera.go:87
↓ 4 callers
Method
ReachEnd
()
audio/sine/decoder.go:16
↓ 4 callers
Method
Reset
reset frame-buffer size
gfx/bk/queue.go:121
↓ 4 callers
Method
SetIndexBuffer
(id uint16, firstIndex, num uint16)
gfx/bk/queue.go:135
↓ 4 callers
Method
SetState
(state uint64, rgba uint32)
gfx/bk/queue.go:131
↓ 4 callers
Method
SetVertexBuffer
(stream uint8, id uint16, firstVertex, numVertex uint16)
gfx/bk/queue.go:141
↓ 4 callers
Method
Size
()
gfx/sprite.go:164
↓ 4 callers
Method
Size
()
gfx/text.go:237
↓ 4 callers
Method
Size
()
gfx/transform.go:345
↓ 4 callers
Method
Size
()
gfx/mesh.go:191
↓ 4 callers
Method
Size
()
effect/particle.go:154
↓ 4 callers
Function
U8Lerp
(from, to uint8, f float32)
anim/ween/tweens.go:9
↓ 4 callers
Function
consume
(event js.Value)
hid/window_webgl.go:37
↓ 4 callers
Function
readCurve
(curve *Curve, frameIndex int, data interface{})
anim/spine/spine.go:351
↓ 3 callers
Method
AddText
(pos f32.Vec2, text string, font font.Font, fontSize float32, color uint32, wrapWidth float32)
gui/drawing.go:671
↓ 3 callers
Method
AdvanceFrame
更新 Button 状态.... TODO 此处的输入状态,更新有bug!!
hid/input/input.go:89
↓ 3 callers
Method
AllocShader
AllocShader compile and link the Shader source code, Return the resource handler.
gfx/bk/R.go:194
↓ 3 callers
Method
AllocTexture
AllocTexture upload image to GPU, Return the resource handler.
gfx/bk/R.go:174
↓ 3 callers
Method
AllocVertexBuffer
AllocVertexBuffer alloc a new Vertex-Buffer, Return the resource handler.
gfx/bk/R.go:132
↓ 3 callers
Method
Attachment
(slotIndex int, name string)
anim/spine/skin.go:30
↓ 3 callers
Method
ClickEvent
(id ID, rect *Rect)
gui/gui_lib.go:256
↓ 3 callers
Function
Color
(argb uint32)
gfx/dbg/dbg.go:69
↓ 3 callers
Method
Down
()
gui/gui_lib.go:31
↓ 3 callers
Method
Encode
()
gfx/bk/sortkey.go:28
↓ 3 callers
Function
F32Lerp
(from, to float32, f float32)
anim/ween/tweens.go:23
↓ 3 callers
Method
File
(init func() string)
hid/hid_attr.go:8
↓ 3 callers
Method
Gene
()
engi/entity.go:35
↓ 3 callers
Method
GetPos
()
gfx/bk/uniform.go:59
↓ 3 callers
Method
JustPressed
()
gui/gui_lib.go:23
↓ 3 callers
Method
JustReleased
()
hid/input/button.go:26
↓ 3 callers
Method
Lang
(init func() string)
hid/hid_attr.go:15
↓ 3 callers
Method
LinkChild
(c *Transform)
gfx/transform.go:176
↓ 3 callers
Method
OnComplete
Proxy the OnComplete method. proxyAnimator uses the CompleteCallback to remove itself from the TweenEngine, the user CompleteCallback will be called a
anim/ween_basic.go:44
↓ 3 callers
Method
OnCreate
窗口创建
hid/lifecycle.go:6
← previous
next →
101–200 of 1,776, ranked by callers