MCPcopy Create free account

hub / github.com/KorokEngine/Korok / functions

Functions1,776 in github.com/KorokEngine/Korok

↓ 144 callersMethodError
()
audio/sine/bk_windows.go:119
↓ 56 callersMethodField
Field returns pointer of the filed in the pool.
effect/pool.go:102
↓ 54 callersMethodRandom
Random returns a value between [Base-Var/2, Base+Var/2].
effect/simulate.go:41
↓ 51 callersMethodIndex
()
engi/entity.go:31
↓ 46 callersMethodNew
()
anim/ween/anim.go:117
↓ 46 callersMethodNew
()
engi/entity.go:52
↓ 35 callersMethodAddChan
AddChan adds new fields to the pool.
effect/pool.go:54
↓ 21 callersMethodPathLineTo
(pos f32.Vec2)
gui/drawing.go:141
↓ 20 callersMethodIntegrate
(n int32, ch1 Channel_v2, dt float32)
effect/chan.go:80
↓ 19 callersMethodGet
(k Key)
hid/input/input.go:25
↓ 18 callersMethodUpdate
(dt float32)
game/scene.go:25
↓ 17 callersMethodDestroy
()
game/script.go:14
↓ 17 callersMethodRelease
()
effect/particle.go:303
↓ 16 callersMethodBindBuffer
Associates a buffer with a buffer target.
webav/webgl.go:413
↓ 16 callersMethodBounds
()
gfx/font/font.go:33
↓ 16 callersMethodInitialize
Initialize the particle simulator.
effect/simulate.go:71
↓ 15 callersMethodGet
(name string)
asset/mfont.go:92
↓ 13 callersMethodInit
()
game/script.go:10
↓ 13 callersMethodU32
()
gfx/data.go:30
↓ 12 callersMethodDispose
()
gfx/font/font.go:38
↓ 12 callersMethodNewComp
Create a new TransformComp for the entity, Return the old one, if it already exist .
gfx/transform.go:261
↓ 12 callersMethodTransform
Transform transforms (x, y) to (x1, y). matrix multiplication carried out on paper: |1 x| |c -s | |sx | | 1 ky | |1 -ox| | 1 y| |s c |
math/f32/matrix.go:33
↓ 11 callersMethodComp
Return the TransformComp or nil
gfx/transform.go:282
↓ 11 callersMethodNewAnimator
()
anim/ween/animator.go:10
↓ 11 callersMethodString
(x, y float32, chars string, scale float32)
gfx/dbg/dbg.go:281
↓ 10 callersMethodDraw
(nodes RenderNodes)
gfx/render_system.go:47
↓ 10 callersFunctionGui2Game
(x, y float32)
gui/gui_lib.go:501
↓ 10 callersMethodRangeInit
(invLife float32)
effect/simulate.go:60
↓ 10 callersMethodRect
3-------2 | | | | 0-------1
gfx/dbg/dbg.go:319
↓ 10 callersMethodSubmit
conversion: depth range [-int16, int16]
gfx/bk/queue.go:225
↓ 10 callersMethodUsed
Used returns whether the value is empty.
effect/simulate.go:36
↓ 10 callersFunctionerrString
(code C.ALenum)
audio/sine/bk_al.go:371
↓ 9 callersMethodBufferData
Creates a buffer in memory and initializes it with array data. If no array is provided, the contents of the buffer is initialized to 0.
webav/webgl.go:461
↓ 9 callersMethodClose
()
audio/wav/decoder.go:215
↓ 9 callersMethodComp
(entity engi.Entity)
anim/frame/frame.go:117
↓ 9 callersMethodDecode
stream decode
audio/sine/decoder.go:11
↓ 9 callersMethodDisable
Turns off specific WebGL capabilities for this context.
webav/webgl.go:611
↓ 9 callersMethodDuration
()
anim/spine/anim.go:342
↓ 9 callersMethodEnable
Turns on specific WebGL capabilities for this context.
webav/webgl.go:631
↓ 9 callersMethodFree
Free free all resource managed by R. Including index-buffer, vertex-buffer, texture, uniform and shader program.
gfx/bk/R.go:216
↓ 9 callersMethodUpdate
(down bool)
hid/input/button.go:34
↓ 9 callersFunctioncopyImg
(src, dst copyable)
gfx/font/pow2.go:56
↓ 8 callersMethodAddCommand
每次绘制都会产生一个 Command (可能会造成内存浪费! 1k cmd = 1000 * 6 * 4 = 24k) 为了减少内存可以一边添加一边尝试向前合并
gui/drawing.go:699
↓ 8 callersMethodClear
()
hid/input/input.go:21
↓ 8 callersMethodClearColor
Specifies color values to use by the clear method to clear the color buffer.
webav/webgl.go:482
↓ 8 callersMethodComp
(entity engi.Entity)
gfx/text.go:203
↓ 8 callersMethodGetUniformLocation
(uniform string)
gfx/bk/shader.go:163
↓ 8 callersMethodOnComplete
(cb EndCallback)
anim/ween/animator.go:34
↓ 8 callersMethodOnUpdate
(cb UpdateCallback)
anim/ween/animator.go:29
↓ 8 callersMethodPrimReserve
primitive operation, auto scale by 1024
gui/drawing.go:246
↓ 8 callersMethodSetPosition
Set local position relative to parent
gfx/transform.go:73
↓ 8 callersMethodSetUniform
复制简单数据的时候(比如:Sampler),采用赋值的方式可能更快 TODO
gfx/bk/queue.go:164
↓ 8 callersMethodSize
size
gfx/R.go:15
↓ 8 callersMethodTexParameteri
Sets texture parameters for the current texture unit.
webav/webgl.go:917
↓ 8 callersFunctionfixed2f32
(fixed fixed.Int26_6)
gfx/font/truetype.go:123
↓ 8 callersFunctionreadTuple
** Returns the number of tuple values read (2 or 4). */
anim/spine/atlas.go:264
↓ 7 callersMethodActiveTexture
Specifies the active texture unit.
webav/webgl.go:398
↓ 7 callersMethodAllocUniform
AllocUniform get the uniform slot in a shader program, Return the resource handler.
gfx/bk/R.go:152
↓ 7 callersMethodBindTexture
Binds a named texture object to a target.
webav/webgl.go:428
↓ 7 callersMethodComp
(entity engi.Entity)
gfx/sprite.go:137
↓ 7 callersMethodComp
(entity engi.Entity)
gfx/mesh.go:159
↓ 7 callersMethodComp
(entity engi.Entity)
effect/particle.go:128
↓ 7 callersMethodDx
()
math/geom.go:18
↓ 7 callersMethodDy
()
math/geom.go:22
↓ 7 callersMethodGC
GC removes dead particles from the Pool.
effect/simulate.go:177
↓ 7 callersMethodNewDecoder
(name string, fileType FileType)
audio/sine/decoder.go:23
↓ 7 callersMethodSet
(x, y int, clr color.Color)
gfx/font/pow2.go:53
↓ 7 callersMethodSub
(n int32, x, y, z, w float32)
effect/chan.go:144
↓ 7 callersMethodVisualize
Write the result to vertex-buffer.
effect/simulate.go:77
↓ 6 callersMethodAddAttributeBinding
(attr string, stream uint32, comp VertexComp)
gfx/bk/shader.go:79
↓ 6 callersMethodAttachShader
Attaches a WebGLShader object to a WebGLProgram object.
webav/webgl.go:403
↓ 6 callersMethodBufferSubData
Used to modify or update some or all of a data store for a bound buffer object.
webav/webgl.go:466
↓ 6 callersMethodComp
(entity engi.Entity)
game/script.go:59
↓ 6 callersMethodDeleteShader
Deletes a specific shader object.
webav/webgl.go:580
↓ 6 callersMethodDepthFunc
Sets a function to use to compare incoming pixel depth to the current depth buffer value.
webav/webgl.go:591
↓ 6 callersMethodDisableVertexAttribArray
Turns off a vertex attribute array at a specific index position.
webav/webgl.go:616
↓ 6 callersMethodFirstChild
()
gfx/transform.go:214
↓ 6 callersMethodFlush
()
gfx/render_system.go:48
↓ 6 callersMethodGetAttribLocation
Returns an index to the location in a program of a named attribute variable.
webav/webgl.go:695
↓ 6 callersMethodNewComp
(entity engi.Entity, script Script)
game/script.go:36
↓ 6 callersMethodOnPointEvent
(key int, pressed bool, x, y float32)
hid/lifecycle.go:30
↓ 6 callersMethodPathStroke
default: thickness=1.0
gui/drawing.go:159
↓ 6 callersMethodRate
Rate returns new particles that should spawn.
effect/simulate.go:136
↓ 6 callersMethodReset
()
hid/input/button.go:47
↓ 6 callersMethodSub
(x, y float32, w, h float32)
gfx/bk/texture.go:63
↓ 6 callersMethodTexture
Texture returns the low-level Texture struct.
gfx/bk/R.go:259
↓ 6 callersMethodUniform1i
Assigns a integer value to a uniform variable for the current program object.
webav/webgl.go:932
↓ 6 callersMethodUniform4fv
Assigns 4 floating point values to a uniform variable for the current program object.
webav/webgl.go:997
↓ 6 callersMethodUniformMatrix4fv
Sets values for a 4x4 floating point vector matrix into a uniform location as a matrix or a matrix array.
webav/webgl.go:1020
↓ 6 callersMethodUseProgram
Set the program object to use for rendering.
webav/webgl.go:1025
↓ 6 callersMethodViewport
public function vertexAttrib1f(indx:GLuint, x:GLfloat) : Void; public function vertexAttrib2f(indx:GLuint, x:GLfloat, y:GLfloat) : Void; public functi
webav/webgl.go:1049
↓ 6 callersMethodWorld
()
gfx/transform.go:68
↓ 6 callersMethodfindChannel
(chanId int)
audio/sine/pool.go:177
↓ 6 callersMethodsetFrame
(index int, time float32, attachmentName string)
anim/spine/anim.go:283
↓ 5 callersMethodAccept
(rf RenderFeature)
gfx/render_system.go:84
↓ 5 callersMethodBeginElement
计算单个UI元素 如果有大小则记录出偏移和Margin 否则只返回元素
gui/auto/gui_lib.go:187
↓ 5 callersMethodBlendFunc
Sets the blending factors used to combine source and destination pixels.
webav/webgl.go:450
↓ 5 callersMethodCalcTextSize
(text string, wrapWidth float32, fnt font.Font, fontSize float32)
gui/gui_lib.go:475
↓ 5 callersMethodColorMask
Lets you set whether individual colors can be written when drawing or rendering to a framebuffer.
webav/webgl.go:497
↓ 5 callersMethodCompileShader
Compiles the GLSL shader source into binary data used by the WebGLProgram object.
webav/webgl.go:502
next →1–100 of 1,776, ranked by callers