Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BreakingLead/blockworld
/ functions
Functions
108 in github.com/BreakingLead/blockworld
⨍
Functions
108
◇
Types & classes
31
↓ 6 callers
Method
is_key_pressing
(&self, key: Key)
blockworld-client/renderer/input_manager.rs:60
↓ 6 callers
Method
to_string
(&self)
blockworld-utils/src/resource/resource_location.rs:50
↓ 5 callers
Method
set_blockid
(&mut self, pos: IVec3, block_id: &str)
blockworld-server/src/world/chunk.rs:81
↓ 4 callers
Method
get
Walk sources from highest to lowest priority, return first match.
blockworld-client/resource/mod.rs:71
↓ 4 callers
Function
hash
Simple 32-bit integer hash, one multiplication and XOR-shift.
blockworld-server/src/world/chunk_generator.rs:18
↓ 4 callers
Function
world_blockpos_to_chunkpos
Decompose a world-space block position into `(chunk_coord, local_coord)`. `chunk_coord` = `floor(pos / 16)` — which 16³ subchunk contains this block.
blockworld-server/src/world/chunk.rs:27
↓ 3 callers
Method
add_source
Append a source. Later additions override earlier ones.
blockworld-client/resource/mod.rs:66
↓ 3 callers
Method
get
Look up a value by its string identifier.
blockworld-utils/src/registry.rs:43
↓ 3 callers
Method
iter
()
blockworld-server/src/block/block_face_direction.rs:22
↓ 2 callers
Method
build_mvp
(&self)
blockworld-client/renderer/camera.rs:47
↓ 2 callers
Function
create_render_pipeline
Build a `RenderPipeline` from a shader. Shared by both the regular (filled) and wireframe (line) pipelines. The only differences are `polygon_mode` a
blockworld-client/renderer/world_renderer.rs:355
↓ 2 callers
Method
from_xy_to_uvs
(&self, xy: UVec2)
blockworld-client/renderer/atlas_image.rs:140
↓ 2 callers
Method
get_forward_direction
(&self)
blockworld-client/renderer/camera.rs:90
↓ 2 callers
Method
get_id
(&self)
blockworld-server/src/block/block.rs:10
↓ 2 callers
Method
go_forward
(&mut self, step: f32)
blockworld-client/renderer/camera.rs:94
↓ 2 callers
Method
go_right
(&mut self, step: f32)
blockworld-client/renderer/camera.rs:99
↓ 2 callers
Method
go_up
(&mut self, step: f32)
blockworld-client/renderer/camera.rs:105
↓ 2 callers
Method
height
(&self)
blockworld-client/renderer/atlas_image.rs:136
↓ 2 callers
Method
is_chunk_loaded
(&self, pos: IVec3)
blockworld-server/src/world/chunk_map.rs:59
↓ 2 callers
Method
name_to_number_id
Convert identifier to numeric ID. Returns `0` for unregistered identifiers (air by convention).
blockworld-utils/src/registry.rs:55
↓ 2 callers
Method
number_id_to_name
Convert numeric ID back to identifier. Returns `None` if the ID is unregistered (shouldn't happen with valid data).
blockworld-utils/src/registry.rs:49
↓ 2 callers
Method
to_vec
(&self)
blockworld-server/src/block/block_face_direction.rs:34
↓ 2 callers
Method
width
(&self)
blockworld-client/renderer/atlas_image.rs:132
↓ 2 callers
Method
with
Builder-style: associate an identifier with static bytes.
blockworld-client/resource/mod.rs:157
↓ 1 callers
Function
base_height
Base terrain height, rolling hills.
blockworld-server/src/world/chunk_generator.rs:68
↓ 1 callers
Method
clear_need_rerender
(&mut self, pos: IVec3)
blockworld-server/src/world/chunk_map.rs:113
↓ 1 callers
Method
clone_blocks
Clone the raw block data array (for sending to mesh worker thread).
blockworld-server/src/world/chunk.rs:108
↓ 1 callers
Function
create_adapter
Create the `wgpu` adapter from the instance and surface.
blockworld-client/renderer/init_helpers.rs:35
↓ 1 callers
Function
create_device_and_queue
Create the `wgpu` device and queue from the adapter.
blockworld-client/renderer/init_helpers.rs:56
↓ 1 callers
Function
create_instance
Create the `wgpu` instance.
blockworld-client/renderer/init_helpers.rs:24
↓ 1 callers
Function
create_surface_config
Create the `wgpu` surface configuration from the window size and surface.
blockworld-client/renderer/init_helpers.rs:72
↓ 1 callers
Function
fbm
Fractal Brownian Motion — summed octaves for natural-looking terrain.
blockworld-server/src/world/chunk_generator.rs:50
↓ 1 callers
Method
get_blockid
(&self, pos: IVec3)
blockworld-server/src/world/chunk.rs:92
↓ 1 callers
Method
get_chunk
(&self, pos: IVec3)
blockworld-server/src/world/chunk_map.rs:63
↓ 1 callers
Method
get_gaze
(&self)
blockworld-client/renderer/camera.rs:38
↓ 1 callers
Method
get_image
(&self)
blockworld-client/renderer/atlas_image.rs:121
↓ 1 callers
Method
get_namespace
(&self)
blockworld-utils/src/resource/resource_location.rs:34
↓ 1 callers
Method
get_path
(&self)
blockworld-utils/src/resource/resource_location.rs:42
↓ 1 callers
Method
get_raw_blockid
Fast path: return the raw numeric block ID without registry lookup.
blockworld-server/src/world/chunk.rs:102
↓ 1 callers
Method
handle_key_event
Register a key press or release.
blockworld-client/renderer/input_manager.rs:65
↓ 1 callers
Method
is_air_block
Check if a block position is air (fast path, no Identifier allocation).
blockworld-server/src/world/chunk_map.rs:32
↓ 1 callers
Method
iter_loaded_chunks
(&self)
blockworld-server/src/world/chunk_map.rs:82
↓ 1 callers
Method
list
Collect all identifiers across sources. Higher-priority sources win for duplicates (last-added overwrites).
blockworld-client/resource/mod.rs:77
↓ 1 callers
Function
mesh_worker
Runs on the worker thread. Receives MeshTasks, tessellates block data into TexturedVertex arrays, sends results back.
blockworld-client/renderer/meshing/meshing_manager.rs:44
↓ 1 callers
Method
need_rerender
(&self, pos: IVec3)
blockworld-server/src/world/chunk_map.rs:109
↓ 1 callers
Function
noise
Smooth 2D noise in [0, 1] via bilinear interpolation. `scale` controls frequency — smaller = larger features.
blockworld-server/src/world/chunk_generator.rs:27
↓ 1 callers
Method
pos
(&self)
blockworld-server/src/world/chunk.rs:77
↓ 1 callers
Method
process_queue
Generate at most `budget` pending chunks per frame.
blockworld-client/game/client.rs:76
↓ 1 callers
Method
query_uv
Look up UV coordinates for a block identifier. FIXME: This fallback to `{id}_top` is a stopgap until we implement block models (JSON files defining p
blockworld-client/renderer/atlas_image.rs:161
↓ 1 callers
Method
render
Draw one frame. Acquires the next swapchain texture, clears it to sky blue, runs the render pass (depth + color), and presents. Returns `Err(())` if
blockworld-client/renderer/render_state.rs:98
↓ 1 callers
Method
resize
Handle window resize: reconfigure the swapchain and recreate the depth buffer to match the new size.
blockworld-client/renderer/render_state.rs:68
↓ 1 callers
Method
resolve
Convert an identifier to a filesystem path: `{root}/assets/{namespace}/{path}`
blockworld-client/resource/mod.rs:107
↓ 1 callers
Function
run
Entry point. Initializes logging, creates the event loop, and blocks. Uses `ControlFlow::Poll` for continuous rendering (max FPS).
blockworld-client/renderer/window_init.rs:113
↓ 1 callers
Method
save
(&self, root: Q)
blockworld-client/renderer/atlas_image.rs:125
↓ 1 callers
Method
to_key_record
Convert the current key state into a `MovementRecord` for camera movement.
blockworld-client/renderer/input_manager.rs:37
↓ 1 callers
Function
to_quad_mesh
Generate 6 `TexturedVertex` (2 triangles) for a single block face. `quad_center`: world-space center of the face. `uv_aa`, `uv_bb`: texture UV rectan
blockworld-client/renderer/meshing/block_meshing.rs:67
↓ 1 callers
Function
to_vertices
Get the four corner positions for a given face, offset by `bias`. `(face as u8).ilog2()` maps the bitflag enum value to the QUADS index: XP=0b000001
blockworld-client/renderer/meshing/block_meshing.rs:55
↓ 1 callers
Method
update
Now we use data directly from the input manager to update the camera position This is temporary until we define the player's state.
blockworld-client/renderer/camera.rs:68
↓ 1 callers
Method
update_aspect_ratio
(&mut self, aspect_ratio: f32)
blockworld-client/renderer/camera.rs:35
↓ 1 callers
Method
update_rotation
(&mut self, delta: Vec2)
blockworld-client/renderer/camera.rs:55
↓ 1 callers
Method
update_view
Load/unload chunks based on player world position. When the player crosses a chunk boundary, this queues new chunks for generation. Actual generation
blockworld-client/game/client.rs:27
Function
atlas_generation
()
blockworld-client/renderer/atlas_image.rs:186
Function
create_window
Create the window instance for creating the surface of `wgpu`.
blockworld-client/renderer/init_helpers.rs:10
Method
default
()
blockworld-utils/src/resource/resource_location.rs:17
Method
deref
(&self)
blockworld-utils/src/resource/resource_location.rs:64
Method
device_event
Raw device events (mouse motion for camera rotation).
blockworld-client/renderer/window_init.rs:54
Method
fill_default_texture
( atlas: &mut image::RgbaImage, tile_size: u32, )
blockworld-client/renderer/atlas_image.rs:103
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
blockworld-client/renderer/atlas_image.rs:180
Method
from
(mat: Mat4)
blockworld-client/renderer/world_renderer.rs:29
Method
from
(s: &str)
blockworld-utils/src/resource/resource_location.rs:56
Method
from_resource_manager
( rm: &ResourceManager, namespace: &str, prefix: &str, )
blockworld-client/renderer/atlas_image.rs:25
Method
generate
(chunk_map: &mut ChunkMap, pos: IVec3)
blockworld-server/src/world/chunk_generator.rs:77
Method
get_block
Get the block identifier at a world position.
blockworld-server/src/world/chunk_map.rs:41
Method
get_layout
Returns the `VertexBufferLayout` describing this vertex format.
blockworld-client/renderer/vertex.rs:34
Method
get_with_number_id
Convenience: get both the numeric ID and the value in one call.
blockworld-utils/src/registry.rs:60
Method
handle_mouse_event
(&mut self, event: &DeviceEvent)
blockworld-client/renderer/input_manager.rs:77
Method
index
Reference: [https://minecraft.wiki/w/Chunk_format] Format: YZX From xyz to Index of the block array.
blockworld-server/src/world/chunk.rs:63
Method
is_air
(&self, pos: IVec3)
blockworld-server/src/world/chunk_map.rs:97
Method
load_chunk
(&mut self, pos: IVec3)
blockworld-server/src/world/chunk_map.rs:69
Function
main
()
blockworld-client/main.rs:10
Method
new
()
blockworld-server/src/lib.rs:12
Method
new
(pos: IVec3)
blockworld-server/src/world/chunk.rs:50
Method
new
()
blockworld-server/src/world/chunk_map.rs:27
Method
new
(id: Identifier)
blockworld-server/src/block/block.rs:16
Method
new
(view_distance: u32)
blockworld-client/game/client.rs:14
Method
new
( device: &Device, config: &SurfaceConfiguration, queue: &Queue, size: winit::
blockworld-client/renderer/world_renderer.rs:82
Method
new
(aspect_ratio: f32)
blockworld-client/renderer/camera.rs:21
Method
new
(pos: Vec3, uv: Vec2)
blockworld-client/renderer/vertex.rs:26
Method
new
Initialize wgpu, create the surface, and wire up the `WorldRenderer`. Returns `None` if no suitable GPU adapter is found.
blockworld-client/renderer/render_state.rs:40
Method
new
Load WGSL source from the `ResourceManager`, compile it, and record the fragment/vertex entry point names.
blockworld-client/renderer/shaders/mod.rs:28
Method
new
()
blockworld-client/renderer/meshing/meshing_manager.rs:162
Method
new
()
blockworld-client/resource/mod.rs:61
Method
new
()
blockworld-utils/src/registry.rs:27
Method
new
(id: &str)
blockworld-utils/src/resource/resource_location.rs:25
Method
register
Assign the next available numeric ID and register the value.
blockworld-utils/src/registry.rs:36
Method
remove_block
(&mut self, pos: IVec3)
blockworld-server/src/world/chunk.rs:87
Method
render
Bind pipeline and draw all chunk meshes. `rpass` is set up by `RenderState` with the correct color/depth attachments.
blockworld-client/renderer/world_renderer.rs:339
Method
render
(&'rpass self, rpass: &mut RenderPass<'rpass>)
blockworld-client/renderer/meshing/meshing_manager.rs:155
Method
resize
(&mut self, device: &Device, config: &SurfaceConfiguration, aspect_ratio: f32)
blockworld-client/renderer/world_renderer.rs:318
Method
resumed
Called once at startup. Creates the window and initializes wgpu.
blockworld-client/renderer/window_init.rs:29
next →
1–100 of 108, ranked by callers