Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bfops/playform
/ functions
Functions
312 in github.com/bfops/playform
⨍
Functions
312
◇
Types & classes
106
↓ 81 callers
Function
new
()
server/lib/src/server.rs:70
↓ 51 callers
Function
new
(x: i32, y: i32, z: i32)
client/lib/src/chunk.rs:60
↓ 30 callers
Function
new
( mut gl: GLContext, window_size: cgmath::Vector2<i32>, )
client/lib/src/view/mod.rs:118
↓ 27 callers
Function
new
()
common/voxel.rs:34
↓ 24 callers
Method
push
add a new independently playing audio track
client/lib/src/audio.rs:69
↓ 23 callers
Method
bind
( &self, texture_unit_alloc: &mut id_allocator::T<TextureUnit>, shader: &mut yaglw::shader::Shader
client/lib/src/view/terrain_buffers.rs:113
↓ 21 callers
Method
as_pnt
(&self)
client/lib/src/chunk.rs:42
↓ 17 callers
Method
clone
(&self)
common/index.rs:21
↓ 17 callers
Function
new
( entity_id: entity::id::Player, physics_id: entity::id::Misc, owner_allocator: &Mutex<id_allocator::T<l
server/lib/src/player.rs:56
↓ 14 callers
Method
allocate
Produce an Id that hasn't been produced yet by this object.
common/id_allocator.rs:15
↓ 13 callers
Method
insert
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 callers
Method
insert
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 callers
Method
get
Find out what T is up at a `position`.
server/lib/src/lod.rs:51
↓ 12 callers
Method
len
(&self)
client/lib/src/view/chunked_terrain.rs:38
↓ 12 callers
Method
remove
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 callers
Method
push
Add a series of entites into VRAM.
client/lib/src/view/grass_buffers.rs:179
↓ 10 callers
Method
send
(&mut self, msg: protocol::ServerToClient)
server/lib/src/server.rs:35
↓ 9 callers
Method
len
(&self)
client/lib/src/terrain_mesh.rs:243
↓ 9 callers
Function
new
(max_load_distance: u32)
client/lib/src/terrain.rs:45
↓ 8 callers
Function
of_u32
Assert that an index is a valid element index in a buffer.
common/index.rs:13
↓ 7 callers
Function
clone
()
client/lib/src/record_book.rs:43
↓ 7 callers
Method
get_bounds
(&self, id: entity::id::Misc)
server/lib/src/physics.rs:59
↓ 7 callers
Method
lg_sample_size
base-2 log of voxel sample size for this LOD
client/lib/src/lod.rs:42
↓ 7 callers
Function
new
( rng: &mut Rng, trunk_height: f32, trunk_radius: f32, leaf_radius: f32, )
server/lib/terrain/tree.rs:61
↓ 7 callers
Method
tell
(&self, msg: &protocol::ClientToServer)
client/lib/src/server.rs:33
↓ 6 callers
Method
as_ptr
(&self)
client/lib/src/view/terrain_buffers.rs:41
↓ 6 callers
Function
get
(d: Dimension, p: &Point3<f32>)
server/lib/src/octree.rs:36
↓ 6 callers
Function
tri
Construct a triangle.
client/lib/src/terrain_mesh.rs:34
↓ 5 callers
Function
cube_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 callers
Method
draw
Draw all the mobs. N.B. This does not bind any shaders.
client/lib/src/view/mob_buffers.rs:78
↓ 5 callers
Method
load
( &self, id_allocator : &Mutex<id_allocator::T<entity::id::Misc>>, physics : &Mutex<physics::
server/lib/src/terrain_loader.rs:42
↓ 5 callers
Method
next
(&mut self)
client/lib/src/audio.rs:35
↓ 5 callers
Function
shader_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 callers
Function
split
(mid: f32, d: Dimension, bounds: &Aabb3<f32>)
server/lib/src/octree.rs:52
↓ 5 callers
Method
swap_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 callers
Function
update_gaia
( server: &server::T, update: Message, )
server/lib/src/update_gaia.rs:36
↓ 5 callers
Method
updates
Update the center point around which we load, and load some more blocks.
common/surroundings_loader.rs:58
↓ 4 callers
Function
cube_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 callers
Function
distance_between
Find the minimum cube shell radius it would take from one point to intersect the other.
common/surroundings_loader.rs:92
↓ 4 callers
Function
get_or_init
(cache: &mut Cache<T>, k: Key, f: F)
server/lib/terrain/cache_mosaic.rs:42
↓ 4 callers
Method
load
(&mut self, id: SoundId)
client/lib/src/audio_loader.rs:40
↓ 4 callers
Function
middle
(bounds: &Aabb3<f32>, d: Dimension)
server/lib/src/octree.rs:32
↓ 4 callers
Method
next
(&mut self)
common/index.rs:51
↓ 4 callers
Function
of_distance
determine the LOD for a certain chunk distance away
client/lib/src/lod.rs:58
↓ 4 callers
Function
run
(listen_url: &str, quit_signal: &Mutex<bool>)
server/lib/src/run.rs:27
↓ 4 callers
Function
set_camera
Set a shader's projection matrix to match that of a camera.
client/lib/src/view/camera.rs:101
↓ 4 callers
Function
to_player
(world: &server::T, mob: &mob::Mob)
server/lib/src/init_mobs.rs:21
↓ 4 callers
Method
to_u32
Strip type information from this index.
common/index.rs:69
↓ 4 callers
Method
update
Returns the number of intervals that have elapsed since last `update`.
common/interval_timer.rs:20
↓ 4 callers
Method
wait
(&self)
client/lib/src/server.rs:59
↓ 3 callers
Method
as_mut_pnt
(&mut self)
client/lib/src/chunk.rs:48
↓ 3 callers
Function
center
(bounds: &Aabb3<f32>)
server/lib/src/init_mobs.rs:10
↓ 3 callers
Function
convert_coordinate
(x: f32)
client/lib/src/chunk.rs:66
↓ 3 callers
Method
edge_samples
the number of voxel samples per chunk for this LOD
client/lib/src/lod.rs:52
↓ 3 callers
Method
insert
(&mut self, bounds: &Aabb3<f32>, v: V)
server/lib/src/octree.rs:116
↓ 3 callers
Method
insert_misc
(&mut self, id: entity::id::Misc, bounds: &Aabb3<f32>)
server/lib/src/physics.rs:36
↓ 3 callers
Function
length
(bounds: &Aabb3<f32>, d: Dimension)
server/lib/src/octree.rs:28
↓ 3 callers
Function
new
(gl: &'b mut GLContext, window_size: Vector2<i32>)
client/lib/src/view/shaders/mod.rs:64
↓ 3 callers
Function
of_world_position
(world_position: &Point3<f32>)
client/lib/src/chunk.rs:65
↓ 3 callers
Method
render
Color is rgba
client/lib/src/view/ttf.rs:103
↓ 3 callers
Method
rotate_lateral
Rotate the camera around the y axis, by `r` radians. Positive is counterclockwise.
client/lib/src/view/camera.rs:72
↓ 3 callers
Function
set_clip
(shader: &mut yaglw::shader::Shader, near: f32, far: f32)
client/lib/src/view/render.rs:20
↓ 3 callers
Function
set_eye_position
(shader: &mut yaglw::shader::Shader, camera: &view::camera::T)
client/lib/src/view/render.rs:12
↓ 3 callers
Function
set_sun
Sets the `sun` struct in some shader.
client/lib/src/view/light.rs:56
↓ 3 callers
Method
sin_cos
(&self)
client/lib/src/view/light.rs:20
↓ 3 callers
Method
subindex
Index the Element type itself
common/index.rs:63
↓ 3 callers
Method
translate
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 callers
Function
translate_mob
( server: &server::T, mob: &mut mob::Mob, delta_p: &Vector3<f32>, )
server/lib/src/update_world.rs:101
↓ 3 callers
Method
update
(&mut self)
server/lib/src/sun.rs:21
↓ 2 callers
Method
all_voxels_loaded
( &self, chunk_position: chunk::position::T, lod: lod::T, )
client/lib/src/terrain.rs:73
↓ 2 callers
Function
apply_client_to_view
(view: &mut view::T, up: T)
client/lib/src/view/update.rs:42
↓ 2 callers
Function
as_millis
(duration: Duration)
common/socket.rs:15
↓ 2 callers
Method
bind_normals
( &self, gl: &mut GLContext, texture_unit_alloc: &mut id_allocator::T<TextureUnit>, shader: &m
client/lib/src/view/terrain_buffers.rs:143
↓ 2 callers
Method
bind_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 callers
Function
cast
( server: &server::T, player_id: entity::id::Player, )
server/lib/src/client_recv_thread.rs:28
↓ 2 callers
Method
chunk_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 callers
Method
cmp
(&self, other: &T)
server/lib/src/lod.rs:27
↓ 2 callers
Function
contains
(aabb1: &Aabb3<f32>, aabb2: &Aabb3<f32>)
server/lib/src/octree.rs:18
↓ 2 callers
Function
get_voxel
(this: &mut T<'a>, bounds: &voxel::bounds::T)
client/lib/src/terrain_mesh.rs:86
↓ 2 callers
Method
intensity
The intensity of direct lighting from the sun.
client/lib/src/view/light.rs:33
↓ 2 callers
Method
intersect
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 callers
Method
is_done
(&self)
client/lib/src/audio.rs:27
↓ 2 callers
Method
is_empty
(&self)
server/lib/src/octree.rs:290
↓ 2 callers
Method
lg_edge_samples
base-2 log of the number of voxel samples per chunk for this LOD
client/lib/src/lod.rs:47
↓ 2 callers
Function
load
( server: &server::T, time_requested: u64, voxel_bounds: Vec<voxel::bounds::T>, load_reason: LoadDesti
server/lib/src/update_gaia.rs:72
↓ 2 callers
Method
load_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 callers
Function
load_or_request_chunk
( client : &client::T, chunk_stats : &mut chunk_stats::T, update_server : &mut UpdateServer,
client/lib/src/update_thread.rs:150
↓ 2 callers
Function
load_placeholders
( owner: lod::OwnerId, server: &server::T, request_block: &mut RequestBlock, pos: &voxel::bounds::T,
server/lib/src/update_world.rs:126
↓ 2 callers
Method
load_state
return the LOD at which a chunk is loaded
client/lib/src/terrain.rs:57
↓ 2 callers
Method
mat_density
(&self, p: &Point3<f32>)
server/lib/terrain/biome/demo.rs:44
↓ 2 callers
Function
new
( server_url: &str, listen_url: &str, )
client/lib/src/server.rs:73
↓ 2 callers
Function
of_pnt
(p: &Point3<i32>)
client/lib/src/chunk.rs:55
↓ 2 callers
Function
of_u32
(value: u32)
common/entity.rs:23
↓ 2 callers
Function
p_of_a
(a: &[i32; 3])
common/cube_shell.rs:161
↓ 2 callers
Method
projection_matrix
(&self)
client/lib/src/view/camera.rs:48
↓ 2 callers
Function
range_abs
Produce numbers in increasing absolute value order to some max, like [0, 1, -1, 2, -2].
common/range_abs.rs:12
↓ 2 callers
Method
remove_terrain
(&mut self, id: entity::id::Terrain)
server/lib/src/physics.rs:41
↓ 2 callers
Method
rotate
Rotate about a given vector, by `r` radians.
client/lib/src/view/camera.rs:59
↓ 2 callers
Method
rotate_lateral
Rotate the player around the y axis, by `r` radians. Positive is counterclockwise.
server/lib/src/player.rs:250
↓ 2 callers
Method
rotate_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