Struct sdl2::VideoSubsystem [] [src]

pub struct VideoSubsystem { /* fields omitted */ }

Methods

impl VideoSubsystem
[src]

impl VideoSubsystem
[src]

impl VideoSubsystem
[src]

[src]

Obtains access to the OpenGL window attributes.

impl VideoSubsystem
[src]

[src]

Initializes a new WindowBuilder; a convenience method that calls WindowBuilder::new().

[src]

[src]

[src]

Get the name of the display at the index display_name.

Will return an error if the index is out of bounds or if SDL experienced a failure; inspect the returned string for further info.

[src]

[src]

[src]

[src]

[src]

[src]

[src]

Return a triplet (ddpi, hdpi, vdpi) containing the diagonal, horizontal and vertical dots/pixels-per-inch of a display

[src]

[src]

[src]

[src]

Loads the default OpenGL library.

This should be done after initializing the video driver, but before creating any OpenGL windows. If no OpenGL library is loaded, the default library will be loaded upon creation of the first OpenGL window.

If a different library is already loaded, this function will return an error.

[src]

Loads the OpenGL library using a platform-dependent OpenGL library name (usually a file path).

This should be done after initializing the video driver, but before creating any OpenGL windows. If no OpenGL library is loaded, the default library will be loaded upon creation of the first OpenGL window.

If a different library is already loaded, this function will return an error.

[src]

Unloads the current OpenGL library.

To completely unload the library, this should be called for every successful load of the OpenGL library.

[src]

Gets the pointer to the named OpenGL function.

This is useful for OpenGL wrappers such as gl-rs.

[src]

[src]

[src]

Releases the thread's current OpenGL context, i.e. sets the current OpenGL context to nothing.

[src]

[src]

impl VideoSubsystem
[src]

[src]

Obtain an SDL context.

Trait Implementations

impl Debug for VideoSubsystem
[src]

[src]

Formats the value using the given formatter.

impl Clone for VideoSubsystem
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more