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
↓ 3 callers
Method
OnDestroy
窗口销毁
hid/lifecycle.go:15
↓ 3 callers
Method
OnEnter
(g *Game)
game/scene.go:24
↓ 3 callers
Method
OnExit
()
game/scene.go:26
↓ 3 callers
Method
OnLoop
窗口循环
hid/lifecycle.go:12
↓ 3 callers
Method
OnUpdate
Proxy the OnUpdate method. proxyAnimator uses the UpdateCallback to update values internally, the user UpdateCallback will be called after it.
anim/ween_basic.go:37
↓ 3 callers
Function
PackSortId
(z int16, b uint16)
gfx/data.go:113
↓ 3 callers
Method
PathRect
(a, b f32.Vec2, rounding float32, corners FlagCorner)
gui/drawing.go:433
↓ 3 callers
Method
Region
uv
gfx/R.go:13
↓ 3 callers
Method
RemoveChild
(c *Transform)
gfx/transform.go:195
↓ 3 callers
Method
RequireTable
(tables []interface{})
game/script.go:102
↓ 3 callers
Method
Scale
(skx, sky float32)
gui/gui_lib.go:58
↓ 3 callers
Method
SetConst
(n int32, x, y float32)
effect/chan.go:61
↓ 3 callers
Method
SetScale
(factor float32)
game/fps.go:21
↓ 3 callers
Method
SetSize
(w, h float32)
gui/auto/layout.go:382
↓ 3 callers
Method
SetTexture
(id uint16)
gfx/mesh.go:70
↓ 3 callers
Method
SetVolume
SetVolume set volume for all the channels in the pool.
audio/sine/pool.go:160
↓ 3 callers
Method
Size
()
game/tag.go:99
↓ 3 callers
Method
TempVertexBuffer
一帧之后自动释放
gfx/gctx.go:58
↓ 3 callers
Method
Tex2D
()
gfx/font/font.go:31
↓ 3 callers
Method
Use
()
gfx/bk/shader.go:106
↓ 3 callers
Method
Volume
()
audio/sine/pool.go:167
↓ 3 callers
Function
cstr2str
(x string)
hid/gl/gl_webgl.go:33
↓ 3 callers
Method
findSlot
(name string)
anim/spine/skeleton.go:29
↓ 3 callers
Method
initialize
(size int)
gfx/R.go:104
↓ 3 callers
Method
initialize
(am *AudioManger, engine *Engine, maxChannel int)
audio/sine/pool.go:37
↓ 3 callers
Method
loadTexture
(file string)
asset/mtexture.go:139
↓ 3 callers
Method
setPosition
update world location: world = parent.world + self.local
gfx/transform.go:90
↓ 2 callers
Method
Add
合并两个矩形
gfx/visibility.go:25
↓ 2 callers
Method
AddImage
(texId uint16, a, b f32.Vec2, uva, uvb f32.Vec2, color uint32)
gui/drawing.go:538
↓ 2 callers
Method
AddItem
(x, y, w, h float32, name string, rotated bool)
gfx/R.go:124
↓ 2 callers
Method
AddRect
所有非填充图形看来都是使用路径实现的
gui/drawing.go:467
↓ 2 callers
Method
Alive
(e Entity)
engi/entity.go:66
↓ 2 callers
Method
Apply
(skeleton *Skeleton, time, alpha float32)
anim/spine/anim.go:8
↓ 2 callers
Method
At
At returns the matrix element at the given row and column.
math/f32/matrix.go:108
↓ 2 callers
Method
Begin
(tex uint16, depth int16)
gfx/batch_render.go:89
↓ 2 callers
Method
BeginLayout
(id gui.ID, opt *Options, xtype LayoutType)
gui/auto/layout.go:181
↓ 2 callers
Method
CheckSlider
(id ID, bound *Rect)
gui/gui_lib.go:236
↓ 2 callers
Method
ColorBackground
偷师 flat-ui 中的设计,把空间的前景和背景分离,背景单独根据事件来变化.. 在 Android 中,Widget的前景和背景都可以根据控件状态发生变化 但是在大部分UI中,比如 Text/Image 只会改变背景的状态 偷懒的自定义UI,不做任何状态的改变... 所以说呢, 我们也采用偷懒的
gui/gui_lib.go:483
↓ 2 callers
Method
Commands
()
gui/drawing.go:715
↓ 2 callers
Method
Create
init subsystem
game/game.go:155
↓ 2 callers
Method
Create
(fmt uint32, bits []byte, freq int32)
audio/sine/bk_al.go:183
↓ 2 callers
Method
CreateBuffer
Creates and initializes a WebGLBuffer.
webav/webgl.go:517
↓ 2 callers
Method
CreateTexture
Used to generate a WebGLTexture object to which images can be bound.
webav/webgl.go:543
↓ 2 callers
Method
DefineLayout
(name string, xt ViewType)
gui/auto/gui_lib.go:164
↓ 2 callers
Method
Delete
(entity engi.Entity)
game/script.go:66
↓ 2 callers
Method
Delete
(entity engi.Entity)
game/tag.go:63
↓ 2 callers
Method
Delete
(entity engi.Entity)
gfx/sprite.go:145
↓ 2 callers
Method
Delete
(entity engi.Entity)
gfx/text.go:210
↓ 2 callers
Method
Delete
(entity engi.Entity)
gfx/mesh.go:166
↓ 2 callers
Method
Delete
(index int)
anim/ween/anim.go:130
↓ 2 callers
Method
Delete
(entity engi.Entity)
effect/particle.go:135
↓ 2 callers
Method
DeleteBuffer
Delete a specific buffer.
webav/webgl.go:553
↓ 2 callers
Method
DeleteTexture
Deletes a specific texture object.
webav/webgl.go:585
↓ 2 callers
Method
DrawCircle
default segment = 12 TODO, circle scale factor
gui/gui_lib.go:411
↓ 2 callers
Method
Element
找出前一帧保存的大小
gui/auto/layout.go:119
↓ 2 callers
Method
EndLayout
PopLayout, resume parent's state
gui/auto/layout.go:206
↓ 2 callers
Method
FontSize
()
gfx/font/config.go:8
↓ 2 callers
Method
Frame
(rune rune)
gfx/font/font.go:34
↓ 2 callers
Method
GetShaderStr
(key string)
asset/mshader.go:6
↓ 2 callers
Method
IndexBuffer
IndexBuffer returns the low-level IndexBuffer struct.
gfx/bk/R.go:241
↓ 2 callers
Method
Initialize
Initialize defines a 3-D Matrix. | x | | y | | 1 | | e0 e3 e6 | | e1 e4 e7 | | e2 e5 e8 |
math/f32/matrix.go:46
↓ 2 callers
Function
InvLength
(x, y , fail float32)
math/f32.go:23
↓ 2 callers
Method
JustReleased
()
gui/gui_lib.go:27
↓ 2 callers
Method
Line
(from, to f32.Vec2)
gfx/dbg/dbg.go:340
↓ 2 callers
Method
LinkChildren
(list... *Transform)
gfx/transform.go:170
↓ 2 callers
Method
Load
()
game/scene.go:12
↓ 2 callers
Method
Mul
(c float32)
math/f32/vector.go:21
↓ 2 callers
Method
NewAtlas
纹理图集的管理是以纹理为单位.
gfx/R.go:181
↓ 2 callers
Method
NewComp
(entity engi.Entity)
game/tag.go:34
↓ 2 callers
Method
NewElement
创建新的Layout
gui/auto/layout.go:112
↓ 2 callers
Function
NewMeshTable
(cap int)
gfx/mesh.go:130
↓ 2 callers
Function
NewParticleSystemTable
(cap int)
effect/particle.go:97
↓ 2 callers
Function
NewSpriteTable
(cap int)
gfx/sprite.go:96
↓ 2 callers
Function
NewTextTable
(cap int)
gfx/text.go:172
↓ 2 callers
Method
OnPause
窗口切入后台
hid/lifecycle.go:21
↓ 2 callers
Method
OnResume
窗口切回?
hid/lifecycle.go:18
↓ 2 callers
Function
OutBounce
(t float64)
math/ease/bounce.go:8
↓ 2 callers
Function
OverlapAB
(a, b *AABB)
gfx/data.go:82
↓ 2 callers
Method
P
()
gfx/camera.go:51
↓ 2 callers
Method
Parent
()
gfx/transform.go:221
↓ 2 callers
Method
PathArcTo
(centre f32.Vec2, radius float32, min, max float32, segments int)
gui/drawing.go:414
↓ 2 callers
Method
Pause
(pause bool)
audio/sine/pool.go:63
↓ 2 callers
Method
RegisterRender
register type-render
gfx/render_system.go:91
↓ 2 callers
Method
RenderText
当前的实现中,不考虑裁切优化,全部绘制所有字符
gui/font.go:21
↓ 2 callers
Method
Resume
()
audio/sine/bk_al.go:252
↓ 2 callers
Method
Rewind
()
audio/sine/decoder.go:17
↓ 2 callers
Method
SampleRate
()
audio/sine/decoder.go:14
↓ 2 callers
Method
Set
Set sets the corresponding matrix element at the given row and column.
math/f32/matrix.go:113
↓ 2 callers
Method
SetAttachment
(attachment Attachment)
anim/spine/slot.go:58
↓ 2 callers
Method
SetCamera
(camera *Camera)
gfx/render_system.go:13
↓ 2 callers
Method
SetRotation
apply
gfx/transform.go:139
↓ 2 callers
Method
SetSprite
(spt Sprite)
gfx/sprite.go:31
↓ 2 callers
Method
SetTexture
(stage uint8, samplerId uint16, texId uint16, flags uint32)
gfx/bk/queue.go:154
↓ 2 callers
Method
SetToSetupPose
()
anim/spine/skeleton.go:107
↓ 2 callers
Method
SharedIndexBuffer
64kb, format={3, 0, 1, 3, 1, 2}
gfx/gctx.go:114
↓ 2 callers
Method
Simulate
Run the simulator with delta time.
effect/simulate.go:74
↓ 2 callers
Method
Size
Size return the ParticleSize (in bytes) of the pool.
effect/pool.go:94
↓ 2 callers
Method
Size
Return the ParticleSize of the simulator.
effect/simulate.go:80
↓ 2 callers
Method
Sound
(id uint16)
audio/sine/R.go:142
↓ 2 callers
Method
Text
()
gfx/text.go:54
← previous
next →
201–300 of 1,776, ranked by callers