Struct rokol::glue::sdl::Init[][src]

pub struct Init {
    pub title: String,
    pub w: u32,
    pub h: u32,
    pub use_high_dpi: bool,
    pub settings: ResourceSettings,
}

Fields

title: Stringw: u32h: u32use_high_dpi: boolsettings: ResourceSettings

Implementations

Initializes Rust-SDL2 and rokol::gfx

I learned from this gist for using OpenGL with Sokol: https://gist.github.com/sherjilozair/c0fa81250c1b8f5e4234b1588e755bca

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.