MCPcopy Create free account

hub / github.com/bfops/playform / functions

Functions312 in github.com/bfops/playform

↓ 81 callersFunctionnew
()
server/lib/src/server.rs:70
↓ 51 callersFunctionnew
(x: i32, y: i32, z: i32)
client/lib/src/chunk.rs:60
↓ 30 callersFunctionnew
( mut gl: GLContext, window_size: cgmath::Vector2<i32>, )
client/lib/src/view/mod.rs:118
↓ 27 callersFunctionnew
()
common/voxel.rs:34
↓ 24 callersMethodpush
add a new independently playing audio track
client/lib/src/audio.rs:69
↓ 23 callersMethodbind
( &self, texture_unit_alloc: &mut id_allocator::T<TextureUnit>, shader: &mut yaglw::shader::Shader
client/lib/src/view/terrain_buffers.rs:113
↓ 21 callersMethodas_pnt
(&self)
client/lib/src/chunk.rs:42
↓ 17 callersMethodclone
(&self)
common/index.rs:21
↓ 17 callersFunctionnew
( entity_id: entity::id::Player, physics_id: entity::id::Misc, owner_allocator: &Mutex<id_allocator::T<l
server/lib/src/player.rs:56
↓ 14 callersMethodallocate
Produce an Id that hasn't been produced yet by this object.
common/id_allocator.rs:15
↓ 13 callersMethodinsert
Add a single mob into VRAM and return true. If the mob ID is already loaded, replace the existing mob and return false.
client/lib/src/view/mob_buffers.rs:52
↓ 13 callersMethodinsert
Acquire/update an owner's handle in `position`. Returns (owner's previous T, T change if the location's max T changes).
server/lib/src/lod.rs:67
↓ 12 callersMethodget
Find out what T is up at a `position`.
server/lib/src/lod.rs:51
↓ 12 callersMethodlen
(&self)
client/lib/src/view/chunked_terrain.rs:38
↓ 12 callersMethodremove
Release an owner's handle on `position`. Returns (owner's previous T, T change if the location's T changes).
server/lib/src/lod.rs:130
↓ 10 callersMethodpush
Add a series of entites into VRAM.
client/lib/src/view/grass_buffers.rs:179
↓ 10 callersMethodsend
(&mut self, msg: protocol::ServerToClient)
server/lib/src/server.rs:35
↓ 9 callersMethodlen
(&self)
client/lib/src/terrain_mesh.rs:243
↓ 9 callersFunctionnew
(max_load_distance: u32)
client/lib/src/terrain.rs:45
↓ 8 callersFunctionof_u32
Assert that an index is a valid element index in a buffer.
common/index.rs:13
↓ 7 callersFunctionclone
()
client/lib/src/record_book.rs:43
↓ 7 callersMethodget_bounds
(&self, id: entity::id::Misc)
server/lib/src/physics.rs:59
↓ 7 callersMethodlg_sample_size
base-2 log of voxel sample size for this LOD
client/lib/src/lod.rs:42
↓ 7 callersFunctionnew
( rng: &mut Rng, trunk_height: f32, trunk_radius: f32, leaf_radius: f32, )
server/lib/terrain/tree.rs:61
↓ 7 callersMethodtell
(&self, msg: &protocol::ClientToServer)
client/lib/src/server.rs:33
↓ 6 callersMethodas_ptr
(&self)
client/lib/src/view/terrain_buffers.rs:41
↓ 6 callersFunctionget
(d: Dimension, p: &Point3<f32>)
server/lib/src/octree.rs:36
↓ 6 callersFunctiontri
Construct a triangle.
client/lib/src/terrain_mesh.rs:34
↓ 5 callersFunctioncube_diff
TODO: This should return an iterator. TODO: This should diff cube_shells instead of whole cubes. Return the blocks that are present in a cube of radiu
common/cube_shell.rs:53
↓ 5 callersMethoddraw
Draw all the mobs. N.B. This does not bind any shaders.
client/lib/src/view/mob_buffers.rs:78
↓ 5 callersMethodload
( &self, id_allocator : &Mutex<id_allocator::T<entity::id::Misc>>, physics : &Mutex<physics::
server/lib/src/terrain_loader.rs:42
↓ 5 callersMethodnext
(&mut self)
client/lib/src/audio.rs:35
↓ 5 callersFunctionshader_from_prefix
Load a shader from a filename prefix. e.g. shader_from_prefix("foo") will load a vertex shader from shaders/foo.vs.glsl and fragment shader from shade
client/lib/src/view/shaders/mod.rs:21
↓ 5 callersFunctionsplit
(mid: f32, d: Dimension, bounds: &Aabb3<f32>)
server/lib/src/octree.rs:52
↓ 5 callersMethodswap_remove
TODO: Make this take many ids as a parameter, to reduce `bind`s. Note: `id` must be present in the buffers. Remove some entity from VRAM.
client/lib/src/view/grass_buffers.rs:211
↓ 5 callersFunctionupdate_gaia
( server: &server::T, update: Message, )
server/lib/src/update_gaia.rs:36
↓ 5 callersMethodupdates
Update the center point around which we load, and load some more blocks.
common/surroundings_loader.rs:58
↓ 4 callersFunctioncube_shell
TODO: This should return an iterator. Generate the set of points corresponding to the surface of a cube made of voxels.
common/cube_shell.rs:10
↓ 4 callersFunctiondistance_between
Find the minimum cube shell radius it would take from one point to intersect the other.
common/surroundings_loader.rs:92
↓ 4 callersFunctionget_or_init
(cache: &mut Cache<T>, k: Key, f: F)
server/lib/terrain/cache_mosaic.rs:42
↓ 4 callersMethodload
(&mut self, id: SoundId)
client/lib/src/audio_loader.rs:40
↓ 4 callersFunctionmiddle
(bounds: &Aabb3<f32>, d: Dimension)
server/lib/src/octree.rs:32
↓ 4 callersMethodnext
(&mut self)
common/index.rs:51
↓ 4 callersFunctionof_distance
determine the LOD for a certain chunk distance away
client/lib/src/lod.rs:58
↓ 4 callersFunctionrun
(listen_url: &str, quit_signal: &Mutex<bool>)
server/lib/src/run.rs:27
↓ 4 callersFunctionset_camera
Set a shader's projection matrix to match that of a camera.
client/lib/src/view/camera.rs:101
↓ 4 callersFunctionto_player
(world: &server::T, mob: &mob::Mob)
server/lib/src/init_mobs.rs:21
↓ 4 callersMethodto_u32
Strip type information from this index.
common/index.rs:69
↓ 4 callersMethodupdate
Returns the number of intervals that have elapsed since last `update`.
common/interval_timer.rs:20
↓ 4 callersMethodwait
(&self)
client/lib/src/server.rs:59
↓ 3 callersMethodas_mut_pnt
(&mut self)
client/lib/src/chunk.rs:48
↓ 3 callersFunctioncenter
(bounds: &Aabb3<f32>)
server/lib/src/init_mobs.rs:10
↓ 3 callersFunctionconvert_coordinate
(x: f32)
client/lib/src/chunk.rs:66
↓ 3 callersMethodedge_samples
the number of voxel samples per chunk for this LOD
client/lib/src/lod.rs:52
↓ 3 callersMethodinsert
(&mut self, bounds: &Aabb3<f32>, v: V)
server/lib/src/octree.rs:116
↓ 3 callersMethodinsert_misc
(&mut self, id: entity::id::Misc, bounds: &Aabb3<f32>)
server/lib/src/physics.rs:36
↓ 3 callersFunctionlength
(bounds: &Aabb3<f32>, d: Dimension)
server/lib/src/octree.rs:28
↓ 3 callersFunctionnew
(gl: &'b mut GLContext, window_size: Vector2<i32>)
client/lib/src/view/shaders/mod.rs:64
↓ 3 callersFunctionof_world_position
(world_position: &Point3<f32>)
client/lib/src/chunk.rs:65
↓ 3 callersMethodrender
Color is rgba
client/lib/src/view/ttf.rs:103
↓ 3 callersMethodrotate_lateral
Rotate the camera around the y axis, by `r` radians. Positive is counterclockwise.
client/lib/src/view/camera.rs:72
↓ 3 callersFunctionset_clip
(shader: &mut yaglw::shader::Shader, near: f32, far: f32)
client/lib/src/view/render.rs:20
↓ 3 callersFunctionset_eye_position
(shader: &mut yaglw::shader::Shader, camera: &view::camera::T)
client/lib/src/view/render.rs:12
↓ 3 callersFunctionset_sun
Sets the `sun` struct in some shader.
client/lib/src/view/light.rs:56
↓ 3 callersMethodsin_cos
(&self)
client/lib/src/view/light.rs:20
↓ 3 callersMethodsubindex
Index the Element type itself
common/index.rs:63
↓ 3 callersMethodtranslate
Translates the player by a vector. If the player collides with something with a small height jump, the player will shift upward. Returns the actual am
server/lib/src/player.rs:86
↓ 3 callersFunctiontranslate_mob
( server: &server::T, mob: &mut mob::Mob, delta_p: &Vector3<f32>, )
server/lib/src/update_world.rs:101
↓ 3 callersMethodupdate
(&mut self)
server/lib/src/sun.rs:21
↓ 2 callersMethodall_voxels_loaded
( &self, chunk_position: chunk::position::T, lod: lod::T, )
client/lib/src/terrain.rs:73
↓ 2 callersFunctionapply_client_to_view
(view: &mut view::T, up: T)
client/lib/src/view/update.rs:42
↓ 2 callersFunctionas_millis
(duration: Duration)
common/socket.rs:15
↓ 2 callersMethodbind_normals
( &self, gl: &mut GLContext, texture_unit_alloc: &mut id_allocator::T<TextureUnit>, shader: &m
client/lib/src/view/terrain_buffers.rs:143
↓ 2 callersMethodbind_vertex_positions
( &self, gl: &mut GLContext, texture_unit_alloc: &mut id_allocator::T<TextureUnit>, shader: &m
client/lib/src/view/terrain_buffers.rs:132
↓ 2 callersFunctioncast
( server: &server::T, player_id: entity::id::Player, )
server/lib/src/client_recv_thread.rs:28
↓ 2 callersMethodchunk_count
Number of chunks pushed. Note that this does not naively translate to a polygon count.
client/lib/src/view/chunked_terrain.rs:81
↓ 2 callersMethodcmp
(&self, other: &T)
server/lib/src/lod.rs:27
↓ 2 callersFunctioncontains
(aabb1: &Aabb3<f32>, aabb2: &Aabb3<f32>)
server/lib/src/octree.rs:18
↓ 2 callersFunctionget_voxel
(this: &mut T<'a>, bounds: &voxel::bounds::T)
client/lib/src/terrain_mesh.rs:86
↓ 2 callersMethodintensity
The intensity of direct lighting from the sun.
client/lib/src/view/light.rs:33
↓ 2 callersMethodintersect
Find whether there are objects overlapping the object & bounds provided in this/child trees. Uses equality comparison on V to ignore "same" objects. R
server/lib/src/octree.rs:229
↓ 2 callersMethodis_done
(&self)
client/lib/src/audio.rs:27
↓ 2 callersMethodis_empty
(&self)
server/lib/src/octree.rs:290
↓ 2 callersMethodlg_edge_samples
base-2 log of the number of voxel samples per chunk for this LOD
client/lib/src/lod.rs:47
↓ 2 callersFunctionload
( server: &server::T, time_requested: u64, voxel_bounds: Vec<voxel::bounds::T>, load_reason: LoadDesti
server/lib/src/update_gaia.rs:72
↓ 2 callersMethodload_chunk
try to load a chunk into VRAM. if some voxels are missing, returns an Err of all the voxels that need to be fetched from the server.
client/lib/src/terrain.rs:173
↓ 2 callersFunctionload_or_request_chunk
( client : &client::T, chunk_stats : &mut chunk_stats::T, update_server : &mut UpdateServer,
client/lib/src/update_thread.rs:150
↓ 2 callersFunctionload_placeholders
( owner: lod::OwnerId, server: &server::T, request_block: &mut RequestBlock, pos: &voxel::bounds::T,
server/lib/src/update_world.rs:126
↓ 2 callersMethodload_state
return the LOD at which a chunk is loaded
client/lib/src/terrain.rs:57
↓ 2 callersMethodmat_density
(&self, p: &Point3<f32>)
server/lib/terrain/biome/demo.rs:44
↓ 2 callersFunctionnew
( server_url: &str, listen_url: &str, )
client/lib/src/server.rs:73
↓ 2 callersFunctionof_pnt
(p: &Point3<i32>)
client/lib/src/chunk.rs:55
↓ 2 callersFunctionof_u32
(value: u32)
common/entity.rs:23
↓ 2 callersFunctionp_of_a
(a: &[i32; 3])
common/cube_shell.rs:161
↓ 2 callersMethodprojection_matrix
(&self)
client/lib/src/view/camera.rs:48
↓ 2 callersFunctionrange_abs
Produce numbers in increasing absolute value order to some max, like [0, 1, -1, 2, -2].
common/range_abs.rs:12
↓ 2 callersMethodremove_terrain
(&mut self, id: entity::id::Terrain)
server/lib/src/physics.rs:41
↓ 2 callersMethodrotate
Rotate about a given vector, by `r` radians.
client/lib/src/view/camera.rs:59
↓ 2 callersMethodrotate_lateral
Rotate the player around the y axis, by `r` radians. Positive is counterclockwise.
server/lib/src/player.rs:250
↓ 2 callersMethodrotate_vertical
Changes the camera pitch by `r` radians. Positive is up. Angles that "flip around" (i.e. looking too far up or down) are sliently rejected.
client/lib/src/view/camera.rs:80
next →1–100 of 312, ranked by callers