1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
#[allow(dead_code)] /// /// Errors that can happen when trying to initialise the renderer /// #[derive(Clone, Debug, PartialEq)] pub enum RenderInitError { /// The required rendering API is not available ApiNotAvailable, /// Indicates that the graphics device could not be opened CannotOpenGraphicsDevice, /// Indicates that the graphics device could not be attached to CannotCreateGraphicsDevice, /// The graphics driver failed to initialise CannotStartGraphicsDriver, /// The graphics display is not available DisplayNotAvailable, /// A required extension was missing MissingRequiredExtension, /// Unable to configure the display CouldNotConfigureDisplay, /// The context failed to create CouldNotCreateContext, /// The render surface failed to create CouldNotCreateSurface, /// Could not set the active context ContextDidNotStart }