MCPcopy Create free account

hub / github.com/BreakingLead/blockworld / functions

Functions108 in github.com/BreakingLead/blockworld

↓ 6 callersMethodis_key_pressing
(&self, key: Key)
blockworld-client/renderer/input_manager.rs:60
↓ 6 callersMethodto_string
(&self)
blockworld-utils/src/resource/resource_location.rs:50
↓ 5 callersMethodset_blockid
(&mut self, pos: IVec3, block_id: &str)
blockworld-server/src/world/chunk.rs:81
↓ 4 callersMethodget
Walk sources from highest to lowest priority, return first match.
blockworld-client/resource/mod.rs:71
↓ 4 callersFunctionhash
Simple 32-bit integer hash, one multiplication and XOR-shift.
blockworld-server/src/world/chunk_generator.rs:18
↓ 4 callersFunctionworld_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 callersMethodadd_source
Append a source. Later additions override earlier ones.
blockworld-client/resource/mod.rs:66
↓ 3 callersMethodget
Look up a value by its string identifier.
blockworld-utils/src/registry.rs:43
↓ 3 callersMethoditer
()
blockworld-server/src/block/block_face_direction.rs:22
↓ 2 callersMethodbuild_mvp
(&self)
blockworld-client/renderer/camera.rs:47
↓ 2 callersFunctioncreate_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 callersMethodfrom_xy_to_uvs
(&self, xy: UVec2)
blockworld-client/renderer/atlas_image.rs:140
↓ 2 callersMethodget_forward_direction
(&self)
blockworld-client/renderer/camera.rs:90
↓ 2 callersMethodget_id
(&self)
blockworld-server/src/block/block.rs:10
↓ 2 callersMethodgo_forward
(&mut self, step: f32)
blockworld-client/renderer/camera.rs:94
↓ 2 callersMethodgo_right
(&mut self, step: f32)
blockworld-client/renderer/camera.rs:99
↓ 2 callersMethodgo_up
(&mut self, step: f32)
blockworld-client/renderer/camera.rs:105
↓ 2 callersMethodheight
(&self)
blockworld-client/renderer/atlas_image.rs:136
↓ 2 callersMethodis_chunk_loaded
(&self, pos: IVec3)
blockworld-server/src/world/chunk_map.rs:59
↓ 2 callersMethodname_to_number_id
Convert identifier to numeric ID. Returns `0` for unregistered identifiers (air by convention).
blockworld-utils/src/registry.rs:55
↓ 2 callersMethodnumber_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 callersMethodto_vec
(&self)
blockworld-server/src/block/block_face_direction.rs:34
↓ 2 callersMethodwidth
(&self)
blockworld-client/renderer/atlas_image.rs:132
↓ 2 callersMethodwith
Builder-style: associate an identifier with static bytes.
blockworld-client/resource/mod.rs:157
↓ 1 callersFunctionbase_height
Base terrain height, rolling hills.
blockworld-server/src/world/chunk_generator.rs:68
↓ 1 callersMethodclear_need_rerender
(&mut self, pos: IVec3)
blockworld-server/src/world/chunk_map.rs:113
↓ 1 callersMethodclone_blocks
Clone the raw block data array (for sending to mesh worker thread).
blockworld-server/src/world/chunk.rs:108
↓ 1 callersFunctioncreate_adapter
Create the `wgpu` adapter from the instance and surface.
blockworld-client/renderer/init_helpers.rs:35
↓ 1 callersFunctioncreate_device_and_queue
Create the `wgpu` device and queue from the adapter.
blockworld-client/renderer/init_helpers.rs:56
↓ 1 callersFunctioncreate_instance
Create the `wgpu` instance.
blockworld-client/renderer/init_helpers.rs:24
↓ 1 callersFunctioncreate_surface_config
Create the `wgpu` surface configuration from the window size and surface.
blockworld-client/renderer/init_helpers.rs:72
↓ 1 callersFunctionfbm
Fractal Brownian Motion — summed octaves for natural-looking terrain.
blockworld-server/src/world/chunk_generator.rs:50
↓ 1 callersMethodget_blockid
(&self, pos: IVec3)
blockworld-server/src/world/chunk.rs:92
↓ 1 callersMethodget_chunk
(&self, pos: IVec3)
blockworld-server/src/world/chunk_map.rs:63
↓ 1 callersMethodget_gaze
(&self)
blockworld-client/renderer/camera.rs:38
↓ 1 callersMethodget_image
(&self)
blockworld-client/renderer/atlas_image.rs:121
↓ 1 callersMethodget_namespace
(&self)
blockworld-utils/src/resource/resource_location.rs:34
↓ 1 callersMethodget_path
(&self)
blockworld-utils/src/resource/resource_location.rs:42
↓ 1 callersMethodget_raw_blockid
Fast path: return the raw numeric block ID without registry lookup.
blockworld-server/src/world/chunk.rs:102
↓ 1 callersMethodhandle_key_event
Register a key press or release.
blockworld-client/renderer/input_manager.rs:65
↓ 1 callersMethodis_air_block
Check if a block position is air (fast path, no Identifier allocation).
blockworld-server/src/world/chunk_map.rs:32
↓ 1 callersMethoditer_loaded_chunks
(&self)
blockworld-server/src/world/chunk_map.rs:82
↓ 1 callersMethodlist
Collect all identifiers across sources. Higher-priority sources win for duplicates (last-added overwrites).
blockworld-client/resource/mod.rs:77
↓ 1 callersFunctionmesh_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 callersMethodneed_rerender
(&self, pos: IVec3)
blockworld-server/src/world/chunk_map.rs:109
↓ 1 callersFunctionnoise
Smooth 2D noise in [0, 1] via bilinear interpolation. `scale` controls frequency — smaller = larger features.
blockworld-server/src/world/chunk_generator.rs:27
↓ 1 callersMethodpos
(&self)
blockworld-server/src/world/chunk.rs:77
↓ 1 callersMethodprocess_queue
Generate at most `budget` pending chunks per frame.
blockworld-client/game/client.rs:76
↓ 1 callersMethodquery_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 callersMethodrender
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 callersMethodresize
Handle window resize: reconfigure the swapchain and recreate the depth buffer to match the new size.
blockworld-client/renderer/render_state.rs:68
↓ 1 callersMethodresolve
Convert an identifier to a filesystem path: `{root}/assets/{namespace}/{path}`
blockworld-client/resource/mod.rs:107
↓ 1 callersFunctionrun
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 callersMethodsave
(&self, root: Q)
blockworld-client/renderer/atlas_image.rs:125
↓ 1 callersMethodto_key_record
Convert the current key state into a `MovementRecord` for camera movement.
blockworld-client/renderer/input_manager.rs:37
↓ 1 callersFunctionto_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 callersFunctionto_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 callersMethodupdate
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 callersMethodupdate_aspect_ratio
(&mut self, aspect_ratio: f32)
blockworld-client/renderer/camera.rs:35
↓ 1 callersMethodupdate_rotation
(&mut self, delta: Vec2)
blockworld-client/renderer/camera.rs:55
↓ 1 callersMethodupdate_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
Functionatlas_generation
()
blockworld-client/renderer/atlas_image.rs:186
Functioncreate_window
Create the window instance for creating the surface of `wgpu`.
blockworld-client/renderer/init_helpers.rs:10
Methoddefault
()
blockworld-utils/src/resource/resource_location.rs:17
Methodderef
(&self)
blockworld-utils/src/resource/resource_location.rs:64
Methoddevice_event
Raw device events (mouse motion for camera rotation).
blockworld-client/renderer/window_init.rs:54
Methodfill_default_texture
( atlas: &mut image::RgbaImage, tile_size: u32, )
blockworld-client/renderer/atlas_image.rs:103
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
blockworld-client/renderer/atlas_image.rs:180
Methodfrom
(mat: Mat4)
blockworld-client/renderer/world_renderer.rs:29
Methodfrom
(s: &str)
blockworld-utils/src/resource/resource_location.rs:56
Methodfrom_resource_manager
( rm: &ResourceManager, namespace: &str, prefix: &str, )
blockworld-client/renderer/atlas_image.rs:25
Methodgenerate
(chunk_map: &mut ChunkMap, pos: IVec3)
blockworld-server/src/world/chunk_generator.rs:77
Methodget_block
Get the block identifier at a world position.
blockworld-server/src/world/chunk_map.rs:41
Methodget_layout
Returns the `VertexBufferLayout` describing this vertex format.
blockworld-client/renderer/vertex.rs:34
Methodget_with_number_id
Convenience: get both the numeric ID and the value in one call.
blockworld-utils/src/registry.rs:60
Methodhandle_mouse_event
(&mut self, event: &DeviceEvent)
blockworld-client/renderer/input_manager.rs:77
Methodindex
Reference: [https://minecraft.wiki/w/Chunk_format] Format: YZX From xyz to Index of the block array.
blockworld-server/src/world/chunk.rs:63
Methodis_air
(&self, pos: IVec3)
blockworld-server/src/world/chunk_map.rs:97
Methodload_chunk
(&mut self, pos: IVec3)
blockworld-server/src/world/chunk_map.rs:69
Functionmain
()
blockworld-client/main.rs:10
Methodnew
()
blockworld-server/src/lib.rs:12
Methodnew
(pos: IVec3)
blockworld-server/src/world/chunk.rs:50
Methodnew
()
blockworld-server/src/world/chunk_map.rs:27
Methodnew
(id: Identifier)
blockworld-server/src/block/block.rs:16
Methodnew
(view_distance: u32)
blockworld-client/game/client.rs:14
Methodnew
( device: &Device, config: &SurfaceConfiguration, queue: &Queue, size: winit::
blockworld-client/renderer/world_renderer.rs:82
Methodnew
(aspect_ratio: f32)
blockworld-client/renderer/camera.rs:21
Methodnew
(pos: Vec3, uv: Vec2)
blockworld-client/renderer/vertex.rs:26
Methodnew
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
Methodnew
Load WGSL source from the `ResourceManager`, compile it, and record the fragment/vertex entry point names.
blockworld-client/renderer/shaders/mod.rs:28
Methodnew
()
blockworld-client/renderer/meshing/meshing_manager.rs:162
Methodnew
()
blockworld-client/resource/mod.rs:61
Methodnew
()
blockworld-utils/src/registry.rs:27
Methodnew
(id: &str)
blockworld-utils/src/resource/resource_location.rs:25
Methodregister
Assign the next available numeric ID and register the value.
blockworld-utils/src/registry.rs:36
Methodremove_block
(&mut self, pos: IVec3)
blockworld-server/src/world/chunk.rs:87
Methodrender
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
Methodrender
(&'rpass self, rpass: &mut RenderPass<'rpass>)
blockworld-client/renderer/meshing/meshing_manager.rs:155
Methodresize
(&mut self, device: &Device, config: &SurfaceConfiguration, aspect_ratio: f32)
blockworld-client/renderer/world_renderer.rs:318
Methodresumed
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