MCPcopy Create free account

hub / github.com/AdRoll/rustenstein / functions

Functions51 in github.com/AdRoll/rustenstein

↓ 5 callersMethodget_pic
(&self, index: usize)
src/cache.rs:184
↓ 4 callersFunctionctrunc
(x: f64, scale: u32, updown: f64)
src/ray_caster.rs:175
↓ 4 callersFunctionnorm_angle
ok this is not a constant, we may move it to an util module later, or rename this
src/constants.rs:19
↓ 3 callersFunctiondistance
(player: &Player, x: f64, y: f64)
src/ray_caster.rs:179
↓ 3 callersMethoddraw_texture
(&mut self, shift_x: u32, shift_y: u32, pic: &Picture)
src/main.rs:307
↓ 3 callersFunctionload_maps
()
src/cache.rs:386
↓ 3 callersMethodput_darkened_pixel
(&mut self, x: u32, y: u32, color_index: usize, lightness: u32)
src/main.rs:287
↓ 2 callersFunctioncdiv
(x: f64, scale: u32, updown: f64)
src/ray_caster.rs:171
↓ 2 callersFunctionfollow_ray
( map: &Map, player: &Player, x: f64, y: f64, xo: f64, yo: f64, )
src/ray_caster.rs:112
↓ 2 callersFunctionget_plane
(data: &[u8], offset: i32, length: u16, magic_rlew_word: &[u8; 2])
src/cache.rs:525
↓ 2 callersFunctionhuff_expand
(huff: &[(u16, u16)], source: &[u8], length: usize)
src/cache.rs:330
↓ 2 callersMethodpresent
(&self, window: &mut Window)
src/main.rs:301
↓ 2 callersMethodput_pixel
(&mut self, x: u32, y: u32, color_index: usize)
src/main.rs:278
↓ 1 callersMethodactor_at
(&self, x: u8, y: u8)
src/map.rs:64
↓ 1 callersFunctionbuild_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 callersFunctioncarmack_decompress
See: https://moddingwiki.shikadi.net/wiki/Carmack_compression
src/cache.rs:472
↓ 1 callersFunctioncast_ray_h
(map: &Map, player: &Player, ray_offset: f64)
src/ray_caster.rs:82
↓ 1 callersFunctioncast_ray_v
canvas parameter left here to facilitate debug drawings
src/ray_caster.rs:53
↓ 1 callersFunctiondraw_rays
(n_rays: u32, height: u32, map: &Map, player: &Player)
src/ray_caster.rs:24
↓ 1 callersFunctiondraw_status
(game: &Game, video: &mut Video)
src/main.rs:223
↓ 1 callersFunctiondraw_weapon
(game: &Game, video: &mut Video)
src/main.rs:210
↓ 1 callersFunctiondraw_world
(game: &Game, video: &mut Video)
src/main.rs:159
↓ 1 callersMethodfind_player
(&self)
src/map.rs:78
↓ 1 callersMethodfind_player_start
(&self)
src/map.rs:98
↓ 1 callersMethodget_map
(&self, episode: usize, level: usize)
src/cache.rs:200
↓ 1 callersMethodget_sprite
(&self, index: usize)
src/cache.rs:192
↓ 1 callersMethodget_texture
(&self, index: usize)
src/cache.rs:188
↓ 1 callersFunctioninit
()
src/cache.rs:218
↓ 1 callersFunctionload_graphic
(source: &[u8], headers: &[u32], huff: &[(u16, u16)], chunk: usize)
src/cache.rs:364
↓ 1 callersFunctionparse_map_data
(path: P, meta: MapHead)
src/cache.rs:542
↓ 1 callersFunctionparse_map_head
(path: P)
src/cache.rs:391
↓ 1 callersFunctionprocess_input
( window: &Window, player: &mut player::Player, map: &map::Map, )
src/main.rs:93
↓ 1 callersFunctionray_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 callersFunctionread_map
(map: &Map, x: f64, y: f64)
src/ray_caster.rs:138
↓ 1 callersFunctionrlew_decompress
See: https://moddingwiki.shikadi.net/wiki/Id_Software_RLEW_compression
src/cache.rs:441
↓ 1 callersFunctionshow_title
(game: &Game, video: &mut Video, window: &mut Window)
src/main.rs:149
↓ 1 callersMethodsimple_scale_shape
( &mut self, left_pix: u16, right_pix: u16, dataofs: &[u16], shape_byt
src/main.rs:327
↓ 1 callersMethodtile_at
(&self, x: u8, y: u8)
src/map.rs:47
↓ 1 callersMethodwalk
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
Functiondump_map0_plane0_printout
()
src/cache.rs:662
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
src/map.rs:111
Methodget_sound
(&self, index: usize)
src/cache.rs:196
Functionmain
()
src/main.rs:66
Functionmap_file_parsing
()
src/cache.rs:654
Methodnew
(level: usize)
src/main.rs:240
Methodnew
( pics: Vec<Picture>, textures: Vec<Vec<u8>>, sprites: Vec<(CompShape, Vec<u8>)>,
src/cache.rs:168
Methodnew
( plane0: [[u16; MAP_HEIGHT]; MAP_WIDTH], plane1: [[u16; MAP_HEIGHT]; MAP_WIDTH], name
src/map.rs:35
Functiontest_carmack_decompress
()
src/cache.rs:630
Functiontest_carmack_decompress_escaped
()
src/cache.rs:598
Functiontest_carmack_decompress_near_pointer
()
src/cache.rs:611
Functiontest_rlew_decompress
()
src/cache.rs:583