[][src]Struct rt3conf::Engine

#[repr(C)]pub struct Engine { /* fields omitted */ }

Contains the data for the engine.cfg file.

The fields will be split up into more named fields as they are reverse engineered. A field with a number is an unknown field. The numbering is subject to change.

Implementations

impl Engine[src]

pub fn new() -> Self[src]

Creates a new Engine with safe defaults (i.e. 800 x 600 screen resolution and hardware texture and lighting off).

pub fn serialize(&self) -> Vec<u8>[src]

Serializes the Engine struct to a vector of bytes that can then be saved to a file.

pub fn set_accelerated_mouse(&mut self, accelerated_mouse: bool)[src]

pub fn set_font_shadows(&mut self, font_shadows: bool)[src]

pub fn set_full_screen(&mut self, full_screen: bool)[src]

pub fn set_disable_hardware_tnl(&mut self, disable_hardware_tnl: bool)[src]

pub fn set_height(&mut self, height: u32)[src]

pub fn set_width(&mut self, width: u32)[src]

Trait Implementations

impl Default for Engine[src]

pub fn default() -> Self[src]

Creates a new Engine with safe defaults (i.e. 800 x 600 screen resolution and hardware texture and lighting off).

impl<'de> Deserialize<'de> for Engine[src]

impl Serialize for Engine[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.