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
↓ 144 callers
Method
Error
()
audio/sine/bk_windows.go:119
↓ 56 callers
Method
Field
Field returns pointer of the filed in the pool.
effect/pool.go:102
↓ 54 callers
Method
Random
Random returns a value between [Base-Var/2, Base+Var/2].
effect/simulate.go:41
↓ 51 callers
Method
Index
()
engi/entity.go:31
↓ 46 callers
Method
New
()
anim/ween/anim.go:117
↓ 46 callers
Method
New
()
engi/entity.go:52
↓ 35 callers
Method
AddChan
AddChan adds new fields to the pool.
effect/pool.go:54
↓ 21 callers
Method
PathLineTo
(pos f32.Vec2)
gui/drawing.go:141
↓ 20 callers
Method
Integrate
(n int32, ch1 Channel_v2, dt float32)
effect/chan.go:80
↓ 19 callers
Method
Get
(k Key)
hid/input/input.go:25
↓ 18 callers
Method
Update
(dt float32)
game/scene.go:25
↓ 17 callers
Method
Destroy
()
game/script.go:14
↓ 17 callers
Method
Release
()
effect/particle.go:303
↓ 16 callers
Method
BindBuffer
Associates a buffer with a buffer target.
webav/webgl.go:413
↓ 16 callers
Method
Bounds
()
gfx/font/font.go:33
↓ 16 callers
Method
Initialize
Initialize the particle simulator.
effect/simulate.go:71
↓ 15 callers
Method
Get
(name string)
asset/mfont.go:92
↓ 13 callers
Method
Init
()
game/script.go:10
↓ 13 callers
Method
U32
()
gfx/data.go:30
↓ 12 callers
Method
Dispose
()
gfx/font/font.go:38
↓ 12 callers
Method
NewComp
Create a new TransformComp for the entity, Return the old one, if it already exist .
gfx/transform.go:261
↓ 12 callers
Method
Transform
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 callers
Method
Comp
Return the TransformComp or nil
gfx/transform.go:282
↓ 11 callers
Method
NewAnimator
()
anim/ween/animator.go:10
↓ 11 callers
Method
String
(x, y float32, chars string, scale float32)
gfx/dbg/dbg.go:281
↓ 10 callers
Method
Draw
(nodes RenderNodes)
gfx/render_system.go:47
↓ 10 callers
Function
Gui2Game
(x, y float32)
gui/gui_lib.go:501
↓ 10 callers
Method
RangeInit
(invLife float32)
effect/simulate.go:60
↓ 10 callers
Method
Rect
3-------2 | | | | 0-------1
gfx/dbg/dbg.go:319
↓ 10 callers
Method
Submit
conversion: depth range [-int16, int16]
gfx/bk/queue.go:225
↓ 10 callers
Method
Used
Used returns whether the value is empty.
effect/simulate.go:36
↓ 10 callers
Function
errString
(code C.ALenum)
audio/sine/bk_al.go:371
↓ 9 callers
Method
BufferData
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 callers
Method
Close
()
audio/wav/decoder.go:215
↓ 9 callers
Method
Comp
(entity engi.Entity)
anim/frame/frame.go:117
↓ 9 callers
Method
Decode
stream decode
audio/sine/decoder.go:11
↓ 9 callers
Method
Disable
Turns off specific WebGL capabilities for this context.
webav/webgl.go:611
↓ 9 callers
Method
Duration
()
anim/spine/anim.go:342
↓ 9 callers
Method
Enable
Turns on specific WebGL capabilities for this context.
webav/webgl.go:631
↓ 9 callers
Method
Free
Free free all resource managed by R. Including index-buffer, vertex-buffer, texture, uniform and shader program.
gfx/bk/R.go:216
↓ 9 callers
Method
Update
(down bool)
hid/input/button.go:34
↓ 9 callers
Function
copyImg
(src, dst copyable)
gfx/font/pow2.go:56
↓ 8 callers
Method
AddCommand
每次绘制都会产生一个 Command (可能会造成内存浪费! 1k cmd = 1000 * 6 * 4 = 24k) 为了减少内存可以一边添加一边尝试向前合并
gui/drawing.go:699
↓ 8 callers
Method
Clear
()
hid/input/input.go:21
↓ 8 callers
Method
ClearColor
Specifies color values to use by the clear method to clear the color buffer.
webav/webgl.go:482
↓ 8 callers
Method
Comp
(entity engi.Entity)
gfx/text.go:203
↓ 8 callers
Method
GetUniformLocation
(uniform string)
gfx/bk/shader.go:163
↓ 8 callers
Method
OnComplete
(cb EndCallback)
anim/ween/animator.go:34
↓ 8 callers
Method
OnUpdate
(cb UpdateCallback)
anim/ween/animator.go:29
↓ 8 callers
Method
PrimReserve
primitive operation, auto scale by 1024
gui/drawing.go:246
↓ 8 callers
Method
SetPosition
Set local position relative to parent
gfx/transform.go:73
↓ 8 callers
Method
SetUniform
复制简单数据的时候(比如:Sampler),采用赋值的方式可能更快 TODO
gfx/bk/queue.go:164
↓ 8 callers
Method
Size
size
gfx/R.go:15
↓ 8 callers
Method
TexParameteri
Sets texture parameters for the current texture unit.
webav/webgl.go:917
↓ 8 callers
Function
fixed2f32
(fixed fixed.Int26_6)
gfx/font/truetype.go:123
↓ 8 callers
Function
readTuple
** Returns the number of tuple values read (2 or 4). */
anim/spine/atlas.go:264
↓ 7 callers
Method
ActiveTexture
Specifies the active texture unit.
webav/webgl.go:398
↓ 7 callers
Method
AllocUniform
AllocUniform get the uniform slot in a shader program, Return the resource handler.
gfx/bk/R.go:152
↓ 7 callers
Method
BindTexture
Binds a named texture object to a target.
webav/webgl.go:428
↓ 7 callers
Method
Comp
(entity engi.Entity)
gfx/sprite.go:137
↓ 7 callers
Method
Comp
(entity engi.Entity)
gfx/mesh.go:159
↓ 7 callers
Method
Comp
(entity engi.Entity)
effect/particle.go:128
↓ 7 callers
Method
Dx
()
math/geom.go:18
↓ 7 callers
Method
Dy
()
math/geom.go:22
↓ 7 callers
Method
GC
GC removes dead particles from the Pool.
effect/simulate.go:177
↓ 7 callers
Method
NewDecoder
(name string, fileType FileType)
audio/sine/decoder.go:23
↓ 7 callers
Method
Set
(x, y int, clr color.Color)
gfx/font/pow2.go:53
↓ 7 callers
Method
Sub
(n int32, x, y, z, w float32)
effect/chan.go:144
↓ 7 callers
Method
Visualize
Write the result to vertex-buffer.
effect/simulate.go:77
↓ 6 callers
Method
AddAttributeBinding
(attr string, stream uint32, comp VertexComp)
gfx/bk/shader.go:79
↓ 6 callers
Method
AttachShader
Attaches a WebGLShader object to a WebGLProgram object.
webav/webgl.go:403
↓ 6 callers
Method
BufferSubData
Used to modify or update some or all of a data store for a bound buffer object.
webav/webgl.go:466
↓ 6 callers
Method
Comp
(entity engi.Entity)
game/script.go:59
↓ 6 callers
Method
DeleteShader
Deletes a specific shader object.
webav/webgl.go:580
↓ 6 callers
Method
DepthFunc
Sets a function to use to compare incoming pixel depth to the current depth buffer value.
webav/webgl.go:591
↓ 6 callers
Method
DisableVertexAttribArray
Turns off a vertex attribute array at a specific index position.
webav/webgl.go:616
↓ 6 callers
Method
FirstChild
()
gfx/transform.go:214
↓ 6 callers
Method
Flush
()
gfx/render_system.go:48
↓ 6 callers
Method
GetAttribLocation
Returns an index to the location in a program of a named attribute variable.
webav/webgl.go:695
↓ 6 callers
Method
NewComp
(entity engi.Entity, script Script)
game/script.go:36
↓ 6 callers
Method
OnPointEvent
(key int, pressed bool, x, y float32)
hid/lifecycle.go:30
↓ 6 callers
Method
PathStroke
default: thickness=1.0
gui/drawing.go:159
↓ 6 callers
Method
Rate
Rate returns new particles that should spawn.
effect/simulate.go:136
↓ 6 callers
Method
Reset
()
hid/input/button.go:47
↓ 6 callers
Method
Sub
(x, y float32, w, h float32)
gfx/bk/texture.go:63
↓ 6 callers
Method
Texture
Texture returns the low-level Texture struct.
gfx/bk/R.go:259
↓ 6 callers
Method
Uniform1i
Assigns a integer value to a uniform variable for the current program object.
webav/webgl.go:932
↓ 6 callers
Method
Uniform4fv
Assigns 4 floating point values to a uniform variable for the current program object.
webav/webgl.go:997
↓ 6 callers
Method
UniformMatrix4fv
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 callers
Method
UseProgram
Set the program object to use for rendering.
webav/webgl.go:1025
↓ 6 callers
Method
Viewport
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 callers
Method
World
()
gfx/transform.go:68
↓ 6 callers
Method
findChannel
(chanId int)
audio/sine/pool.go:177
↓ 6 callers
Method
setFrame
(index int, time float32, attachmentName string)
anim/spine/anim.go:283
↓ 5 callers
Method
Accept
(rf RenderFeature)
gfx/render_system.go:84
↓ 5 callers
Method
BeginElement
计算单个UI元素 如果有大小则记录出偏移和Margin 否则只返回元素
gui/auto/gui_lib.go:187
↓ 5 callers
Method
BlendFunc
Sets the blending factors used to combine source and destination pixels.
webav/webgl.go:450
↓ 5 callers
Method
CalcTextSize
(text string, wrapWidth float32, fnt font.Font, fontSize float32)
gui/gui_lib.go:475
↓ 5 callers
Method
ColorMask
Lets you set whether individual colors can be written when drawing or rendering to a framebuffer.
webav/webgl.go:497
↓ 5 callers
Method
CompileShader
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