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
↓ 1 callers
Method
SetChanVolume
SetChanVolume sets volume for the specified channel. It may fail if can't find the channel.
audio/sine/pool.go:144
↓ 1 callers
Method
SetColor
(color Color)
gfx/text.go:50
↓ 1 callers
Method
SetCompleteCallback
(index int, cb EndCallback)
anim/ween/anim.go:262
↓ 1 callers
Method
SetCurve
(index int, cx1, cy1, cx2, cy2 float32)
anim/spine/curve.go:25
↓ 1 callers
Method
SetDefault
SetDefault sets the default Scene before the Game start. It's designed for internal usage. You should not use it.
game/scene.go:70
↓ 1 callers
Method
SetDesiredViewport
(w, h float32)
gfx/camera.go:156
↓ 1 callers
Method
SetGravity
(x, y float32)
gui/auto/layout.go:373
↓ 1 callers
Method
SetKeyEvent
更新 key 的状态
hid/input/input.go:127
↓ 1 callers
Method
SetPointerEvent
更新 Mouse/Touch 状态
hid/input/input.go:134
↓ 1 callers
Method
SetRealSize
(w, h float32)
gui/gui_lib.go:517
↓ 1 callers
Method
SetScale
apply scale to child
gfx/transform.go:106
↓ 1 callers
Method
SetScissor
(x, y, width, height uint16)
gfx/bk/queue.go:181
↓ 1 callers
Method
SetScissorCached
(id uint16)
gfx/bk/queue.go:187
↓ 1 callers
Method
SetSkin
(skin *Skin)
anim/spine/skeleton.go:157
↓ 1 callers
Method
SetStencil
(stencil uint32)
gfx/bk/queue.go:177
↓ 1 callers
Method
SetStepped
(index int)
anim/spine/curve.go:21
↓ 1 callers
Method
SetTexture
(tex gfx.Tex2D)
effect/particle.go:34
↓ 1 callers
Method
SetToSetupPose
()
anim/spine/bone.go:62
↓ 1 callers
Method
SetToSetupPose
()
anim/spine/slot.go:43
↓ 1 callers
Method
SetTransform
Transform 是 uniform 之一,2D 世界可以省略
gfx/bk/queue.go:173
↓ 1 callers
Method
SetUVs
(u float32, v float32, u2 float32, v2 float32, rotate bool)
anim/spine/attachment.go:45
↓ 1 callers
Method
SetUpdateCallback
(index int, cb UpdateCallback)
anim/ween/anim.go:256
↓ 1 callers
Method
SetViewClear
(id uint8, flags uint16, rgba uint32, depth float32, stencil uint8)
gfx/bk/queue.go:208
↓ 1 callers
Method
SetViewPort
TODO:相机默认位置应该在屏幕中间
gfx/camera.go:140
↓ 1 callers
Method
SetViewPort
(id uint8, x, y, width, height uint16)
gfx/bk/queue.go:200
↓ 1 callers
Method
SetViewPort
(x,y, w,h float32)
gfx/dbg/dbg.go:181
↓ 1 callers
Method
SetViewScissor
View Related Setting
gfx/bk/queue.go:192
↓ 1 callers
Method
SetViewTransform
(id uint8, view, proj *f32.Mat4, flags uint8)
gfx/bk/queue.go:220
↓ 1 callers
Method
SetVirtualSize
(w, h float32)
gui/gui_lib.go:522
↓ 1 callers
Method
Setup
(g *Game)
game/scene.go:50
↓ 1 callers
Method
Shader
Shader returns the low-level Shader struct.
gfx/bk/R.go:277
↓ 1 callers
Method
Simulate
(dt float32)
effect/sim_fire.go:70
↓ 1 callers
Method
Simulate
(dt float32)
effect/sim_radius.go:75
↓ 1 callers
Function
Sin
(r float32)
math/f32.go:64
↓ 1 callers
Method
Skeleton
()
anim/spine/slot.go:71
↓ 1 callers
Method
Slider
(id ID, bb *Rect, value *float32, style *SliderStyle)
gui/gui_lib.go:211
↓ 1 callers
Method
Slider
Slider 需要设定一些自定义的属性,目前没有想好如何实现,先把逻辑实现了 用两种颜色来绘制
gui/auto/gui_lib.go:135
↓ 1 callers
Method
Smooth
()
game/fps.go:35
↓ 1 callers
Method
State
()
audio/sine/bk_al.go:271
↓ 1 callers
Method
Step
()
gfx/gctx.go:104
↓ 1 callers
Method
StopChan
(chanId int)
audio/sine/pool.go:124
↓ 1 callers
Function
Submit
Submit primitive for rendering. Default depth is zero. Returns Number of drawCall calls.
gfx/bk/bk.go:110
↓ 1 callers
Method
Swap
Swap swap all the field defined in the pool.
effect/pool.go:117
↓ 1 callers
Method
TransformCoord
(x, y float32)
gfx/camera.go:258
↓ 1 callers
Method
TransformNormal
(x, y float32)
gfx/camera.go:264
↓ 1 callers
Method
UnLoad
(sn Scene)
game/scene.go:44
↓ 1 callers
Method
Uniform
Uniform returns the low-level Uniform struct.
gfx/bk/R.go:268
↓ 1 callers
Function
Uniform_decode
Uniform ENCODE FORMAT 0x FF FF FF FF ^ ^ ^ ^ | | | | type-+ | | +--- Num loc ---+ +------ size
gfx/bk/uniform.go:106
↓ 1 callers
Function
Uniform_encode
(uType UniformType, loc, size, num uint8)
gfx/bk/uniform.go:113
↓ 1 callers
Method
Unload
()
game/scene.go:16
↓ 1 callers
Method
Unload
(page *AtlasPage)
anim/spine/atlas.go:401
↓ 1 callers
Method
UnloadSound
(id uint16)
audio/sine/R.go:138
↓ 1 callers
Method
Update
()
game/game.go:288
↓ 1 callers
Method
Update
(dt float32)
game/script.go:12
↓ 1 callers
Method
UpdateClipRect
will result in new draw-call
gui/drawing.go:182
↓ 1 callers
Method
UseTheme
Theme:
gui/gui_lib.go:497
↓ 1 callers
Method
Valid
()
anim/ween/animator.go:43
↓ 1 callers
Function
Vec2Lerp
(from, to f32.Vec2, f float32)
anim/ween/tweens.go:27
↓ 1 callers
Method
Write
(waveOut uintptr, data []byte)
audio/sine/bk_windows.go:226
↓ 1 callers
Method
WriteUInt32
(value uint32)
gfx/bk/uniform.go:75
↓ 1 callers
Method
allocBuffer
(isz, vsz int)
gui/render.go:105
↓ 1 callers
Method
allocChannel
channels ascend order
audio/sine/pool.go:107
↓ 1 callers
Method
allocStaticData
(fmt uint32, bits []byte, freq int32)
audio/sine/R.go:116
↓ 1 callers
Method
allocStreamData
(name string, ft FileType)
audio/sine/R.go:123
↓ 1 callers
Method
attachAll
(skeleton *Skeleton, oldSkin *Skin)
anim/spine/skin.go:38
↓ 1 callers
Method
begin
(tex uint16, depth int16)
gfx/batch_render.go:149
↓ 1 callers
Method
bindState
(changedFlags, newFlags uint64)
gfx/bk/renderc.go:228
↓ 1 callers
Method
bindUniform
(begin, end uint32)
gfx/bk/renderc.go:193
↓ 1 callers
Function
checkGLError
checkGLError returns an opengl error if one exists
gfx/font/misc.go:48
↓ 1 callers
Method
create
(program uint32, name string, xType UniformType, num uint32)
gfx/bk/uniform.go:38
↓ 1 callers
Method
draw
()
gfx/dbg/hud.go:29
↓ 1 callers
Method
drawComp
计算世界坐标并保存到 Batch 结构 3 ---- 2 | ` | | ` | 0------1
gfx/batch_render.go:162
↓ 1 callers
Function
drawDrawCall
(x,y float32, dc int)
gfx/dbg/hud.go:73
↓ 1 callers
Function
drawFps
(x, y float32, fps int)
gfx/dbg/hud.go:57
↓ 1 callers
Function
effectCompResize
(slice []ParticleComp, size int)
effect/particle.go:158
↓ 1 callers
Method
fillData
generate text-vertex with the string +----------+ | . | | . | | . | | . | +----------+ 1 * 1 quad for each char
gfx/text.go:105
↓ 1 callers
Method
findAnimation
(name string)
anim/spine/skeleton.go:47
↓ 1 callers
Method
findSkin
(name string)
anim/spine/skeleton.go:38
↓ 1 callers
Method
format
()
audio/sine/bk_al.go:205
↓ 1 callers
Function
formatFromName
(name string)
anim/spine/atlas.go:297
↓ 1 callers
Method
frameCount
()
anim/spine/anim.go:159
↓ 1 callers
Function
getProgramStatus
(program uint32)
gfx/bk/shader.go:227
↓ 1 callers
Function
getShaderStatus
(shader uint32)
gfx/bk/shader.go:216
↓ 1 callers
Method
init
()
gfx/batch_render.go:143
↓ 1 callers
Method
init
(maxVertex uint32)
gfx/dbg/dbg.go:245
↓ 1 callers
Method
initIndexBuffer
()
gfx/gctx.go:121
↓ 1 callers
Method
initialize
()
game/fps.go:17
↓ 1 callers
Method
initialize
()
gui/auto/gui_lib.go:22
↓ 1 callers
Method
initialize
()
effect/simulate.go:273
↓ 1 callers
Method
isZero
()
gfx/bk/queue.go:28
↓ 1 callers
Method
load
(file string)
asset/mpsconfig.go:56
↓ 1 callers
Method
loadAtlas
加载纹理图集
asset/mtexture.go:159
↓ 1 callers
Method
loadTables
()
game/game.go:261
↓ 1 callers
Function
max
(a, b int)
audio/sine/bk_windows.go:320
↓ 1 callers
Function
meshResize
(slice []MeshComp, size int)
gfx/mesh.go:195
↓ 1 callers
Function
min
(a, b int)
audio/sine/bk_windows.go:327
↓ 1 callers
Function
min
(a, b int)
audio/sine/bk_webgl.go:53
↓ 1 callers
Function
ms2mi
(x map[string]string)
webav/webaudio.go:23
↓ 1 callers
Function
newDarkTheme
()
gui/style.go:125
↓ 1 callers
Function
newDriver
(sampleRate, channelNum, bitDepthInBytes, bufferSizeInBytes int)
audio/sine/bk_windows.go:245
← previous
next →
501–600 of 1,776, ranked by callers