[][src]Struct phosphorus::GlRegistry

pub struct GlRegistry {
    pub gl_types: Vec<GlType>,
    pub gl_enums: Vec<GlEnum>,
    pub gl_commands: Vec<GlCommand>,
    pub gl_features: Vec<GlFeature>,
    pub gl_extensions: Vec<GlExtension>,
}

Holds all the info accumulated from gl.xml.

Fields

gl_types: Vec<GlType>

The special types we need to support.

gl_enums: Vec<GlEnum>

The special constant names we need defined.

gl_commands: Vec<GlCommand>

The functions you'll be able to call.

gl_features: Vec<GlFeature>

The various API profiles you might target.

gl_extensions: Vec<GlExtension>

The vendor extensions that you might wish to also try using.

Implementations

impl GlRegistry[src]

pub fn from_gl_xml_str(gl_xml: &str) -> Self[src]

This is how you parse the contents of gl.xml into a GlRegistry.

Trait Implementations

impl Clone for GlRegistry[src]

impl Debug for GlRegistry[src]

impl Default for GlRegistry[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> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.