Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AdRoll/rustenstein
/ functions
Functions
51 in github.com/AdRoll/rustenstein
⨍
Functions
51
◇
Types & classes
18
↓ 5 callers
Method
get_pic
(&self, index: usize)
src/cache.rs:184
↓ 4 callers
Function
ctrunc
(x: f64, scale: u32, updown: f64)
src/ray_caster.rs:175
↓ 4 callers
Function
norm_angle
ok this is not a constant, we may move it to an util module later, or rename this
src/constants.rs:19
↓ 3 callers
Function
distance
(player: &Player, x: f64, y: f64)
src/ray_caster.rs:179
↓ 3 callers
Method
draw_texture
(&mut self, shift_x: u32, shift_y: u32, pic: &Picture)
src/main.rs:307
↓ 3 callers
Function
load_maps
()
src/cache.rs:386
↓ 3 callers
Method
put_darkened_pixel
(&mut self, x: u32, y: u32, color_index: usize, lightness: u32)
src/main.rs:287
↓ 2 callers
Function
cdiv
(x: f64, scale: u32, updown: f64)
src/ray_caster.rs:171
↓ 2 callers
Function
follow_ray
( map: &Map, player: &Player, x: f64, y: f64, xo: f64, yo: f64, )
src/ray_caster.rs:112
↓ 2 callers
Function
get_plane
(data: &[u8], offset: i32, length: u16, magic_rlew_word: &[u8; 2])
src/cache.rs:525
↓ 2 callers
Function
huff_expand
(huff: &[(u16, u16)], source: &[u8], length: usize)
src/cache.rs:330
↓ 2 callers
Method
present
(&self, window: &mut Window)
src/main.rs:301
↓ 2 callers
Method
put_pixel
(&mut self, x: u32, y: u32, color_index: usize)
src/main.rs:278
↓ 1 callers
Method
actor_at
(&self, x: u8, y: u8)
src/map.rs:64
↓ 1 callers
Function
build_color_map
Returns an array of colors that maps indexes as used by wolf3d graphics to r,g,b color tuples that can be used to write pixels into sdl surfaces/textu
src/main.rs:423
↓ 1 callers
Function
carmack_decompress
See: https://moddingwiki.shikadi.net/wiki/Carmack_compression
src/cache.rs:472
↓ 1 callers
Function
cast_ray_h
(map: &Map, player: &Player, ray_offset: f64)
src/ray_caster.rs:82
↓ 1 callers
Function
cast_ray_v
canvas parameter left here to facilitate debug drawings
src/ray_caster.rs:53
↓ 1 callers
Function
draw_rays
(n_rays: u32, height: u32, map: &Map, player: &Player)
src/ray_caster.rs:24
↓ 1 callers
Function
draw_status
(game: &Game, video: &mut Video)
src/main.rs:223
↓ 1 callers
Function
draw_weapon
(game: &Game, video: &mut Video)
src/main.rs:210
↓ 1 callers
Function
draw_world
(game: &Game, video: &mut Video)
src/main.rs:159
↓ 1 callers
Method
find_player
(&self)
src/map.rs:78
↓ 1 callers
Method
find_player_start
(&self)
src/map.rs:98
↓ 1 callers
Method
get_map
(&self, episode: usize, level: usize)
src/cache.rs:200
↓ 1 callers
Method
get_sprite
(&self, index: usize)
src/cache.rs:192
↓ 1 callers
Method
get_texture
(&self, index: usize)
src/cache.rs:188
↓ 1 callers
Function
init
()
src/cache.rs:218
↓ 1 callers
Function
load_graphic
(source: &[u8], headers: &[u32], huff: &[(u16, u16)], chunk: usize)
src/cache.rs:364
↓ 1 callers
Function
parse_map_data
(path: P, meta: MapHead)
src/cache.rs:542
↓ 1 callers
Function
parse_map_head
(path: P)
src/cache.rs:391
↓ 1 callers
Function
process_input
( window: &Window, player: &mut player::Player, map: &map::Map, )
src/main.rs:93
↓ 1 callers
Function
ray_to_tex_coordinatinates
Turn the ray hit (x, y) coordinates in to the x-coordinate within the texture. This is obtained by translating the coords first to the tilemap dimensi
src/ray_caster.rs:153
↓ 1 callers
Function
read_map
(map: &Map, x: f64, y: f64)
src/ray_caster.rs:138
↓ 1 callers
Function
rlew_decompress
See: https://moddingwiki.shikadi.net/wiki/Id_Software_RLEW_compression
src/cache.rs:441
↓ 1 callers
Function
show_title
(game: &Game, video: &mut Video, window: &mut Window)
src/main.rs:149
↓ 1 callers
Method
simple_scale_shape
( &mut self, left_pix: u16, right_pix: u16, dataofs: &[u16], shape_byt
src/main.rs:327
↓ 1 callers
Method
tile_at
(&self, x: u8, y: u8)
src/map.rs:47
↓ 1 callers
Method
walk
Moves player across the map and prevents stepping into walls. Player collision box is a square. Its vertices are checked for collision with nearby wal
src/player.rs:36
Function
dump_map0_plane0_printout
()
src/cache.rs:662
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/map.rs:111
Method
get_sound
(&self, index: usize)
src/cache.rs:196
Function
main
()
src/main.rs:66
Function
map_file_parsing
()
src/cache.rs:654
Method
new
(level: usize)
src/main.rs:240
Method
new
( pics: Vec<Picture>, textures: Vec<Vec<u8>>, sprites: Vec<(CompShape, Vec<u8>)>,
src/cache.rs:168
Method
new
( plane0: [[u16; MAP_HEIGHT]; MAP_WIDTH], plane1: [[u16; MAP_HEIGHT]; MAP_WIDTH], name
src/map.rs:35
Function
test_carmack_decompress
()
src/cache.rs:630
Function
test_carmack_decompress_escaped
()
src/cache.rs:598
Function
test_carmack_decompress_near_pointer
()
src/cache.rs:611
Function
test_rlew_decompress
()
src/cache.rs:583