Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Technici4n/voxel-rs
/ functions
Functions
337 in github.com/Technici4n/voxel-rs
⨍
Functions
337
◇
Types & classes
137
↓ 195 callers
Function
new
()
common/src/network/dummy.rs:20
↓ 78 callers
Method
push
(&mut self, to_push: (usize, usize, usize, u8))
server/src/light/sunlight.rs:231
↓ 52 callers
Method
len
Get the number of stored elements
client/src/render/buffers.rs:83
↓ 19 callers
Method
get_id_by_name
(&self, name: &String)
common/src/registry.rs:41
↓ 18 callers
Function
ind_mesh
(s: usize, x: i32, y: i32, z: i32)
client/src/render/world/meshing.rs:210
↓ 18 callers
Method
record_part
Record the previous part under the given `part_name`
common/src/time.rs:93
↓ 17 callers
Method
into
(self)
network/src/types.rs:75
↓ 14 callers
Function
four_bytes_to_u32
(bytes: &[u8], big_endian: bool)
common/src/data/vox/mod.rs:171
↓ 13 callers
Method
send
(&mut self, data: Vec<u8>)
network/src/channel.rs:39
↓ 12 callers
Method
remove
Remove object `object` from the buffer
client/src/render/buffers.rs:134
↓ 12 callers
Function
send_debug_info
Send a debug info message to the current `DebugInfo` if there is one
common/src/debug.rs:59
↓ 12 callers
Method
update
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 callers
Method
intersect_world
Return true if the box intersect some block
common/src/physics/aabb.rs:64
↓ 10 callers
Function
load_glsl_shader
Load a GLSL shader from a file and compile it to SPIR-V
client/src/render/init.rs:11
↓ 10 callers
Function
serialize_packet
(target: &mut Vec<u8>, packet: &P)
network/src/packet.rs:12
↓ 10 callers
Function
to_u8_slice
Convert a vector to a buffer compatible slice of u8
client/src/render/render.rs:104
↓ 9 callers
Method
containing_chunk_pos
(self)
common/src/world.rs:17
↓ 9 callers
Function
ijk_to_pos
(s: usize, i: i32, j: i32, k: i32)
client/src/render/world/meshing.rs:341
↓ 9 callers
Method
offset
Offset the current chunk position by some amount of chunks
common/src/world.rs:81
↓ 9 callers
Method
send
(&mut self, _: PlayerId, message: ToClient)
common/src/network/dummy.rs:50
↓ 8 callers
Function
buffer_from_slice
Helper to create a buffer from an existing slice.
client/src/render/render.rs:109
↓ 8 callers
Method
get_block_at
(&self, (px, py, pz): (u32, u32, u32))
common/src/world.rs:230
↓ 8 callers
Function
ind
(x: i32, y: i32, z: i32)
client/src/render/world/meshing.rs:90
↓ 8 callers
Function
movement_direction
Unit vector in the `angle` direction
common/src/physics/camera.rs:20
↓ 7 callers
Method
pop
(&mut self)
server/src/light/sunlight.rs:222
↓ 7 callers
Method
pos_in_containing_chunk
(self)
common/src/world.rs:26
↓ 7 callers
Method
register
(&mut self, name: String, value: T)
common/src/registry.rs:29
↓ 7 callers
Function
smoothstep
(x: f32)
common/src/worldgen/perlin.rs:311
↓ 6 callers
Function
f
(x: usize)
client/src/render/world/meshing.rs:103
↓ 6 callers
Method
get_buffer
Get the underlying buffer
client/src/render/buffers.rs:78
↓ 6 callers
Function
hash
(b: i32)
common/src/worldgen/perlin.rs:334
↓ 6 callers
Method
is_key_pressed
(&self, scancode: u32)
client/src/input.rs:124
↓ 6 callers
Function
rand_pos
(x: i32, y: i32, z: i32, seed: i32)
common/src/worldgen/perlin.rs:318
↓ 6 callers
Method
text
Draw text, aligned to the left but centered vertically
client/src/gui/mod.rs:88
↓ 6 callers
Function
zero_initialized_vec
Create a new zero-initialized vector
common/src/collections.rs:2
↓ 5 callers
Function
create_default_pipeline
Create a default pipeline
client/src/render/init.rs:77
↓ 5 callers
Function
create_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 callers
Method
read
(&mut self)
network/src/server.rs:57
↓ 5 callers
Method
remove_old
(&mut self)
common/src/time.rs:18
↓ 5 callers
Function
str_from_byte
(bytes: &[u8])
common/src/data/vox/mod.rs:185
↓ 4 callers
Function
ambiant_occl
(corners: u32, edge: u32)
client/src/render/world/model.rs:40
↓ 4 callers
Function
ambiant_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 callers
Method
clear
(&mut self)
client/src/input.rs:118
↓ 4 callers
Method
enqueue
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 callers
Method
get_camera_position
Get the position of the camera
common/src/physics/player.rs:21
↓ 4 callers
Method
get_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 callers
Method
get_pos_len
Get the position and the length of object `object` in the buffer
client/src/render/buffers.rs:301
↓ 4 callers
Method
receive
(&mut self, sequence: Sequence, data: Vec<u8>)
network/src/channel.rs:111
↓ 4 callers
Method
send_message
TODO: implement rate control
network/src/server.rs:244
↓ 4 callers
Method
set_block_at
(&mut self, (px, py, pz): (u32, u32, u32), block: BlockId)
common/src/world.rs:236
↓ 4 callers
Method
tick
(&mut self)
network/src/server.rs:167
↓ 4 callers
Function
uind
(a: usize, b: usize, c: usize)
client/src/render/world/meshing.rs:96
↓ 3 callers
Function
deserialize_packet
(source: &mut [u8])
network/src/packet.rs:33
↓ 3 callers
Method
finish
Finish the frame
client/src/gui/mod.rs:55
↓ 3 callers
Method
get_block_at_unsafe
(&self, (px, py, pz): (u32, u32, u32))
common/src/world.rs:241
↓ 3 callers
Method
get_chunk
Return some chunk if is loaded
server/src/world.rs:66
↓ 3 callers
Method
get_close_chunks
(&self)
common/src/player.rs:150
↓ 3 callers
Method
get_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 callers
Method
get_state
Get a reference to the current state of the simulation
common/src/physics/simulation.rs:187
↓ 3 callers
Method
is_block_full
(&self, pos: BlockPos)
client/src/world.rs:160
↓ 3 callers
Method
is_chunk_visible
Check whether a chunk is in render distance of the player
common/src/player.rs:56
↓ 3 callers
Function
normalize_or_zero
Normalize the vector if it can be normalized or return 0 othersize
common/src/physics/camera.rs:25
↓ 3 callers
Method
offset_by_pos
Offset the current chunk position by some amount of chunks
common/src/world.rs:90
↓ 3 callers
Method
percent_size
Set size relative to parent in percent (from 0.0 to 1.0)
quint/src/style.rs:46
↓ 3 callers
Function
perlin2d
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 callers
Function
rand_pos_int
(x: i32, y: i32, z: i32, seed: i32)
common/src/worldgen/perlin.rs:327
↓ 3 callers
Method
receive_event
(&mut self)
common/src/network/dummy.rs:38
↓ 3 callers
Method
set_chunk
Set the chunk at some position
server/src/world.rs:115
↓ 3 callers
Method
set_cursor_position
Set the cursor position
quint/src/ui.rs:29
↓ 2 callers
Method
add_frame
(&mut self)
client/src/fps.rs:16
↓ 2 callers
Method
build
Build the button
client/src/gui/mod.rs:109
↓ 2 callers
Method
center_cross
Center cross axis
quint/src/style.rs:21
↓ 2 callers
Method
center_main
Center main axis by spacing around
quint/src/style.rs:26
↓ 2 callers
Method
connect
(&mut self)
network/src/client.rs:47
↓ 2 callers
Function
create_clear_depth_attachment
( buffers: WindowBuffers, )
client/src/render/render.rs:71
↓ 2 callers
Method
dist
(&self, point: Vector3<f64>)
client/src/render/frustum.rs:15
↓ 2 callers
Method
draw_rect
(&mut self, x: i32, y: i32, w: i32, h: i32, color: [f32; 4], z: f32)
client/src/ui/mod.rs:275
↓ 2 callers
Method
draw_triangles
(&mut self, vertices: Vec<[f32; 3]>, indices: Vec<u32>, color: [f32; 4])
client/src/ui/mod.rs:321
↓ 2 callers
Method
extract_part_averages
Extract part averages
common/src/time.rs:116
↓ 2 callers
Method
find_client_slot
(&self, addr: SocketAddr)
network/src/server.rs:144
↓ 2 callers
Method
get_acks
(&self)
network/src/channel.rs:120
↓ 2 callers
Function
get_close_chunks
(render_distance: &RenderDistance)
common/src/player.rs:155
↓ 2 callers
Method
get_events
(&'a mut self)
network/src/server.rs:263
↓ 2 callers
Method
get_light_at_unsafe
(&self, (px, py, pz): (u32, u32, u32))
common/src/world.rs:292
↓ 2 callers
Method
get_message
(&mut self)
network/src/channel.rs:101
↓ 2 callers
Method
get_messages
(&'a mut self)
network/src/client.rs:236
↓ 2 callers
Method
get_player
Get the client player
common/src/physics/simulation.rs:96
↓ 2 callers
Method
get_view_matrix
(&self)
client/src/render/frustum.rs:49
↓ 2 callers
Method
is_empty
(&self)
server/src/light/sunlight.rs:217
↓ 2 callers
Method
is_opaque
(&self)
common/src/block/mod.rs:32
↓ 2 callers
Method
is_position_inside
Check if a position is inside this `Layout`.
quint/src/layout.rs:21
↓ 2 callers
Method
keys
Get all the keys, in no particular order
client/src/render/buffers.rs:322
↓ 2 callers
Function
load_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 callers
Function
load_voxel_model
(path: &str)
common/src/data/vox/mod.rs:51
↓ 2 callers
Method
move_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 callers
Function
outside_position
(x: usize, y: usize, z: usize)
client/src/render/world/meshing.rs:116
↓ 2 callers
Function
quint_element_state
(state: winit::event::ElementState)
client/src/ui/mod.rs:222
↓ 2 callers
Function
quint_mouse_button
(button: winit::event::MouseButton)
client/src/ui/mod.rs:212
↓ 2 callers
Method
receive_acks
(&mut self, first_sequence: Sequence, acks: BitSet)
network/src/channel.rs:75
↓ 2 callers
Method
render
( &mut self, buffers: WindowBuffers<'a>, device: &mut wgpu::Device, encoder: &
client/src/render/ui.rs:117
next →
1–100 of 337, ranked by callers