MCPcopy Create free account

hub / github.com/Technici4n/voxel-rs / functions

Functions337 in github.com/Technici4n/voxel-rs

↓ 195 callersFunctionnew
()
common/src/network/dummy.rs:20
↓ 78 callersMethodpush
(&mut self, to_push: (usize, usize, usize, u8))
server/src/light/sunlight.rs:231
↓ 52 callersMethodlen
Get the number of stored elements
client/src/render/buffers.rs:83
↓ 19 callersMethodget_id_by_name
(&self, name: &String)
common/src/registry.rs:41
↓ 18 callersFunctionind_mesh
(s: usize, x: i32, y: i32, z: i32)
client/src/render/world/meshing.rs:210
↓ 18 callersMethodrecord_part
Record the previous part under the given `part_name`
common/src/time.rs:93
↓ 17 callersMethodinto
(self)
network/src/types.rs:75
↓ 14 callersFunctionfour_bytes_to_u32
(bytes: &[u8], big_endian: bool)
common/src/data/vox/mod.rs:171
↓ 13 callersMethodsend
(&mut self, data: Vec<u8>)
network/src/channel.rs:39
↓ 12 callersMethodremove
Remove object `object` from the buffer
client/src/render/buffers.rs:134
↓ 12 callersFunctionsend_debug_info
Send a debug info message to the current `DebugInfo` if there is one
common/src/debug.rs:59
↓ 12 callersMethodupdate
Update the data for object `object` in the buffer # Panics Will panic if `data` is empty. TODO: handle memory fragmentation
client/src/render/buffers.rs:166
↓ 10 callersMethodintersect_world
Return true if the box intersect some block
common/src/physics/aabb.rs:64
↓ 10 callersFunctionload_glsl_shader
Load a GLSL shader from a file and compile it to SPIR-V
client/src/render/init.rs:11
↓ 10 callersFunctionserialize_packet
(target: &mut Vec<u8>, packet: &P)
network/src/packet.rs:12
↓ 10 callersFunctionto_u8_slice
Convert a vector to a buffer compatible slice of u8
client/src/render/render.rs:104
↓ 9 callersMethodcontaining_chunk_pos
(self)
common/src/world.rs:17
↓ 9 callersFunctionijk_to_pos
(s: usize, i: i32, j: i32, k: i32)
client/src/render/world/meshing.rs:341
↓ 9 callersMethodoffset
Offset the current chunk position by some amount of chunks
common/src/world.rs:81
↓ 9 callersMethodsend
(&mut self, _: PlayerId, message: ToClient)
common/src/network/dummy.rs:50
↓ 8 callersFunctionbuffer_from_slice
Helper to create a buffer from an existing slice.
client/src/render/render.rs:109
↓ 8 callersMethodget_block_at
(&self, (px, py, pz): (u32, u32, u32))
common/src/world.rs:230
↓ 8 callersFunctionind
(x: i32, y: i32, z: i32)
client/src/render/world/meshing.rs:90
↓ 8 callersFunctionmovement_direction
Unit vector in the `angle` direction
common/src/physics/camera.rs:20
↓ 7 callersMethodpop
(&mut self)
server/src/light/sunlight.rs:222
↓ 7 callersMethodpos_in_containing_chunk
(self)
common/src/world.rs:26
↓ 7 callersMethodregister
(&mut self, name: String, value: T)
common/src/registry.rs:29
↓ 7 callersFunctionsmoothstep
(x: f32)
common/src/worldgen/perlin.rs:311
↓ 6 callersFunctionf
(x: usize)
client/src/render/world/meshing.rs:103
↓ 6 callersMethodget_buffer
Get the underlying buffer
client/src/render/buffers.rs:78
↓ 6 callersFunctionhash
(b: i32)
common/src/worldgen/perlin.rs:334
↓ 6 callersMethodis_key_pressed
(&self, scancode: u32)
client/src/input.rs:124
↓ 6 callersFunctionrand_pos
(x: i32, y: i32, z: i32, seed: i32)
common/src/worldgen/perlin.rs:318
↓ 6 callersMethodtext
Draw text, aligned to the left but centered vertically
client/src/gui/mod.rs:88
↓ 6 callersFunctionzero_initialized_vec
Create a new zero-initialized vector
common/src/collections.rs:2
↓ 5 callersFunctioncreate_default_pipeline
Create a default pipeline
client/src/render/init.rs:77
↓ 5 callersFunctioncreate_default_render_pass
Create a render pass that renders to the multisampled frame buffer without resolving and without clearing.
client/src/render/render.rs:24
↓ 5 callersMethodread
(&mut self)
network/src/server.rs:57
↓ 5 callersMethodremove_old
(&mut self)
common/src/time.rs:18
↓ 5 callersFunctionstr_from_byte
(bytes: &[u8])
common/src/data/vox/mod.rs:185
↓ 4 callersFunctionambiant_occl
(corners: u32, edge: u32)
client/src/render/world/model.rs:40
↓ 4 callersFunctionambiant_occl
Ambient occlusion code (cf : https://0fps.net/2013/07/03/ambient-occlusion-for-minecraft-like-worlds/)
client/src/render/world/meshing.rs:40
↓ 4 callersMethodclear
(&mut self)
client/src/input.rs:118
↓ 4 callersMethodenqueue
Try to enqueue a new input in the worker queue. Doesn't block. Will return the input if the queue is full.
common/src/worker.rs:60
↓ 4 callersMethodget_camera_position
Get the position of the camera
common/src/physics/player.rs:21
↓ 4 callersMethodget_pointed_at
Ray trace to find the pointed block. Return the position of the block and the face (x/-x/y/-y/z/-z) TODO: use block registry
common/src/physics/player.rs:27
↓ 4 callersMethodget_pos_len
Get the position and the length of object `object` in the buffer
client/src/render/buffers.rs:301
↓ 4 callersMethodreceive
(&mut self, sequence: Sequence, data: Vec<u8>)
network/src/channel.rs:111
↓ 4 callersMethodsend_message
TODO: implement rate control
network/src/server.rs:244
↓ 4 callersMethodset_block_at
(&mut self, (px, py, pz): (u32, u32, u32), block: BlockId)
common/src/world.rs:236
↓ 4 callersMethodtick
(&mut self)
network/src/server.rs:167
↓ 4 callersFunctionuind
(a: usize, b: usize, c: usize)
client/src/render/world/meshing.rs:96
↓ 3 callersFunctiondeserialize_packet
(source: &mut [u8])
network/src/packet.rs:33
↓ 3 callersMethodfinish
Finish the frame
client/src/gui/mod.rs:55
↓ 3 callersMethodget_block_at_unsafe
(&self, (px, py, pz): (u32, u32, u32))
common/src/world.rs:241
↓ 3 callersMethodget_chunk
Return some chunk if is loaded
server/src/world.rs:66
↓ 3 callersMethodget_close_chunks
(&self)
common/src/player.rs:150
↓ 3 callersMethodget_result
Try to get a new output from the worker. Doesn't block. Will return None if there is no available output.
common/src/worker.rs:68
↓ 3 callersMethodget_state
Get a reference to the current state of the simulation
common/src/physics/simulation.rs:187
↓ 3 callersMethodis_block_full
(&self, pos: BlockPos)
client/src/world.rs:160
↓ 3 callersMethodis_chunk_visible
Check whether a chunk is in render distance of the player
common/src/player.rs:56
↓ 3 callersFunctionnormalize_or_zero
Normalize the vector if it can be normalized or return 0 othersize
common/src/physics/camera.rs:25
↓ 3 callersMethodoffset_by_pos
Offset the current chunk position by some amount of chunks
common/src/world.rs:90
↓ 3 callersMethodpercent_size
Set size relative to parent in percent (from 0.0 to 1.0)
quint/src/style.rs:46
↓ 3 callersFunctionperlin2d
Generate a perlin noise at position x, y for a block of size (size, size) Point in the block are distant of 1 Use the parameter scale_x, y to set the
common/src/worldgen/perlin.rs:149
↓ 3 callersFunctionrand_pos_int
(x: i32, y: i32, z: i32, seed: i32)
common/src/worldgen/perlin.rs:327
↓ 3 callersMethodreceive_event
(&mut self)
common/src/network/dummy.rs:38
↓ 3 callersMethodset_chunk
Set the chunk at some position
server/src/world.rs:115
↓ 3 callersMethodset_cursor_position
Set the cursor position
quint/src/ui.rs:29
↓ 2 callersMethodadd_frame
(&mut self)
client/src/fps.rs:16
↓ 2 callersMethodbuild
Build the button
client/src/gui/mod.rs:109
↓ 2 callersMethodcenter_cross
Center cross axis
quint/src/style.rs:21
↓ 2 callersMethodcenter_main
Center main axis by spacing around
quint/src/style.rs:26
↓ 2 callersMethodconnect
(&mut self)
network/src/client.rs:47
↓ 2 callersFunctioncreate_clear_depth_attachment
( buffers: WindowBuffers, )
client/src/render/render.rs:71
↓ 2 callersMethoddist
(&self, point: Vector3<f64>)
client/src/render/frustum.rs:15
↓ 2 callersMethoddraw_rect
(&mut self, x: i32, y: i32, w: i32, h: i32, color: [f32; 4], z: f32)
client/src/ui/mod.rs:275
↓ 2 callersMethoddraw_triangles
(&mut self, vertices: Vec<[f32; 3]>, indices: Vec<u32>, color: [f32; 4])
client/src/ui/mod.rs:321
↓ 2 callersMethodextract_part_averages
Extract part averages
common/src/time.rs:116
↓ 2 callersMethodfind_client_slot
(&self, addr: SocketAddr)
network/src/server.rs:144
↓ 2 callersMethodget_acks
(&self)
network/src/channel.rs:120
↓ 2 callersFunctionget_close_chunks
(render_distance: &RenderDistance)
common/src/player.rs:155
↓ 2 callersMethodget_events
(&'a mut self)
network/src/server.rs:263
↓ 2 callersMethodget_light_at_unsafe
(&self, (px, py, pz): (u32, u32, u32))
common/src/world.rs:292
↓ 2 callersMethodget_message
(&mut self)
network/src/channel.rs:101
↓ 2 callersMethodget_messages
(&'a mut self)
network/src/client.rs:236
↓ 2 callersMethodget_player
Get the client player
common/src/physics/simulation.rs:96
↓ 2 callersMethodget_view_matrix
(&self)
client/src/render/frustum.rs:49
↓ 2 callersMethodis_empty
(&self)
server/src/light/sunlight.rs:217
↓ 2 callersMethodis_opaque
(&self)
common/src/block/mod.rs:32
↓ 2 callersMethodis_position_inside
Check if a position is inside this `Layout`.
quint/src/layout.rs:21
↓ 2 callersMethodkeys
Get all the keys, in no particular order
client/src/render/buffers.rs:322
↓ 2 callersFunctionload_files_from_folder
Load all <name>.ron files from a given folder and parse them into type `T`.
common/src/data/mod.rs:256
↓ 2 callersFunctionload_voxel_model
(path: &str)
common/src/data/vox/mod.rs:51
↓ 2 callersMethodmove_check_collision
Try to move the box in the world and stop the movement if it goes trough a block Return the actual deplacement
common/src/physics/aabb.rs:86
↓ 2 callersFunctionoutside_position
(x: usize, y: usize, z: usize)
client/src/render/world/meshing.rs:116
↓ 2 callersFunctionquint_element_state
(state: winit::event::ElementState)
client/src/ui/mod.rs:222
↓ 2 callersFunctionquint_mouse_button
(button: winit::event::MouseButton)
client/src/ui/mod.rs:212
↓ 2 callersMethodreceive_acks
(&mut self, first_sequence: Sequence, acks: BitSet)
network/src/channel.rs:75
↓ 2 callersMethodrender
( &mut self, buffers: WindowBuffers<'a>, device: &mut wgpu::Device, encoder: &
client/src/render/ui.rs:117
next →1–100 of 337, ranked by callers