Enum opengl_graphics::OpenGL [−] [src]

pub enum OpenGL {
    _2_0,
    _2_1,
    _3_0,
    _3_1,
    _3_2,
    _3_3,
    _4_0,
    _4_1,
    _4_2,
    _4_3,
    _4_4,
    _4_5,
}

Variants

_2_0
_2_1
_3_0
_3_1
_3_2
_3_3
_4_0
_4_1
_4_2
_4_3
_4_4
_4_5

Methods

impl OpenGL

fn get_major_minor(&self) -> (isize, isize)

Gets the minor version of OpenGL.

fn to_GLSL(&self) -> GLSL

Gets GLSL version associated with OpenGL.

Trait Implementations

Derived Implementations

impl Ord for OpenGL

fn cmp(&self, __arg_0: &OpenGL) -> Ordering

impl Eq for OpenGL

impl PartialOrd<OpenGL> for OpenGL

fn partial_cmp(&self, __arg_0: &OpenGL) -> Option<Ordering>

fn lt(&self, __arg_0: &OpenGL) -> bool

fn le(&self, __arg_0: &OpenGL) -> bool

fn gt(&self, __arg_0: &OpenGL) -> bool

fn ge(&self, __arg_0: &OpenGL) -> bool

impl PartialEq<OpenGL> for OpenGL

fn eq(&self, __arg_0: &OpenGL) -> bool

fn ne(&self, __arg_0: &OpenGL) -> bool

impl Clone for OpenGL

fn clone(&self) -> OpenGL

fn clone_from(&mut self, source: &Self)

impl Copy for OpenGL