comparison src/th06/std.rs @ 710:377c241be559

std_vm: Implement SetViewpos, SetViewpos2 and StartInterpolatinvViewpos2.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sun, 08 Sep 2019 18:09:05 +0200
parents ef2dbd676a91
children 13fd434d5d1b
comparison
equal deleted inserted replaced
709:6d4802abe134 710:377c241be559
153 153
154 declare_stage_instructions!{ 154 declare_stage_instructions!{
155 0 => fn SetViewpos(x: f32, y: f32, z: f32), 155 0 => fn SetViewpos(x: f32, y: f32, z: f32),
156 1 => fn SetFog(r: u8, g: u8, b: u8, a: u8, near: f32, far: f32), 156 1 => fn SetFog(r: u8, g: u8, b: u8, a: u8, near: f32, far: f32),
157 2 => fn SetViewpos2(x: f32, y: f32, z: f32), 157 2 => fn SetViewpos2(x: f32, y: f32, z: f32),
158 3 => fn StartInterpolatingViewpos2(frame: i32, _unused: i32, _unused: i32), 158 3 => fn StartInterpolatingViewpos2(frame: u32, _unused: i32, _unused: i32),
159 4 => fn StartInterpolatingFog(frame: i32, _unused: i32, _unused: i32), 159 4 => fn StartInterpolatingFog(frame: u32, _unused: i32, _unused: i32),
160 5 => fn Unknown(_unused: i32, _unused: i32, _unused: i32), 160 5 => fn Unknown(_unused: i32, _unused: i32, _unused: i32),
161 } 161 }
162 162
163 fn parse_stage(input: &[u8]) -> IResult<&[u8], Stage> { 163 fn parse_stage(input: &[u8]) -> IResult<&[u8], Stage> {
164 let start_offset = 0; 164 let start_offset = 0;