pub struct PixelLightmapOffset {
pub pixel_offset: i32,
}Expand description
An offset specified in number of pixels.
Fields§
§pixel_offset: i32The offset from the start of the lightmap, in pixels, that the lightmap for this face starts.
Trait Implementations§
Source§impl BspValue for PixelLightmapOffset
impl BspValue for PixelLightmapOffset
Source§fn bsp_parse(reader: &mut BspByteReader<'_>) -> BspResult<Self>
fn bsp_parse(reader: &mut BspByteReader<'_>) -> BspResult<Self>
Parse this value, advancing the byte reader.
Source§fn bsp_struct_size(ctx: &BspParseContext) -> usize
fn bsp_struct_size(ctx: &BspParseContext) -> usize
How big this value is in the BSP file in bytes. If it is a variable size, return
unimplemented!(), as calling this on variable-sized values would be a bug.Source§impl Clone for PixelLightmapOffset
impl Clone for PixelLightmapOffset
Source§fn clone(&self) -> PixelLightmapOffset
fn clone(&self) -> PixelLightmapOffset
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PixelLightmapOffset
impl Debug for PixelLightmapOffset
Source§impl From<PixelLightmapOffset> for LightmapOffset
impl From<PixelLightmapOffset> for LightmapOffset
Source§fn from(value: PixelLightmapOffset) -> Self
fn from(value: PixelLightmapOffset) -> Self
Converts to this type from the input type.
impl Copy for PixelLightmapOffset
Auto Trait Implementations§
impl Freeze for PixelLightmapOffset
impl RefUnwindSafe for PixelLightmapOffset
impl Send for PixelLightmapOffset
impl Sync for PixelLightmapOffset
impl Unpin for PixelLightmapOffset
impl UnwindSafe for PixelLightmapOffset
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more